how to do it safely
how to do it safely
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
-
- Major General
- Posts: 917
- Joined: Thu Jun 27, 2002 5:45 pm
- Location: Karachi
- Contact:
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.
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.