LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2003, 09:00 AM   #1
Gurduloo
Member
 
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Rep: Reputation: 15
How to resize my HD partition?


I recently installed Mandrake 9.1 and didn't size my partitions the way I should have. My main Linux partition - the one that holds the kernel and software - isn't large enough to add any more stuff. I freed up about 500mb from my windows partition, using a handy utility Diskdrake that comes with Mandrake. But this utility won't let me resize the main Linux partition. In order to resize it, I have to unmount it, which doesn't seem possible while I'm running Linux. I've also tried resizing it with Partition Magic 7.0, but it doesn't seem to want to resize any of my Linux partitions - the option is greyed out. I've seen references to a Parted command - should I use that? I'd have to boot from a CD I guess to do that. I also have the Knoppix CD, does anyone know of utilities with that distro that I could use? And other suggestions are appreciated!
 
Old 05-19-2003, 11:30 AM   #2
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
parted should do the job....
 
Old 05-19-2003, 12:16 PM   #3
Gurduloo
Member
 
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Original Poster
Rep: Reputation: 15
But if I boot up normally from my HD into Linux, will Parted allow me to resize my main Linux partition? Right now I'm thinking I'll have to boot with my Knoppix CD and then use parted to resize the HD partitions.

edit: after reading the documentation for Parted, I see that I should just run it from a floppy. No need to load up the whole Knoppix CD.

Last edited by Gurduloo; 05-19-2003 at 01:24 PM.
 
Old 05-19-2003, 02:48 PM   #4
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
good luck...

let us know if you fixed your problem
 
Old 05-19-2003, 06:30 PM   #5
Malakh
LQ Newbie
 
Registered: May 2003
Location: Seattle
Distribution: Mandrake Linux
Posts: 10

Rep: Reputation: 0
Question Similar HD Partition resize question.

I am also trying to resize a partition. Although I am trying to resize my D: drive from windows. It is a 20gig Seagate drive. I ran scandisk and defragged the drive and at that point I have 8gigs of freespace on it. So I boot into Mandrake and run diskdrake. I unmount the d drive and resize. Unfortunetly the FAt bounds seem to be telling it there is more data on the drive then there is cause it will only let me lower the size of the win part by 1.1gigs.

How can I repartition more of my windows drive? Any ideas?
 
Old 05-19-2003, 10:15 PM   #6
Rick422
Member
 
Registered: Apr 2003
Location: Arizona
Distribution: Red Hat Linux 9
Posts: 158

Rep: Reputation: 30
The newest version of Partition Magic that recently came out now supports resizing Linux Partitions. Partition Magic 7 did not support resizing Linux partitions but Partition Magic 8 now has the ability to resize ext2, ext3 and ReiserFS partitions. I recently used Partition Maigic to resize a Linux ReiserFS parition and also a Windows Fat32 parition. It worked well. I used it to resize my /usr partition from 3GB to 6GB. I believe it also now supports resizing Windows NTFS partitions too.

As you probably already know, Partition Magic can be run just before starting any operating system, so it does not matter what is currently mounted or not.
 
Old 05-20-2003, 12:16 AM   #7
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
Its true that Partition Magic 8 can resize both Linux and Windows partitions... since i also use it.... it should be able to resize your partitions without a hitch... but Partition Magic is not free.... Parted should do the job well too....
 
Old 05-20-2003, 06:50 AM   #8
Gurduloo
Member
 
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Original Poster
Rep: Reputation: 15
Wah. I have Partition Magic 7 which doesn't do Ext3 partitions (I guess I should have researched that before buying). And Parted will work with Ext3 partitions, but with some limitations. For instance, when resizing the partition it must have the same start point. Which means I can't make my Ext3 partition include the 500mb I freed up from the windows partition. So unless I (or somebody else) can think up some other solution, I may be deleting the Linux partitions and starting over with a fresh installation.
 
Old 05-20-2003, 10:21 AM   #9
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
Reinstalling is always a last resort.... but thats your decision of course... good luck..
 
Old 05-20-2003, 10:47 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Check the website GNU parted for documentation for examples. You can move the partition but it takes several steps.
 
Old 05-20-2003, 11:55 AM   #11
Gurduloo
Member
 
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Original Poster
Rep: Reputation: 15
Documentation:

Move - ext3 - (provided the destination partition is larger than the source partition)

Resize - ext3 - restriction: the new start must be the same as the old start.


In theory I could move it if I were able to free up more space than the partition size. But I'm only able to free 500mb and the partition I want to move is almost 2gb. So I can't use the move command in this instance. I can't use the resize command either, because the 500mb of free space occurs before the partition I want to resize. I really think I'm stuck with a reinstall here - but it's not so bad because I just installed Linux 2 weeks ago and haven't done that much with it yet.
 
Old 05-21-2003, 11:12 PM   #12
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Hello,

You people have mentioned Parted. Is that a piece of software that comes with the distro or is it something I have to find and download myself?

And how do I use it? Thanks.

Last edited by scottpioso; 05-21-2003 at 11:13 PM.
 
Old 05-22-2003, 06:34 AM   #13
Gurduloo
Member
 
Registered: May 2003
Location: Northern Virginia
Distribution: Ubuntu, DeLi
Posts: 33

Original Poster
Rep: Reputation: 15
It's a command line partitioning program. It's better in my opinion than the partitioning program you get with DOS, but maybe not as good as Partition Magic. It's free and probably came with your distro, but if not it's a small download. It can also be fit onto 2 bootable floppy disks. Here's the website with downloads and instructions:

http://www.gnu.org/software/parted/
 
Old 05-22-2003, 06:37 AM   #14
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Thanks a lot! I'll try that later when I get off of work.
 
  


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
is it possible to resize partition? Itachi Linux - General 3 09-13-2005 11:00 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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