Kodi Community Forum

Full Version: [LIVE] Mount GPT NTFS drive
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
So finally got all my parts in for a XBMC Live build and I have run into a snag. I wanted to mount a NTFS drive pulled from my Windows box (1.5 TB drive) but I ran into an issue with the mount when I ran sudo fdisk -l

GPT Partition Table Detected. Use GNU Parted.

I have not found much on this. Can I mount a NTFS GPT formatted drive in XBMC Live?
Someone can correct me if I'm wrong, but I don't believe the kernel on the LiveCD includes GPT support. So, short answer - you can't mount that disk.

See here.

PITA answer - you'll need to recompile your kernel.
I take it there is no LiveCD installer out there that would have this. Ugh I don't want to have to install Windows 7 but it looks like I may have to.
I think it is supported. I guess an option is to do use gparted as he seem to want you to,
I am very unfamiliar with gparted. It seems to be a GUI partition manager but I just want to mount (no reformatting or anything).
I don't see why you need to use fdisk to mount it, just check if the device node for the partition shows up in /dev and try to mount it somewhere.
I can see the /dev so it is detecting it (and detecting it with a GPT partition). Question is how to mount if not with fdisk. Sorry my experience with XBMC is quite limited.
Just skip the fdisk step and use file -s to figure out which device node you need, or just take a guess, should be pretty easy if the drive only has one partition.
Unfortunately it does not see the partition as mountable. Other suggestions? For the interim I installed W7, but would love to see a XBMC Live solution.
Quote:Unfortunately it does not see the partition as mountable.
What doesnt?
What is the error message you got when you tried to mount? and of course tell us what mount command you used and how you found the name of the partition.
Never use fdisk and friends with a GPT formatted disk, use parted or gparted. fdisk and friends don't understand GTP format and will mangle them if you force it.
Maybe someone can school me on gparted. I only saw the capability to format the drive in gparted. What about mounting?
LTParis Wrote:Maybe someone can school me on gparted. I only saw the capability to format the drive in gparted. What about mounting?

Provided the kernel is built with GPT support, mounting is the same, you don't need to know it's GPT.

First you need to see if the kernel understands GPT.

ls -l /dev/sd*

Your disk should be there, (sdaX) is typically the boot disk, if not. the kernel was not built with GPT support.
Post the output of:

Code:
sudo blkid

Jerry
This result is a bit different since I did do a W7 install, but right now I am booting on a XBMC Live USB stick:

ls - l /dev/sd* results"

Code:
brw-rw----- 1 root disk 8,   0 /dev/sda
brw-rw----- 1 root disk 8,   1 /dev/sda1
brw-rw----- 1 root disk 8,   2 /dev/sda2
brw-rw----- 1 root disk 8,   3 /dev/sda3
brw-rw----- 1 root disk 8,   5 /dev/sda5
brw-rw----- 1 root disk 8,   16 /dev/sdb
brw-rw----- 1 root disk 8,   17 /dev/sdb1
brw-rw----- 1 root disk 8,   18 /dev/sdb2
brw-rw----- 1 root disk 8,   32 /dev/sdc
brw-rw----- 1 root disk 8,   33 /dev/sda1

sudo blkid results in:

Code:
/dev/loop0: TYPE:squashfs"
/dev/loop1: UUID"..." SEC_TYPE="ext2" TYPE="ext3"
/dev/sda1: UUID"..." LABEL="System Reserved" TYPE="NTFS"
/dev/sda2: UUID"..." LABEL="OS" TYPE="ntfs"
/dev/sda5: UUID"..." TYPE="swap"
/dev/sdb2: UUID"..." LABEL="Media" TYPE="ntfs"
/dev/sdc1: UUID"..." LABEL="Trancend" UUID="..." TYPE"vfat"

So the goal is to mount sdb2.
Pages: 1 2 3