[root@localhost ~]# fsarchiver probe simple [======DISK======] [=============NAME==============] [====SIZE====] [MAJ] [MIN] [sda ] [ST12345678AS ] [ 931.51 GB] [ 8] [ 0] [sdb ] [ST12345679AS ] [ 931.51 GB] [ 8] [ 16] [=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN] [sda1 ] [ext4 ] [boot ] [ 250.00 MB] [ 8] [ 1] [sda2 ] [swap ] [swap ] [ 9.77 GB] [ 8] [ 2] [sda3 ] [ext4 ] [root ] [ 19.53 GB] [ 8] [ 3] [sda4 ] [ext4 ] [usr ] [ 901.97 GB] [ 8] [ 4] [sdb1 ] [ntfs ] [two ] [ 931.51 GB] [ 8] [ 17] [dm-0 ] [ext4 ] [<unknown> ] [ 901.97 GB] [253] [ 0]
file(1) can print details about certain devices in the /dev/ directory (block devices in this example). This helped me to know at a glance the location and revision of my bootloader, UUIDs, filesystem status, which partitions were primaries / logicals, etc.. without running several commands.
See also:
file -s /dev/dm-*
file -s /dev/cciss/*
etc..
Show Sample Output
Shows all block devices in a tree with descruptions of what they are.
`blkid` is an interface to libuuid - it can read Device Mapper, EVMS, LVM, MD, and regular block devices. -c /dev/null - Do not use cached output from /etc/blkid.tab or /etc/blkid/blkid.tab (RHEL) -i - Display I/O Limits (aka I/O topology) information (not available in RHEL) -p - Low-level superblock probing mode (not available in RHEL) Show Sample Output
List all disks and all of their partitions on OS X. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/diskutil.8.html Show Sample Output
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: