lancer2k
Posts: 8
Joined: Mon Jun 04, 2012 7:34 am

GPT Partitions on Raspbian

Fri Apr 12, 2013 12:31 pm

Hi all,

I have a 2'5TB External HD with a NTFS partition on it.
I plug in the HD and the rasp recognizes it, but the partition isn't recognized:

In dev directory I have /dev/sda but I don't have /dev/sda1

Fdisk only shows 301.5GB

Code: Select all

sudo fdisk -l

Code: Select all

Disk /dev/sda: 301.5 GB, 301472702464 bytes
256 heads, 63 sectors/track, 36508 cylinders, total 588813872 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: 0x92b53b6a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Using parted I only get this error:

Error: Can't have a partition outside the disk!

Is there any way to access the HD whitout wipping the partition?

Thanks!

plugwash
Forum Moderator
Forum Moderator
Posts: 3467
Joined: Wed Dec 28, 2011 11:45 pm

Re: GPT Partitions on Raspbian

Fri Apr 12, 2013 12:56 pm

What kernel are you running?
What does "cat /proc/patitions" say?
What does "lsusb -t" say?
Have you tried this drive on any other linux system? if so did it work and what kernel version was it running?

My gut feeling is that this is a bug in the kernel driver for the USB-SATA bridge chip inside the external hard drive.

lancer2k
Posts: 8
Joined: Mon Jun 04, 2012 7:34 am

Re: GPT Partitions on Raspbian

Fri Apr 12, 2013 1:02 pm

Thanks for the response:

Code: Select all

cat /proc/partitions
major minor  #blocks  name

 179        0    7761920 mmcblk0
 179        1      57344 mmcblk0p1
 179        2    7700480 mmcblk0p2
   8        0  294406936 sda
   8       16  293057351 sdb
   8       17  293049666 sdb1

Code: Select all

lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

Code: Select all

cat /proc/version
Linux version 3.2.27+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #250 PREEMPT Thu Oct 18 19:03:02 BST 2012
This drive works great on W7...

Thanks!

plugwash
Forum Moderator
Forum Moderator
Posts: 3467
Joined: Wed Dec 28, 2011 11:45 pm

Re: GPT Partitions on Raspbian

Fri Apr 12, 2013 1:12 pm

lancer2k wrote:Thanks for the response:

Code: Select all

lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
lsusb -t should provide more output than that....
Linux version 3.2.27+
That is an older kernel now.

Can you try running "apt-get update && apt-get install raspberrypi-bootloader". This should update the kernel and firmware to the lastest supported versions.

lancer2k
Posts: 8
Joined: Mon Jun 04, 2012 7:34 am

Re: GPT Partitions on Raspbian

Fri Apr 12, 2013 3:14 pm

Ok! Thank you so much!

I'll update with any news!

Regards

lancer2k
Posts: 8
Joined: Mon Jun 04, 2012 7:34 am

Re: GPT Partitions on Raspbian

Fri Apr 12, 2013 3:54 pm

Now I get this:

Code: Select all

lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 480M
        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
        |__ Port 2: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M
        |__ Port 3: Dev 5, If 0, Class=stor., Driver=usb-storage, 480M

lancer2k
Posts: 8
Joined: Mon Jun 04, 2012 7:34 am

Re: GPT Partitions on Raspbian

Mon Apr 15, 2013 6:47 am

i'm not able to access the partition yet,

Any ideas?

Thanks!

danwar
Posts: 1
Joined: Tue Apr 23, 2013 2:01 pm

Re: GPT Partitions on Raspbian

Tue Apr 23, 2013 2:04 pm

I believe I have the same problem with a 3TB disk. The disk works fine on a W7 computer. It detects fine on raspbian, but I can't seem to mount it. It says that it can't mount GPT. Any ideas?

kwetiaw
Posts: 2
Joined: Wed Jun 19, 2013 11:23 am

Re: GPT Partitions on Raspbian

Mon Jul 01, 2013 1:46 pm

same here.

here's what i got after running sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 801.6 GB, 801569726464 bytes
256 heads, 63 sectors/track, 97071 cylinders, total 1565565872 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: 0x512a421b

Device Boot Start End Blocks Id System
/dev/sdb1 1 4294967295 2147483647+ ee GPT

Help pleaseeeeee......

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: GPT Partitions on Raspbian

Mon Jul 01, 2013 2:08 pm

The error message from fdisk is valid - you need to use a different disk editor for disks with GPT partitions. If I remember correctly cfdisk can handle disks using GPT. If not gparted definitely can but that needs installing via apt-get as it is not part of the standard distribution.

It is unlikely that the GPT partition is an issue with mounting the disk. The most likely thing is that the disk is in NTFS format, but you do not have the ntfs-3g package installed. You might want to run

Code: Select all

sudo apt-get install ntfs-3g
and then see what happens.

zhuanyi
Posts: 4
Joined: Tue Apr 09, 2013 2:59 pm

Re: GPT Partitions on Raspbian

Tue Jul 23, 2013 1:05 am

You will need to use parted -l to check for the actual data partition and mount that partition, I wrote a short tutorial on how to do this:

http://www.zayblog.com/computer-and-it/ ... pberry-pi/

Worked for me and hopefully it will work for you as well :)

Return to “Raspbian”