Thursday 6 October 2016

Mounting GPT Partition in Linux


1) fdisk -l

Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
256 heads, 63 sectors/track, 242251 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sde1 1 266306 2147483647+ ee GPT

2) List the partitions using the parted command

parted /dev/sde print

Found valid GPT with protective MBR; using GPT.
Disk /dev/sde: 3907029168 sectors, 1.8 TiB
Disk identifier (GUID): C3326410-3290-4921-9F66-ED4535745092
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Total free space is 2157 sectors (1.1 MiB)

Number Start (sector) End (sector) Size Code Name
1 34 262177 128.0 MiB 0C01 Microsoft reserved par
2 264192 3907028991 1.8 TiB 0700 Basic data partition


3) Find the Type of File System using blkid command

blkid /dev/sde2

4) If file system Type is NTFS, then mount the respective partition

mount -t ntfs /dev/sde2 /mnt



No comments:

Post a Comment