omon23
Posts: 8
Joined: Sat Nov 30, 2013 9:44 am

Partition entries are not in disk order? (Solved)

Sat Oct 11, 2014 8:08 pm

Hello,

So I recently found something to use my Pi for and installed OwnCloud on to it. Everything went okay and the installation was successful.

I decided to add a bit of extra storage to OwnCloud by using one of my old USB drives that I don't use anymore. It's only 2gb, but I'm not uploading several movies and songs - just a few documents, and maybe I might use it to backup a few photos. I plugged the drive in(I formatted it beforehand on my PC) and found a tutorial on how to mount it. I did sudo fdisk -l to find the drive, and I came across this strange error(it is towards the end):

Code: Select all

pi@raspberrypi ~ $ sudo fdisk -l

Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders, total 15523840 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: 0x00090806

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1            8192      122879       57344    c  W95 FAT32 (LBA)
/dev/mmcblk0p2          122880    15523839     7700480   83  Linux

Disk /dev/sda: 2101 MB, 2101346304 bytes
65 heads, 62 sectors/track, 1018 cylinders, total 4104192 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: 0x6f20736b

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   ?   778135908  1919645538   570754815+  72  Unknown
/dev/sda2   ?   168689522  2104717761   968014120   65  Novell Netware 386
/dev/sda3   ?  1869881465  3805909656   968014096   79  Unknown
/dev/sda4   ?           0  3637226495  1818613248    d  Unknown

Partition table entries are not in disk order
Now I have no idea what is causing this(or what it means) and I haven't done anything with the partitions, but to be honest, I don't even really know what they are. All I've done is simply plug the device into one of my Pi's USB ports. I have tried formatting the drive in different formats, but with no luck, still the same error. I am also quite new to the Pi and Linux, I've always used Windows as I have never needed/wanted to use Linux.

I have not plugged the drive into a powered hub, as I doubt this was the issue, but I have a hub lying around somewhere and will find it if I need to. I also did a Google search on this and all the results I found were either unrelated or the solution mentioned didn't work. So if anyone knows what the issue is and/or how to fix it then I will be very grateful, and very happy. I can also post any extra logs if needed.

There might be something quite obvious I'm missing here, I'm quite new to Linux and the command line. Please also bear with me if I'm being noobish.

Thanks in advance,
omon23.
Last edited by omon23 on Sun Oct 12, 2014 9:51 am, edited 1 time in total.

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Partition entries are not in disk order?

Sat Oct 11, 2014 8:29 pm

You need to reformat (repartion) the drive.

Install gparted and from the GUI, wipe it (and all of the partions) and format to EXT3. You should thenbe able to use it as a mountable drive.

*** All your data will be lost from this drive if you delete things ***

omon23
Posts: 8
Joined: Sat Nov 30, 2013 9:44 am

Re: Partition entries are not in disk order?

Sun Oct 12, 2014 9:51 am

asandford wrote:You need to reformat (repartion) the drive.

Install gparted and from the GUI, wipe it (and all of the partions) and format to EXT3. You should thenbe able to use it as a mountable drive.

*** All your data will be lost from this drive if you delete things ***
Thank you!

I got it working, after a bit of a struggle to get virtual box to recognize my drive. My USB drive is now working and usable in OwnCloud!

Thank you very much!
omon23.

Return to “Troubleshooting”