How do I list the partition table on Linux?



  • Disk naming on Linux

    /dev/hda - master device on IDE channel 0
    /dev/hdb - slave on IDE channel 0
    /dev/hdc - master device on IDE channel 1
    /dev/hdd - slace on IDE channel 1

    There are a couple of commands you can use to partition and list partitions on Linux; parted and fdisk

    [root@venus /]# parted /dev/hda print
    Disk geometry for /dev/hda: 0kB - 11GB
    Disk label type: msdos
    Number Start End Size Type File system Flags
    1 32kB 107MB 107MB primary ext3 boot
    2 107MB 11GB 11GB primary lvm
    

    Information: Don't forget to update /etc/fstab, if necessary.
    Output of fdisk

    [root@venus /]# fdisk -l
    Disk /dev/hda: 10.7 GB, 10737418240 bytes
    255 heads, 63 sectors/track, 1305 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 13 104391 83 Linux
    /dev/hda2 14 1305 10377990 8e Linux LVM
    

Log in to reply
 

© Lightnetics 2024