how to do it safely

General discussion about Linux, Linux distribution, using Linux etc.

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
farhanksa
Subedar
 
Posts: 359
Joined: Sun Nov 03, 2002 6:40 am
ICQ: 116765501
WLM: farhan12@msn.com
Yahoo Messenger: commdsl@yahoo.com
Location: Lahore

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

please explain your requirement.
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

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
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.
newbie
Company Havaldaar Major
 
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
WLM: usman_fool@hotmail.com
Location: lahore


Return to “%s” General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron