LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How/Can you do this (https://www.linuxquestions.org/questions/linux-general-1/how-can-you-do-this-21517/)

jester_69 05-22-2002 12:53 AM

How/Can you do this
 
Hello,

I am currently pretty happy with security/setup of my main machine (RedHat 6.1). Trouble is i have it on a 6 gig hdd & really would like to know if there is any method of (expnading) it onto lets say a 20 gig hdd ???.

Same partitions just over the larger disk space

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb5 5.8G 2.5G 3.0G 46% /

Any advice on this ??

Regards

Andrew

dorward 05-22-2002 02:32 AM

Install a second hard drive in to your machine, then boot to single user mode (or type init 2 as root [CHECK this with the comments in /etc/inittab it might be 1 not 2])

Then create partitions on the new drive (cfdisk + mkfs).

Mount this in tempory locations (e.g. /mnt/tmp/newhome)

Move data on to them (e.g. mv /home/* /mnt/tmp/newhome/)

Mount them in their new locations (umount /dev/hdc2 ; mount /dev/hdc2 /home)

Edit /etc/fstab to add the new partitions.

ranixlb 05-22-2002 05:53 AM

the only way is to get a new disk and either replace it with the old disk or add it to the old one


All times are GMT -5. The time now is 09:05 PM.