Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-18-2004, 05:07 AM   #1
LQ Newbie
Registered: Sep 2004
Location: Denmark, island of Bornholm
Distribution: Fedora Core 2
Posts: 5

Rep: Reputation: 0
Question Resizing a linux partition using parted

I need to use some WIN programs so I need to make my system dualbootable(I am a Newbie). I am having problems with partitioning. Here are the outputs from df -h and fdisk:
df -h:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              37G   26G  8.6G  76% /
/dev/hda2              99M   14M   81M  15% /boot
none                  126M     0  126M   0% /dev/shm
[root@0x50a47ceb iso]# /sbin/fdisk /dev/hda
The number of cylinders for this disk is set to 4864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           4       32098+  de  Dell Utility
/dev/hda2               5          17      104422+  83  Linux
/dev/hda3              18        4798    38403382+  83  Linux
/dev/hda4            4799        4864      530145    f  W95 Ext'd (LBA)
/dev/hda5            4799        4863      522081   82  Linux swap
Command (m for help):
Now, I need to resize hda3 to make room for a Fat32 partition, right?
But I cant do that while using hda3? So what I need to do is, what? Boot up from my Fedora Core 2 CD? Or use FreeCd(dont know what that is, my friend just told me that I could do it throgh that)?
I found this page:(I am not allowed to post an url apparently, but if you search for parted on it is the first result if you sort by relevancy)
which tells me that I can boot up from Fedora Core CD, and then "Once you have booted off the CD, you will receive a boot prompt. At the boot prompt, type: linux rescue"
Then it goes on to give an exaple:
parted /dev/hda
resize 3 1024 2048
Does this resize command change a partition from 1GB to 2GB?

Now there would be empty space between hda3 and hda4? or will they move automaticly?
Should I move them?
Can I Use Partition Magic 8 to make the new Win Partition?

I am basicly just insecure about what i am doing, I have read a lot about this, many howtos(some irellivant I found out). So please some guidence will be appreciated.

Last edited by Ofvitinn; 09-18-2004 at 05:08 AM.
Old 09-18-2004, 10:55 AM   #2
LQ Newbie
Registered: Aug 2004
Distribution: Ubuntu Gutsy Gibbon
Posts: 25

Rep: Reputation: 15
Resize command with parted:

parted resize 3 1024 2048
would resize hda3... It would then start at 1 Gb and end at 2 Gb from the start of your harddisk.
Its size would therefore be 1 Gb.
If I remember correctly (it's been about a month since I've used parted), the area between hda3 and hda4 will be unused.
Then, you can type
parted mkpartfs primary fat32 2049 4797
(If you do this, you'll leave out about 2 Mb, 1 at the start of your partition, one at the end).
The command basically says: make a partition with a filesystem, make it a primary partition, it should have a fat32 file system, it should start at 2049 Mb from the start and end at 4797 Mb from the start.

It's okay to be incertain.
However, you could find this information with the user manual:

Have fun ;-)
Old 09-18-2004, 11:27 AM   #3
LQ Newbie
Registered: Sep 2004
Location: Denmark, island of Bornholm
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Thanx for the help

Yea, I must admit that between time of posting and reading your reply I came to the same conclusion.
But what about Windows does it not write over the bootloader?
Can I fix that with my Fedora Core CD?

Is it Absolutly safe to resize a ext3 partition? Can I move it with Parted?(it is my / partition(i.e. root))

Again, thanx for the help.

Signed, Paranoid guy!
Old 09-18-2004, 07:05 PM   #4
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
Is it Absolutly safe to resize a ext3 partition?
There's always that chance that something can go wrong. If you have anything important on that partition back it up. I've used parted probably 10 -12 times resizing partitions and never had a problem.
Old 09-19-2004, 08:40 AM   #5
LQ Newbie
Registered: Sep 2004
Location: Denmark, island of Bornholm
Distribution: Fedora Core 2
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, now I think I need some expert help.
I tryed using parted to resize my partition and after entering the new endpoint I recived an error message that told me that the filesystem had an incompatible feture enabled!!!!????
How can I get around that?
Please help me.
Old 10-04-2004, 10:22 PM   #6
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
I've come across this problem before too.

Apparently the file system that Fedora Core 2 uses is different and causes many problems with partitioning software. Partition magic and parted are both unable to modify these types. The fs type is ext3, but has some sort of weird feature that causes these problems. Possilbly a bug, possibly intentional. I don't know.

I haven't come across a program that will resize these yet, but if you search a lot you may find some way around it...and if you do, let me know.

Sorry I can't be any more help, just wanted to inform.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
partition resizing using parted...bad memories of fdisk rextor Linux - General 1 07-30-2005 10:34 AM
new /opt partition from / without resizing with parted everal Linux - Hardware 1 12-16-2004 01:50 AM
Help with Parted & Resizing Partitions beley Linux - Hardware 2 02-27-2004 11:42 PM
Resizing Partition on RH9 using Parted Sticks Linux - Newbie 0 07-26-2003 12:29 AM
Resizing EXT3 partition using parted??? Hegemon Linux - General 1 01-21-2003 12:59 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration