create filesystem on md - RAID device
Franz Waldmüller
waldbauernbub at gmx.at
Tue Jan 5 12:31:16 UTC 2010
Hi I got a question concerning the creation of a new filesystem on a
raid1 device (let's call it /dev/md7).
I am running ubuntu 9.10 i386 desktop edition.
I just want some advice if my approach is correct:
if /dev/md7 is mounted as /home I intend to do the following (as root):
umount /home
mkfs.ext4 /dev/md7 # should I add any options?
then I have to correct the /etc/fstab file with the new UUID of the
created filesystem
I run
blkid /dev/md7
And then I have to try to get this output into my fstab file. Any hints
how I can do this on the command line without running X? I have some
basic knowledge of using nano. Maybe I can run a command which attaches
the output of blkid to the fstab file. The only thing left would be to
move the UUID up to the right position in the fstab file
after
mount -a
everything should be up and running again?
Am I correct?
Thanks for your help.
Franz
More information about the ubuntu-users
mailing list