can't change MBR

Andrew Benton b3nton at gmail.com
Sun Mar 27 09:53:16 PDT 2011


On Sun, 27 Mar 2011 12:06:35 -0400
"piper.guy1" <piper.guy1 at gmail.com> wrote:

> Hi,
> 
> I'm almost finished LFS-6.7. I verified that grub works in section
> 8.4.3 and LFS boots up without any hitches.
> 
> But now section 8.4.4 requires the change to the MBR with the
> 'grub-setup' command. But it just won't work for me. I getting
> segmentation faults and syntax errors.
> 
> root:/# grub-setup '(hd0)'
> Segmentation fault
> root:/# grub-setup /dev/sda
> Invalid device `/dev/sda'.
> Try `grub-setup --help' for more information.
> root:/# grub-setup "/dev/sda"
> Invalid device `/dev/sda'.
> Try `grub-setup --help' for more information.
> root:/# grub-setup '/dev/sda'
> Invalid device `/dev/sda'.
> Try `grub-setup --help' for more information.
> root:/# grub-setup '\(hd0\)'
> Invalid device `\(hd0\)'.
> Try `grub-setup --help' for more information.
> root:/# grub-setup '/(hd0/)'
> Invalid device `/(hd0/)'.
> Try `grub-setup --help' for more information.
> root:/# grub-setup \(hd0\)
> Segmentation fault
> 
> What am I doing wrong?
> 
I'm going to guess that you've re-entered chroot and haven't
mounted /dev in the chroot environment. So in chroot /dev/sda does not
exist? Just a wild guess.

Andy



More information about the lfs-support mailing list