1

Topic: All disk space shown as unallocated

Hi Gedakc!

I'm having the exact same problem on a Scientific Linux 6.1 500 GB disk.
Both the Live Gparted and the one included in the OS show the entire
disk as unallocated space.  Only the Red Hat Disk Utility 2.30.1 included
with the OS shows partitions.  However, it includes extra non-existent
partitions at the end of the disk.  When I try to delete one of the
unmounted partitions, it gets an error.  Other than that, the system
performs perfectly.

If I recall correctly from when I installed this system, I partitioned
the hard drive manually from the command line because the graphical
partitioner would not put the partitions on the hard drive in the
order that I wanted.

So, how can I get Gparted (or another utility) to show the correct
partitions?  How can I get Gparted to allow me to delete (or resize)
one or more partitions?  Am I doing something wrong?

I have included the output from the commands that you referenced
in the other posts below.

Thanks for your help,

C. Coulter
wizard2277@hotmail.com

-------------------------------------------------------------------

root -> ~ # fdisk -l -u

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb0bef47c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2         1026048     7317503     3145728   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3         7317504    59746303    26214400   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4        59746304  1465149167   702701432    5  Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5        59748352   101691391    20971520   83  Linux
/dev/sda6       101693440   143636479    20971520   83  Linux
/dev/sda7       143638528   332382207    94371840   83  Linux
/dev/sda8       332384256   521127935    94371840   83  Linux
/dev/sda9       521129984   605016063    41943040   83  Linux
/dev/sda10      605018112   976773167   185877528   83  Linux
root -> ~ #

-------------------------------------------------------------------

root -> ~ # parted /dev/sda unit s print
Error: Can't have a partition outside the disk!

-------------------------------------------------------------------

root -> ~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3              25G  5.6G   18G  24% /
tmpfs                 499M   24K  499M   1% /dev/shm
/dev/sda1             485M   30M  430M   7% /boot
/dev/sda5              20G  4.6G   15G  25% /u1
/dev/sda7              89G  3.8G   81G   5% /u2
/dev/sda6              20G  172M   19G   1% /u2-virt
/dev/sda8              89G  9.7G   75G  12% /u3
/dev/sda9              40G  2.2G   36G   6% /u7
/dev/sda10            175G   54G  113G  33% /u8
/dev/sr0              3.4G  3.4G     0 100% /media/CDROM

2

Re: All disk space shown as unallocated

wizard2277 wrote:

root -> ~ # parted /dev/sda unit s print
Error: Can't have a partition outside the disk!

Based on the above output, we know that at least one of the partitions is larger than the physical disk drive.  From a quick examination I discovered the following:

   976,773,168 total sectors on the disk drive sda
1,465,149,167 end sector of the extended partition sda4

To fix this problem, the extended partition needs to be shrunk to fit within the physical boundaries of the disk drive.  This can be done with a hex editor and knowledge of the MSDOS partition table structure (a link can be found at the bottom of the GParted Documentation page).

If you would prefer help with fixing this problem then we will need a copy of your Master Boot Record.

You can capture the Master Boot Record in a file with the following command:

NOTE:  Be extra careful to type this command in properly, otherwise loss of data could result.

dd if=/dev/sda of=sda-wizard2277.mbr bs=512 count=1

where sda-wizard2277.mbr is the name of the file that will need to be uploaded.

Then upload this file to a media sharing site, such as mediafire or filefactory, and post the link to the file in this forum post.