Results 1 to 2 of 2
Want to write a script that can do the following:
If you have a HDD image file, is there a Linux command/way that can tell you if its partition table ...
- 10-11-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 6
How to tell if hard drive image is MBR, GPT, LVM, contains GRUB?
Want to write a script that can do the following:
If you have a HDD image file, is there a Linux command/way that can tell you if its partition table is MBR, GPT, or LVM?
Similarly, is there a way to tell whether the image file contains a GRUB bootloader or not?
Thank you!
- 10-11-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,971
The first sector (512 bytes) of a disc (or image in this case) contains the MBR and partition. You can extract and analyze this data as necessary to answer your question(s).
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote