PDA

View Full Version : [ubuntu] [SOLVED] gparted - unallocated hard drive!!!



varun.net
September 30th, 2008, 02:35 AM
I installed Ubuntu 8.04 from a cd, clean install on the whole hard disk. Used ubuntu's partition manager, and did custom partitioning with the following config

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c7e3c7d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 622 4996183+ 83 Linux
/dev/sda2 623 19208 149292045 83 Linux
/dev/sda3 19209 19457 2000092+ 82 Linux swap / Solaris

/dev/sda1 - /
/dev/sda2 - /home
/dev/sda3 - /swap


Didn't change anything since then. Now the root partition [/dev/sda1] is running out of space. I need to resize it.

But when I load up gparted live cd it sees unallocated space on /dev/sda.
I have tried knoppix live cd same thing.

I also tried testdisk but it said everything was fine/healthy no problems.



Does anybody know what might be wrong and how can it can fixed so that

* i can reduce /dev/sda2 and increase /dev/sda1

* maybe if at all possible install windows in the remaining empty space derived from /dev/sda2

cariboo
September 30th, 2008, 08:40 AM
Are you sure you are trying to resize the partition with the disk unmounted?

Jim

varun.net
October 1st, 2008, 03:14 PM
Are you sure you are trying to resize the partition with the disk unmounted?

Jim

I believe they are unmounted, since I am booting from a gparted live cd/knoppix live cd. Correct me if I am wrong, what I am guessing is that any live cd won't be mounting the hard disks automatically unless it is specified via a command through the terminal.

I will check again and confirm.

varun.net
October 11th, 2008, 02:43 AM
I believe they are unmounted, since I am booting from a gparted live cd/knoppix live cd. Correct me if I am wrong, what I am guessing is that any live cd won't be mounting the hard disks automatically unless it is specified via a command through the terminal.

I will check again and confirm.


Confirmed, the disks are not mounted when I run gparted from a live cd.

Ran testdisk, which rewrote the partition table and still gparted cannot see anything while at the same time fdisk works absolutely fine.

Also tried qparted which comes with knoppix live cd and even it cannot read the partition table and show me and empty/unallocated hard disk.

Please HELP!!!

varun.net
October 13th, 2008, 03:17 PM
Finally I solved it. Thanks but no thanks Ubuntu forums.



Boot from a live cd which has test disk utility (gparted live cd).



Open up a terminal once you have booted from the live cd and run testdisk and write the partition table to disk [analyze>proceed>write].



Now run gparted and it will recognize all the partitions



Note:- Running testdisk from inside of the ubuntu installation won't help.

varun.net
October 13th, 2008, 03:18 PM
Finally I solved it. Thanks but no thanks Ubuntu forums.



Boot from a live cd which has test disk utility (gparted live cd).



Open up a terminal once you have booted from the live cd and run testdisk write the partition table to disk.



Now run gparted and it will recognize all the partitions



Note:- Running testdisk from inside of the ubuntu installation won't help.



Thank you Varun!!!