LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-22-2002, 12:53 AM   #1
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Rep: Reputation: 15
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
 
Old 05-22-2002, 02:32 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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.
 
Old 05-22-2002, 05:53 AM   #3
ranixlb
Member
 
Registered: Apr 2002
Location: middle east- Lebanon- sidon (or saida if u like) city
Distribution: Redhat 9.0 and knoppix
Posts: 35

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration