New Disk

Alexandra Zaharia f0rg3r at gmail.com
Tue Jun 9 03:41:37 UTC 2009


On Tue, Jun 9, 2009 at 6:00 AM, Verde Denim<tdldev at gmail.com> wrote:
> I have a 160GB sata drive in my Ubuntu 8.04 server that I just got a
> replacement (500GB) sata for.
> There isn't anything on the 160 G drive, but it is mounted at /dev/sdc1.
> To replace it with the larger drive, can I just down the system, replace the
> hardware and bring the server up again?
> Or should i unmount the 160 and remove the fstab entry and then replace the
> hardware. I'm thinking I'll probably have to set the UUID and do the fstab
> entry manually once the system comes up again
> (unless gparted can do that)

If you don't unmount the 160 GB hard drive and remove the fstab entry,
the only thing that will happen after you replace it with the new 500
GB HDD will be that at boot time you will see an error regarding the
fact that the system cannot find the hard drive designated by the UUID
that the small HDD had.

Of course, that's not a problem. Once it boots up, just replace the
old UUID with the one for the 500 GB HDD. Supposing this new hard
drive is already formatted and it already has 1 partition which is
seen as /dev/sdc1, run

sudo vol_id -u /dev/sdc1

and you'll get the new UUID that you need to replace in /etc/fstab.
Then (if the file system on this hard drive is the same as the one the
old one had) run sudo mount -a and you're done.

However, if the new drive is not formatted and partitioned, you need
to do that first before editing fstab.




More information about the ubuntu-users mailing list