My system is as follows:
60GB SATA laptop HDD
kernel 2.6.12-10-386
1xWindows XP Pro - 19GB
1xLinux ext3 - ~36GB
That's how it was. I wanted to repartition the linux partition so that I had the following set up:
1xWindows XP Pro - 19GB
1xLinux ext3 - 19GB
1xLinux ext3 - 10GB
1xShared FAT32 - ~6GB(remainder)
Don't give me crap on the windows partition
, I pride myself for not having to use windows, but since I was promoted and given a company laptop, we have required apps that only run on windows.
I started by booting from a live-cd and using parted to resize the partition I wanted.
resize 1 0 19077
The command seems to have gone through successfully, gave me a message that I needed to reboot before the kernel is able to see the new size. I rebooted into my linux install, and qtparted/parted/gparted shows that my drive is partitioned the old way:
1xWindows XP Pro - 19GB
1xLinux ext3 - ~36GB
when I issue 'df -h', it gives a reading of 19GB on my linux partition. Am I missing something? Any help on this would be greatly appreciated.
*******SOLUTION:*******
The resize was complete, but the partition table was not altered. In order to do this, I used fdisk. This is what I did to figure out how to place my partition:
Information needed: size of new partition (in MB), start cylinder of resized partition.
Here is my output from "fdisk -l" as root, before I altered the partition table (see attached code).
The start cylinder of my partition that had the filesystem resized (/dev/sda2) was 2433, this will stay the same. Now I will figure out the end cylinder. In my case, I resized the filesystem to 19077MB, so I need the parition to line up to that:
19077*1024/63.0/255.0*2=2431.976
<size of partition> * 1024(1MB)/63.0(sectors)/255.0(heads) * 2(to get bytes)
^^ That is my understanding anyway, I had a crash course, so I may have gotten a little confused.
The end result is how many total cylinders my new partition will take up. I round up to the nearest cylinder, of course, and add that to my starting cylinder, and I get this as my table when I am finished (see attached code).
Hope that helps anyone else having the same problem.
btw, I can't take credit for this answer. Sophomore on irc.arstechnica.com #linux helped me with this a great deal. I wouldn't have figured it out if it weren't for them. Thanks again :beer:
60GB SATA laptop HDD
kernel 2.6.12-10-386
1xWindows XP Pro - 19GB
1xLinux ext3 - ~36GB
That's how it was. I wanted to repartition the linux partition so that I had the following set up:
1xWindows XP Pro - 19GB
1xLinux ext3 - 19GB
1xLinux ext3 - 10GB
1xShared FAT32 - ~6GB(remainder)
Don't give me crap on the windows partition
I started by booting from a live-cd and using parted to resize the partition I wanted.
resize 1 0 19077
The command seems to have gone through successfully, gave me a message that I needed to reboot before the kernel is able to see the new size. I rebooted into my linux install, and qtparted/parted/gparted shows that my drive is partitioned the old way:
1xWindows XP Pro - 19GB
1xLinux ext3 - ~36GB
when I issue 'df -h', it gives a reading of 19GB on my linux partition. Am I missing something? Any help on this would be greatly appreciated.
*******SOLUTION:*******
The resize was complete, but the partition table was not altered. In order to do this, I used fdisk. This is what I did to figure out how to place my partition:
Information needed: size of new partition (in MB), start cylinder of resized partition.
Here is my output from "fdisk -l" as root, before I altered the partition table (see attached code).
The start cylinder of my partition that had the filesystem resized (/dev/sda2) was 2433, this will stay the same. Now I will figure out the end cylinder. In my case, I resized the filesystem to 19077MB, so I need the parition to line up to that:
19077*1024/63.0/255.0*2=2431.976
<size of partition> * 1024(1MB)/63.0(sectors)/255.0(heads) * 2(to get bytes)
^^ That is my understanding anyway, I had a crash course, so I may have gotten a little confused.
The end result is how many total cylinders my new partition will take up. I round up to the nearest cylinder, of course, and add that to my starting cylinder, and I get this as my table when I am finished (see attached code).
Hope that helps anyone else having the same problem.
btw, I can't take credit for this answer. Sophomore on irc.arstechnica.com #linux helped me with this a great deal. I wouldn't have figured it out if it weren't for them. Thanks again :beer: