LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-15-2004, 11:12 AM   #1
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
Resizing root partition?!


How can I do this!? It's just too small, and my Home is too big. I've managed to take away space from Home (about 5 GB, which I was planning on using for /). However, the Mandrake Control Center partition manager requries a partition to be unmounted before one can resize it...and I obviously can't unmount root (error: No such file or directory)?

I tried using Partition Magic 8.0 from within Windows but that did not let me resize it?!

Thanks in advance!
 
Old 07-15-2004, 11:25 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
First, a ext2/ext3 partition can't expand backwards, only forwards. To resize with linux use a bootdisk. Going through the Mandrake installation until you get to the partition manager part might work.
 
Old 07-15-2004, 11:29 AM   #3
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hi,

one way would be to use System Rescue CD -

http://www.sysresccd.org/

which includes QTParted, a partition editor modeled on Partition magic. The disc image is about 100MB in size, so only really an option if you're on a fast internet connection!

A word of warning though - do be *very* careful when attempting to resize partions... I managed to completely screw up a Linux installation just last week, doing a Linux partition resize. I'd certainly recommend a backup of all your important files before you even think about starting, and if you're hoping to shrink a Windows partition to make more room for Linux, make sure you de-frag it first!
 
Old 07-15-2004, 12:05 PM   #4
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by kevinatkins
hi,

one way would be to use System Rescue CD -

http://www.sysresccd.org/

which includes QTParted, a partition editor modeled on Partition magic. The disc image is about 100MB in size, so only really an option if you're on a fast internet connection!

A word of warning though - do be *very* careful when attempting to resize partions... I managed to completely screw up a Linux installation just last week, doing a Linux partition resize. I'd certainly recommend a backup of all your important files before you even think about starting, and if you're hoping to shrink a Windows partition to make more room for Linux, make sure you de-frag it first!
Thanks. I've got nothing to backup on my Linux install, as I've only recently switched to Mandrake.

But...I didnt defrag my Windows partition before resizing it! Will this adversely affect my Linux system's performance?

And I do have broadband, so I'll get the ISO in about 10 minutes. I'll report back when done
 
Old 07-15-2004, 12:33 PM   #5
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Original Poster
Rep: Reputation: 15
Back...and it's a no-go

qtparted would not let me resize either of my ext3 partitions, only the Linux Swap and my Windows one. The "Resize" option was grayed out to be more specific.

Any other ways of doing this? (Kevin's way didn't work either)
 
Old 07-15-2004, 06:57 PM   #6
kevinatkins
Member
 
Registered: Jan 2004
Location: cheshire, uk
Distribution: Ubuntu Hoary
Posts: 605

Rep: Reputation: 33
hi,

if you didn't de-frag your windows partition, don't worry, it won't affect the performance of Linux; but, it's usually a good idea to de-frag a windows partition prior to resizing, to keep your windows install sweet.

as regards not being able to resize, ahem, this is where i kind of came unstuck...

my install consists of windows on /dev/hda1; i then have an extended partition on /dev/hda2, in which Linux itself resides on, i think, /dev/hda6 (/dev/hda5 is swap).

anyway, having shrunk my windows partition, i found that it was not possible to resize the linux partition 'down' to fill the available space; the whole linux partition first had to be moved down, then resized 'up', if you catch my drift. anyway, it all went horribly wrong, so i would *definitely* suggest your seeking extra advice before proceeding - i'm absolutely not an expert on this, and given the potential for filesystem damage, tread carefully.

you might be wondering why i suggested using the system rescue cd, given that i ran in to so much trouble - well, others have used it, and had no problems - it was, in my case i think, a case of 'operator error'....
 
Old 07-16-2004, 12:00 AM   #7
estatik
Member
 
Registered: Oct 2003
Location: CA / NY
Distribution: Mandrake 9.1, 9.2, 10.1, Cooker
Posts: 145

Rep: Reputation: 15
I'll give you an option but it will only work if you have a spare hard drive with approximately equal or greater than the system hard drive you are currently using/wanting to resize the partitions.

Take a look here , follow the link and read the rest of the thread. You can then transfer everything from the spare hard drive back to the original if needed after repartitioning/formating the original. If you have any more questions, post back.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LVM: Resizing the root partition fulat2k Linux - General 6 01-08-2012 04:35 PM
Resizing Root Partition dudeman41465 Linux - Software 5 10-09-2005 04:36 AM
Resizing Root partition without data loss dysfunction Linux - Newbie 3 09-30-2004 01:50 PM
Resizing a root reiserfs partition Insodus Linux - General 2 09-16-2003 04:21 AM
Resizing root partition bitpicker Linux - Newbie 10 09-12-2003 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:29 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