[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 24/08/13 19:19, bad apple wrote:
Thanks, still learning. I did try out your 'cheaty' way on my system and got a lot of info.Meant to say, please excuse my ignorance, but how do I find out the disk layout type? I have never heard of GPT. Looking with gparted just now I cannot see anything about the layout. Thanks NeilNo problem chief, it's: Device > Create Partition Table A "cheaty" way to non-destructively test if a device has a GPT layout is to simply issue "fdisk -l" against it as fdisk doesn't support GPT partitions yet*. Here is an example of my system where I have an unmounted GPT formatted btrfs volume available at /dev/sdc: ghost@failbot:~$ sudo fdisk -l /dev/sdc [sudo] password for ghost: WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x6ae18eb0 Device Boot Start End Blocks Id System /dev/sdc1 1 1953525167 976762583+ ee GPT As you can see, fdisk will throw a massive fit immediately if asked to scan a GPT partition, which obviously tells you your target device is indeed GPT! The last line of fdisk's output also clearly identifies it as type "ee" and "GPT", which is helpful. This won't require you destroying your data either, just to find out if you're GPT or not.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x000dfdca Device Boot Start End Blocks Id System /dev/sda1 * 2048 463219115 231608534 83 Linux /dev/sda2 921602048 1953523711 515960832 83 Linux /dev/sda3 463220734 921602047 229190657 5 Extended /dev/sda5 898441216 921602047 11580416 82 Linux swap / Solaris /dev/sda6 463220736 898441215 217610240 83 Linux Partition table entries are not in disk order neilwin@Rufus:~$ I did not try this on the USB sticks, but no doubt they will be similar. I am very grateful for your help, many thanks Neil -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq