LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-06-2006, 08:05 AM   #1
vu_t_nguyen
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Rep: Reputation: 0
Resize Partition


Hello,

I had a 10G hard drive that was full. I bought a 80G drive, and used a Linux utility (g4l or something like that) to ghost the old drive. Now what I have is

/dev/hdb1 /boot (a few hundrend Meg)
/dev/hdb2 Swap (a few hundred Meg)
/dev/hdb5 / (about 9G)
/dev/hdb6 Swap (I could be wrong about this partition being a swap space)

And about 70G of free, unformatted disk space.

How can I resize and move / to the larger space?

If I am to restart from the beginning, what should I have done to use the 80G drive?

I use Suse 9.3, by the way.

Thank you
VN
 
Old 02-06-2006, 08:32 AM   #2
MarkDashAbout
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
I suggest that you look at the utility parted. man parted should get you started, or parted -h

It can do this and more. You will need to be root to run it.
 
Old 02-06-2006, 04:17 PM   #3
palceksmuk
LQ Newbie
 
Registered: Dec 2005
Distribution: slackware 10.2
Posts: 26

Rep: Reputation: 15
-I would copy the root / partiton back to the 10gb drive (if you have changed anything while running the new disk. if you didn't you can skip this)
-then I would turn off the second swap hdb6
-delete the hdb5 and hdb6
-create a new hdb5 that will be big about 70gb-swap2, create swap2 with the remaining space
-reboot so the new partitions get detected and mount them somewhere
-copy the / partiton from the old 10gb to the new partition you created with cp or tar
-edit fstab on your new root partition you just copied and reboot
 
Old 02-06-2006, 08:17 PM   #4
vu_t_nguyen
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks guys. I got it resized.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 08:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM
Resize Partition? mikeshn Linux - General 6 08-22-2002 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:41 AM.

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