Version 7 (modified by pierre, 7 years ago)

--

Disks information

CLI Mode

In the CLI (in any mode), the command show disk will display a summary about disks on the system:

hdt> show disk                                                                  
DISK 0x80:                                                                      
  C/H/S: 19 cylinders, 16 heads, 63 sectors/track                               
  EDD:   Version: 30, size:  10 MiB                                             
         Host bus: ISA, Interface type: ATA                                     
                                                                                
DISK 0x81:                                                                      
  C/H/S: 782 cylinders, 255 heads, 63 sectors/track                             
  EDD:   Version: 30, size:   5 GiB                                             
         Host bus: ISA, Interface type: ATA                                     
                                                                                
DISK 0x82:                                                                      
  C/H/S: 1023 cylinders, 255 heads, 63 sectors/track                            
  EDD:   Version: 30, size:  10 GiB                                             
         Host bus: ISA, Interface type: ATA         
hdt>                            

To get more information (partitions, ...), enter the DISK mode via the disk command:

hdt> disk
disk>

You can now inspect all disks via the show disks command:

disk> show disks                                                                
DISK 0x80:                                                                      
  C/H/S: 1023 cylinders, 255 heads, 63 sectors/track                            
    EDD: Version: 30                                                            
         Size:  10 GiB, 512 bytes/sector, 63 sectors/track                      
         Host bus: ISA, Interface type: ATA                                     
    MBR: Grub (id 0xEB489010)                                                   
                                                                                
 #  B       Start         End    Size Id Type                                   
 1  x          63    19984859   9 GiB 83 Linux native (usually ext2fs)          
 2       19984860    20964824 478 MiB 05 DOS 3.3+ Extended Partition            
 5       19984923    20964824 478 MiB 82 Linux swap

DISK 0x81:                                                                      
  C/H/S: 782 cylinders, 255 heads, 63 sectors/track                             
    EDD: Version: 30                                                            
         Size:   5 GiB, 512 bytes/sector, 63 sectors/track                      
         Host bus: ISA, Interface type: ATA                                     
    MBR: Unknown mbr (id 0xEB58906D)                                            
                                                                                
 #  B       Start         End    Size Id Type                                   
 1              1    12582863   5 GiB 0C WIN95 OSR2 32-bit FAT, LBA-mapped
disk>

You can also inspect any particular disk via the show disk <number> command (disk numbering starts at 0x80):

disk> show disk 0x81                                                            
DISK 0x81:                                                                      
  C/H/S: 782 cylinders, 255 heads, 63 sectors/track                             
    EDD: Version: 30                                                            
         Size:   5 GiB, 512 bytes/sector, 63 sectors/track                      
         Host bus: ISA, Interface type: ATA                                     
    MBR: Unknown mbr (id 0xEB58906D)                                            
                                                                                
 #  B       Start         End    Size Id Type                                   
 1              1    12582863   5 GiB 0C WIN95 OSR2 32-bit FAT, LBA-mapped
disk>

hdt disk

Linux swsusp detection

Detection of Linux swsusp Detection of Linux swsusp in the swap partition.

Bootloader detection

Detection of MS bootloader Detection of MS bootloader in the first partition.

MBR detection

Detection of Grub Detection of Grub in the MBR of the 3rd disk.

Attachments