AghilesAzzoug / Linux-Disk-Info

Read, search and get informations about linux disks and partitions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux-Disk-Info

A work home about linux partitions

What does it do?

  • List disks and partitions
  • Print disk sectors
  • Find a specific string in a disk
  • View MBR informations for a disk

Output examples

The default directory is /dev

Sector size is by default 512 bytes

  • listing disks and partitions

alt text

  • Printing the 2nd sector of /dev/sda

alt text

  • Searching for the string 'GRUB' in /dev/sda from sector 0 to sector 1 alt text

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)

alt text

The program can also print logical partitions using EBR informations.

The variables, functions and printed strings are also written in french, sorry about that.

About

Read, search and get informations about linux disks and partitions.


Languages

Language:C 100.0%