Sep 22, 2007

format existing partition in ubuntu

maybe you need to prepare one empty partition for, i.e. to create new mount point. in this example i formatted /dev/hda3 partition (mounted as /media/hda3)

1. mkfs.ext3 /dev/hda3
format /dev/hda3 as ext3 (if not empty, backup!)
2. sudo vol_id /dev/hda3 | grep UUID
note the UUID code.
3. egrep hda3 /etc/fstab
note also the UUID code.
4. if there's difference between UUID in no. 2 and no. 3, change /etc/fstab with UUID from no. 2

in this case, i emptied a partition which already exist in /etc/fstab.
if you just installed new hard disk and only want to format it, adjust my steps accordingly ;)

kinda complicated and not too informative, so if you have easier methods, share with us.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home