Re: Boot loaders
- From: jeff.bethune@xxxxxxxxx
- Date: 12 Dec 2006 12:05:14 -0800
Thank you... that's most helpful.
So just to clarify what this is doing (so I can learn):
*checking to see if /dev/hda exists
*It's coping the first 512 bytes or 1 block off of the hard disk
*checking those bytes for any strings it finds
*the bootloader should be in those first 512 bytes
Tommy Reynolds wrote:
On Mon, 11 Dec 2006 11:36:29 -0800, jeff.bethune wrote:
I have a question regarding how do you know which boot loader you're
using. The only thing I've been able to find is the presence of one of
these files in the /etc/ directory: grub.conf, lilo.conf,
yaboot.conf, etc.. But what if you have more than one of those files
present? How do you know which one bootloader is being used in such a
way that I could write code to obtain it?
No code needed:
$ sudo dd if=/dev/hda bs=512 count=1 | strings
and see if you get "GRUB". If you don't, you have lilo.
Cheers
.
- Follow-Ups:
- Re: Boot loaders
- From: Matteo Corti
- Re: Boot loaders
- From: Lenard
- Re: Boot loaders
- References:
- Boot loaders
- From: jeff . bethune
- Re: Boot loaders
- From: Tommy Reynolds
- Boot loaders
- Prev by Date: Copying filesystems / logical volumes
- Next by Date: Re: Boot loaders
- Previous by thread: Re: Boot loaders
- Next by thread: Re: Boot loaders
- Index(es):
Relevant Pages
|
|