LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2004, 01:29 PM   #1
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Question Partition resizing for Linux


I'm getting short on partition space, and I'm looking for a program that can increase the size of my partition. Problem is, I've tried using a program called BootIt, which, when I try to upsize the partition, says I need to increase the size of the FS before increasing the partition size (using resize2fs). Then, when I try to do that, resize2fs tells me that I need a bigger partition for it to resize on. Any ideas on a partition manager that can increase partitions without this hassle? Preferably for Linux, since I don't have Windows on this machine.
 
Old 11-14-2004, 05:02 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You can do this using resize2fs; see the manpage.

Basically, use fdisk to delete the partition, then recreate it with a larger size, at the same starting cylinder. (NB: This method won't let you move the start-point of the partition, and you should not try to format the new partition). Then use resize2fs.

There's a Linux program called gnuparted (try searching for it on freshmeat.net or gnu.org) that can resize partitions; though I haven't used it.

Last edited by rjlee; 11-14-2004 at 05:06 PM.
 
Old 11-14-2004, 05:13 PM   #3
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
I've tried parted, it doesn't like my ext3 partition. The partition I want to upsize is my root partition, so I can't afford to delete it.
 
Old 11-14-2004, 05:18 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally posted by LavaDevil94
I've tried parted, it doesn't like my ext3 partition. The partition I want to upsize is my root partition, so I can't afford to delete it.
You will not be able to resize a partition if it's mounted in any case; you will need to use a boot disk.

Just to clarify: deleting and then immediately recreating the partition (not the filesystem) will not in itself lose you any data; it will just move the end-of-partition marker. (in theory at least; always take a backup when resizing partitions!) If you were to mount it in this state (after recreating the partition), you would have the same partition contents (and size) and some dead space on the disk.
 
Old 11-14-2004, 05:47 PM   #5
naps
Member
 
Registered: Aug 2003
Distribution: 10.3
Posts: 55

Rep: Reputation: 16
Quote:
Originally posted by LavaDevil94
<snip> it doesn't like my ext3 partition.
I use ext3 because I can change it to ext2 with
tune2fs -O ^has_journal /dev/hda10
Then I can use my favourite partition resiser (I still use Partition Magic 5.something). I can then chage it back with
tune2fs -j /dev/hda10
This is covered in detail at http://www.troubleshooters.com/linux/ext2toext3.htm
Naps
 
Old 11-14-2004, 10:01 PM   #6
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Original Poster
Rep: Reputation: 47
I'll try the Ext3-Ext2 conversion, thanks.
 
  


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
Resizing Linux Partition browser Linux - General 12 09-01-2005 12:47 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
resizing a partition in linux Snerkel Linux - Software 5 10-05-2004 04:42 PM
Resizing linux partition saiz66 Linux - Newbie 1 09-16-2004 08:05 PM
resizing my linux partition toddncl Linux - Hardware 10 06-23-2004 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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