1 (edited by Kega 2010-05-05 13:55:19)

Topic: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Hey.

First, I'm not natively english speaking so hope you can understand me.

My problem:
I have a Asus EEE1001H where  I have different partitions, done with the help of GParted 0.5.2 Live cd. I have two primary partitions for Windows XP and one for Ext4 (I made so I could install Ubuntu 10.4, it wasn't released at the time). And a Logical with 3 partitions, 1 ntfs, 1 swap and 1 ext4.

When I view my partitions from Windows Xp I can see the whole drive with the partitions (although Ext4 and swap is standing as unknown file systems). But when I try to use Gparted 0.5.2 or Kubuntu/Ubuntu I only see the HDD as grey "unallocated disk space". Can anybody help me? I really don't want to install Windows allover again. It takes forever on the slow machine hmm

So if anybody can help, Thanks. And I'm a noob to all this, so speak slowly wink

2

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

In the middle section of the GParted window is there an exclamation mark?
If so then double click on this and a dialog box should pop up with some message text that might describe the problem.

Otherwise, would you be able to provide the output from the following two commands?

fdisk -l -u

where one of the options is a lower case "L" and not the number one.

parted /path-to-your-device unit s print

where /path-to-your-device is something like /dev/sda.

3

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Hey.

And thanks for helping

Okay, it tells me the following "can't have overlapping partitions".

The screen shot of fdisk -l -u did get saved, so I will try and write it.

   Device Boot            Start             End               Blocks              Id             System
/dev/sda1                   63           91827539       45913738+       7              HPFS/NTFS
/dev/sda2         91827540      104181524        6176992+        83             Linux
/dev/sda3       104181525      312576704        104197590       5              Extended
/dev/sda4       14331930        312576704        84622387+      7               HPFS/NTFS
/dev/sda5       104181651      135235169        15526759+      83             Linux
/dev/sda6       135235233      143331929          4048348+     82              Linux swap / Solaris

Hope that helps and can make a clear picture of it all. It did help me in any way smile

4

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

From the warning message it would appear that at least one partition overlaps another.

I suggest you carefully examine the partitions to see which partition overlaps another.  It is important to note that extended partitions, such as /dev/sda3 above, are a container partition for all partitions with the number 5 or higher.

From a brief look, it would appear that primary partition /dev/sda4 is inside the extended partition /dev/sda3.  Only logical partitions with number 5 or higher are permitted inside an extended partition.

To correct this problem will require careful partition editing using fdisk, or backing up each partition, and then creating a partition table that does not overlap, and then restoring the data from each partition.

5 (edited by Kega 2010-05-05 19:52:54)

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Hey.

If I understand you correctly I think you got confused, by the poorly put up table by me.

There are 2 primary partitions
/dev/sda1                   63           91827539       45913738+       7              HPFS/NTFS
/dev/sda2         91827540      104181524        6176992+        83             Linux

Then the extended
/dev/sda3       104181525      312576704        104197590       5              Extended

This is where you lost me, only 5 and above is permitted inside a extended partition. The extended are 5 and the rest are 7, 82 and 83 - so where is the problem? I sorry if I misunderstood you, I really am a noob at this.

Here is want I don't get. Why the NTFS partition is listed before the others, when it is made on the last part of the HDD.
/dev/sda4       14331930        312576704        84622387+      7               HPFS/NTFS
/dev/sda5       104181651      135235169        15526759+      83             Linux
/dev/sda6       135235233      143331929          4048348+     82              Linux swap / Solaris

And you say I have to use fdisk to fix it. But how? Last time I used fdisk was maybe 12-16 years back when Windows 95-98 was the hot stuff. And its not the must user friendly program in the world smile

Thanks for your help so fare.. I'm just at a loss how this could happen.. Every thing went fine when making them in Gparted 0.5.2.

6

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

You can have up to 4 primary partitions on a msdos partition table.  Optionally one of these partitions could be an extended partion.  The device numbers for these partitions are numbered 1 to 4.  (E.g., /dev/sda1, /dev/sda2, /dev/sda3, /dev/sda4)

Logical partitions must reside within an extended partition.  The device numbers for these partitions are always numbered starting with 5 and higher.  (E.g., /dev/sda5, /dev/sda6, /dev/sda7, ...)

104197590 is the sector at which the /dev/sda3 extended partition ends
14331930   is the sector at which the /dev/sda4 primary partition begins

Hence if these above number are correct, the sda4 partition starts before the sda3 partition and ends at the same location as the sda3 partition.  This is where I see the overlap occurring.

Unless you are comfortable using fdisk, and you have a backup of all your data, then I would not recommend attempting this method.  The fix for the problem involves changing the end of the sda3 partition to end one sector before the start of the sda4 partition.

7

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Wow.. I didn't know that. Just don't get how that could happen, as I made the extended partition first before making the last 3 partitions.

Yeah, properly not wise that I screw around with fdisk. smile Could I use some other partition program that runs from Windows XP to fix it? As Windows XP can see all the partitions without any problems.

8

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

One option you might try is testdisk, which is also included on the GParted Live CD.

Testdisk can try to discover what your partition table actually should be, and then you have the option of writing this new partition table to the disk.

9

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Great thanks. I just took a fast look at the wiki. You one question, how to I run from gparted live? I guess terminal, but after that I'm clueless. Some sudo command or ?

10

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

You figured correctly.  Open a terminal window and run "testdisk".  Since the GParted Live CD is running as root, you do not need "sudo".

My advice would be to print out a copy of "fdisk -l -u" first so that you know what your partitions should look like.  Then when testdisk proposes a solution you will be able to check if it matches with what you think should occur.

11

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Please, in addition to the above suggestions, note that, if logical partitions aren't in order in the extended partition, then fdisk could give the "can't have overlapping partitions" message.
In this case, various disk tools can refuse to work.

Furthermore, I'd like to ask you to check the numbers in the table of the post # 3, especially those in bold:

The screen shot of fdisk -l -u did get saved, so I will try and write it.

   Device Boot            Start             End               Blocks              Id             System
/dev/sda1                   63           91827539       45913738+       7              HPFS/NTFS
/dev/sda2         91827540      104181524        6176992+        83             Linux
/dev/sda3       104181525      312576704        104197590       5              Extended
/dev/sda4       14331930        312576704        84622387+      7               HPFS/NTFS
/dev/sda5       104181651      135235169        15526759+      83             Linux
/dev/sda6       135235233      143331929          4048348+     82              Linux swap / Solaris

Perhaps 14331930 is in reality 143331930
Writing so many numbers can easily lead to some mistake (we faced such problems in the past).

*** It is highly recommended to backup any important files before doing resize/move operations. ***

12

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Hey.

I just want to say thanks for all the help.. I used testdisk and tried to figure out how to make it work. Sadly I didn't, but I could delete the partition that made all the problems. So after deleting that I could use Gparted as intended. But now it looks like if fucked up when trying to install ubuntu and lubuntu from kubuntu netbook remix. Thats a whole other headache and for another forum big_smile

But again great support and a damn cool app. wink

13

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

found this page after an hour of tears and frustration.
thank you very much gedakc, you saved my sanity.

i registered specifically to tell you that. thanks!

14

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

'Glad to hear that this information helped you stepford.   smile

That is one of the key reasons for posting questions and answers in a publicly viewable forum -- so others in similar situations can benefit.

15 (edited by Allnsmth 2011-03-01 12:44:32)

Re: Gparted USB Live, Kubuntu or Ubuntu can't see my HDD partition

Hi,
Sometimes your hard disk is provided with an extra partition provided by the computer manufacturer (generally hidden). Never delete this partition, unless you know what you are doing!