LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-30-2008, 03:30 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
resize partition with cfdisk or any other


Hi,
I have a Debian Etch running without X server.
My HD situation is like this:
http://img396.imageshack.us/img396/7406/imagemhy4.png

I want to expand (or maximize) my hda2 partition to add the rest of the HD (85987 MB).
But when I enter "Maximize" button I get the error: "Cannot maximize this partition"

How can I do that?
 
Old 07-30-2008, 03:36 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
It's probably because you are running your system from this partition and trying to resize it at the same time. To do anything to a partition it needs to be unmounted. I'd suggest using any live cd and do any operations on your hd from a live distro. That way, you won't have to mount any partition.

hth
 
Old 07-30-2008, 03:54 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Just to add a bit of info. Use a recent live distro or your systems install disk and enter "rescue" in the kernel options. There are different versions of ext3. If the kernel doesn't recognize them they will not be used, but for resizing, the program may refuse if the filesystem has features that the kernel doesn't understand. An very old boot/rescue CD you have around may not work.
 
Old 07-30-2008, 03:58 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
And the data gets lost using this method, right? It is not partition magic. Not sure about what program does that in Linux, although the Debian installer knows how to do it when resizing a Windows partition.

jlinkels
 
Old 07-30-2008, 05:47 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,135

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Read the manpage and find out what maximize actually does - or at least attempts to do.
Delete the partition, and reallocate as large as you want. Then resize the filesystem - modern systems allow online resize for ext2/3.
This is (usually) safe - but how can your data be at risk when you have current backups ???.
Which, of course, you do - don't you.
 
Old 07-31-2008, 12:15 PM   #6
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Thanks for the responses.

None of the /dev/hda partitions are mounted.
I am using the same kernel version I used to create /dev/hda2 partition.
What I really want to do is to expand /dev/hda2 partition without losing its data. Is there any software which can do that?
 
Old 09-02-2008, 01:28 AM   #7
stella123
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Cool resize partition

Maybe there is a limitation of the partition.For example, the largest size of FAT32 under win2k is 32K.I think the first thing is to know what the limitation of your partition is. Some petitions have limitations.If there is no limitation, you can try EASEUS Partition Manager which has done a good job during my usage.Hope this can help you!
 
  


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
Partition using CFDISK ic_torres Linux - Newbie 3 07-24-2007 05:40 AM
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 06:09 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM
can fdisk or cfdisk resize a fat32 partition? toastermaker Linux - Software 6 01-29-2004 06:42 AM

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

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