LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-29-2004, 11:00 AM   #1
LucaSpiller
LQ Newbie
 
Registered: Jun 2004
Location: England
Distribution: Gentoo 2004.2 (2.6.8-gentoo-r3)
Posts: 11

Rep: Reputation: 0
Problems trying to resize an Ext3 partition


Firstly I am not sure whether this is the right place so sorry if it isn't.

My aim is to resize two of my partitions (/ and /home) which are both 30 GB each so that I can resize another one and install a few more distros.

Here is are my system specs:
Custom built
AMD Athlon XP 2600
2x 256mb DDR PC3200
PC Chips M848a Motherboard
2 hard disks
Master: 4GB 5200RPM (/dev/hda) - 1 partition used for Windows ME, FAT32
Slave: 80GB 7200RPM (/dev/hdb) - 6 partitions: /boot ext3 94mb, linux swap 1024mb, /var (I think) ext3 5gb, /home ext3 30gb, /mnt/win_c2 (storage for odd files) fat32 (so I can share it with Windows) 10gb, / ext3 30gb
Windows ME and Mandrake Linux 10 (upgraded from 9.2)

What I am hoping to do is resize the /home to 10gb and / to 10gb, then maybe increase the size of /mnt/win_c2 but probably just install a few more distros in the free space.

SystemRescueCD seemed like the perfect choice to do this as it had all the tools I needed and I didn't have to install anything (I am fairly new to Linux so not having to install anything seemed good). So I downloaded 0.2.13 and burned it.

When I tried to resize the partition using QtParted the option was blanked out. I did a bit of searching and found this was because it does not support ext3 so I should convert the partitions to ext2 first.

So more searching and I did that.
Code:
tune2fs ^has_journal /dev/hdb7
e2fsck /dev/hdb7
I then ran QtParted again and the option was available, but when I tried to resize them I get an error message: "An error happen during ped_file_system_open call." More searching and I found I should try using GNU parted instead.
Running "parted /dev/hdb" gave me a warning:
Quote:
Warning: Unable to align partition properly. This probably means that another partitioning tool generated an incorrect partition table, because it didn't have the correct BIOS geometry. It is safe to ignore, but may cause (fixable) problems with some boot loaders.
I chose to ignore it. I then typed "resize 7 6134.225 16000" but that gave me the following error:
No Implementation: This ext2 file system has a rather strange layout! Parted can't resize this (yet).

So that leaves me to where I am now. I have searched and searched but can't find an answer so thats why I chose to post here. I have converted the partitions back to ext3 so I can use my system.

Thanks for any suggestions,
Luca
 
Old 06-30-2004, 12:43 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Hi,
I have found that resizing partitions is a rather insecure procedure. The best thing is to remove all important data from it, erase them, and create new ones.
You can also shrink you swap size, 1024 is huge, unless you run specific software like video editing or math modeling...
The parted warning shouldn't be serious, I have seen it a few times. But do backup data in /. Its a good idea.
Also, this first 5400 disk is lowering the performance of the 7200. If you have a free ide slot on the second controller, put it there.
 
Old 07-04-2004, 10:18 AM   #3
LucaSpiller
LQ Newbie
 
Registered: Jun 2004
Location: England
Distribution: Gentoo 2004.2 (2.6.8-gentoo-r3)
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for that. I was going to do that if there was not anything else but as there doesn't seem to be I did it. I was kind of dreading it but it wasn't as bad as it sounded. At the moment I have just changed my /home partition into my / partition and moved all the appropriate files around. Everything seems to be going ok but I need to change the permissions for a few files I think - for some reason they have changed.

I don't think I will bother resizing my swap partition yet as every so often I do fairly memory intensive things (such as editing MASSIVE images, e.g. a 15mb PNG). Also it would probably be more trouble than it is worth moving all the partitions around. If I need that space though then I may consider it.

Unfotunately I don't have any free ide slots to move around the slow hard disk but now I have some extra space I may move the Windows partition from there to my faster disk.

Thanks again for your help.
 
Old 07-04-2004, 12:16 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
I'm glad to know!

A way to discover how many ram/swap you are using is to have a running copy of gkrellm during computer usage. I am doing this for some time now, and I found out that I don't use more than 5MB swap peak. Kinda surprising if you think I have 256MB ram. Linux is really good at memory management.
 
Old 07-12-2004, 09:11 AM   #5
LucaSpiller
LQ Newbie
 
Registered: Jun 2004
Location: England
Distribution: Gentoo 2004.2 (2.6.8-gentoo-r3)
Posts: 11

Original Poster
Rep: Reputation: 0
Ok I will have a look at that. If only XP could handle memory that well. *Comes back down to Earth* Thats another thing to add to the big long list of advantages of Linux. Gkrellm looks good but it is a bit small, I have a 13 inch (viewable) CRT monitor at 1024x768. I will just have to run top every so often and see what is being used.

Also since I have moved the partition around I have been having a problem. Now su doesn't work. It just says the password is incorrect (even though it isn't). I have checked a few other things and all of the permissions seem to be the same. The permissions for /etc/passwd are (running ls -l /etc/passwd):
Code:
-rw-r--r--
and the file is owned by root/root.

Last edited by LucaSpiller; 07-12-2004 at 09:14 AM.
 
Old 07-26-2004, 08:53 PM   #6
dlaudams
LQ Newbie
 
Registered: May 2004
Posts: 4

Rep: Reputation: 0
Re: Problems trying to resize an Ext3 partition

Quote:
Originally posted by LucaSpiller
...
I chose to ignore it. I then typed "resize 7 6134.225 16000" but that gave me the following error:
No Implementation: This ext2 file system has a rather strange layout! Parted can't resize this (yet).
I think parted is having some issues with ext2/ext3 partition resizing. It should be able to resize the partition but can't:

https://bugzilla.redhat.com/bugzilla...g.cgi?id=90894
 
Old 08-18-2004, 08:53 AM   #7
Ebel
Member
 
Registered: May 2004
Distribution: Slackware 10
Posts: 63

Rep: Reputation: 15
I'm having the trouble. If I can get it to work, I'll post it up here.
 
  


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
resize ext2/ext3 partition georgec Linux - Software 4 09-22-2009 05:40 PM
How to resize a ext3 partition? towel401 Linux - General 3 10-14-2005 05:30 PM
Can't resize ext3 Partition crack Linux - General 2 09-04-2005 07:39 AM
Ext3 Partition Resize nerotique Slackware 15 11-12-2004 04:44 PM
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 03:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration