Page 1 of 1

how to do it safely

Posted: Tue Mar 11, 2003 5:37 am
by farhanksa
i will create a new partion with parted but after partioning i want to make new pation /home how can i do this with out losing data the ones in the home directory will i just add lines to the fstab

Posted: Tue Mar 11, 2003 9:23 am
by farhantoqeer
please explain your requirement.

Posted: Wed Mar 12, 2003 7:49 am
by newbie
first make filesystem on new partition
mkfs -t ext2 /dev/blah
and then convert into ext3 if you want
tune2fs -j /dev/blah

now mount it at any place like /mnt/new

mount -t ext? /dev/blah /mnt/new
now
cp -a /home /mnt/new

and now add a line in your /etc/fstab

/dev/blah /home ext? defaults 1 1

then
umount /dev/blah
or
mount /mnt/new

now last step

mount -a

because reboot is a sin in unix.