how to do it safely

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

how to do it safely

Postby farhanksa » Tue Mar 11, 2003 5:37 am

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

Postby farhantoqeer » Tue Mar 11, 2003 9:23 am

please explain your requirement.

Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

Postby newbie » Wed Mar 12, 2003 7:49 am

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
cp -a /home /mnt/new

and now add a line in your /etc/fstab

/dev/blah /home ext? defaults 1 1

umount /dev/blah
mount /mnt/new

now last step

mount -a

because reboot is a sin in unix.

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest