how to do it safely

General discussion about Linux, Linux distribution, using Linux etc.
Locked
farhanksa
Subedar
Posts: 359
Joined: Sun Nov 03, 2002 6:40 am
Location: Lahore
Contact:

how to do it safely

Post 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
farhantoqeer
Major General
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Location: Karachi
Contact:

Post by farhantoqeer »

please explain your requirement.
newbie
Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

Post 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.
Locked