Conditions: Kernel 2.6.31 (or later) with kernel filesystem sysfs (/sys) and proc (/proc)
Content : Devicename, start-/end-sectors, sector size; label and UUID; filesystem and mountpoint (if mounted).

Standard Call - List : blank od -l
- System name (if lsb_release installed)
- Architecture (with uname)
- Kernel loaded (/proc/cmdline)
- BIOS- or EFI-mode loaded
- Device (/dev/sdXY) and partition count
- Model name, disk size and logical/physical sector size
- start, end and size in sectors and Bytes
- filesystem (if mounted)
- mountpoint (if mounted)
- label
- UUID

When the script runs with root privileges, there are three more information: EFI- or BIOS-Mainboard, name of the partition table (msdos. GPT, ...) and the partion-id by partition without UUID, e.G.: ID 05, extended.

Call with option -a:
List information about the partition table
- MBR (Boot + ID, Start-CHS, ID, End-CHS, LBA1, LBA2)
- GPT ( all entries, incl. GUIDs)

Project Samples

Project Activity

See All Activity >

Categories

Hardware, Filesystems

Follow lsdisk

lsdisk Web Site

Other Useful Business Software
Choose Fast, Secure, File Handling. Choose Filestack. Icon
Choose Fast, Secure, File Handling. Choose Filestack.

Let Filestack’s advanced security, intelligence, and uploading features simplify your file handling tasks.

Filestack covers every available facet of file handling with ease, from rapid file uploads to swift, secure file delivery. Take advantage of advanced image intelligence to detect and tag objects in your photos, or use OCR to easily parse and process image text. Filestack Workflows allow you to automate complex file processing pathways into a single API call with an intuitive, low code interface. Everything your app could need, in one place.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of lsdisk!

Additional Project Details

Languages

English

Intended Audience

System Administrators, End Users/Desktop

User Interface

Console/Terminal, Command-line

Programming Language

Unix Shell

Registered

2012-06-14