View previous topic :: View next topic |
Author |
Message |
malern Apprentice
Joined: 19 Oct 2006 Posts: 170
|
Posted: Wed Apr 07, 2010 4:00 pm Post subject: Boot Loader Information |
|
|
Is there an easy way to dump the boot loader information for a specific device? I'd like a program that can take a device name (e.g. /dev/sda) and tell me if there is a boot loader installed on it, what boot loader it is (e.g. grub, lilo, or something else), and any other interesting information. Similar to how "file /path/to/file" will give you some basic information about a file.
Anybody know of anything like that? |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Wed Apr 07, 2010 5:13 pm Post subject: |
|
|
malern,
You can do
Look at the code between address 0x0 and 0x1ff. If you have a DOS or Grub bootloader, it will be obvious.
I've never seen lilo or ntldr to know what they look like.
hexedit can write bytes anywhere on your drive - take great care not to write anything.
There is no undo. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Apr 08, 2010 1:33 am Post subject: |
|
|
When I was a student, I used Winhex to learn these things |
|
Back to top |
|
|
malern Apprentice
Joined: 19 Oct 2006 Posts: 170
|
Posted: Thu Apr 08, 2010 9:30 am Post subject: |
|
|
Thanks for the tips guys!
I've also just discovered you can actually use "file" with the -s switch to get the info (i.e. file -s /dev/sda) |
|
Back to top |
|
|
|