Skip to content

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

Notifications You must be signed in to change notification settings

AghilesAzzoug/Linux-Disk-Info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages