A work home about linux partitions
- List disks and partitions
- Print disk sectors
- Find a specific string in a disk
- View MBR informations for a disk
The default directory is /dev
Sector size is by default 512 bytes
- listing disks and partitions
- Printing the 2nd sector of /dev/sda
One occurrence was found in sector 0
- Displaying MBR informations for /dev/sda
- Disk identifier (in hex) : 0xC4380CB
- Partitions table (in hex) : starting from offset 0x1BE
- And for every partition, its type : primary partition, its file system : EXT and starting address : 2048 (in decimal)
The program can also print logical partitions using EBR informations.
The variables, functions and printed strings are also written in french, sorry about that.