[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: grub segfaults



On 4/20/05, T. Horsnell <tsh mrc-lmb cam ac uk> wrote:
> grub 0.95 + FC3 + 2.6.10-1.770_FC3smp on an Opteron.
> 
> I'm trying to make a bootable sysdisk clone.
> My real sysdisk is /dev/sda, the clone is /dev/sdb
> I've got a device-map file which maps hd0 to /dev/sdb
> and hd1 to /dev/sda. When I issue the 'setup'command
> to grub, it does some work then segfaults, and the
> clone sysdisk is unbootable. Any ideas?
> 
> Cheers,
> Terry.
> 
> [root ls1 ~]$ grub --device-map=/root/device.map.sdb
> 
>     GNU GRUB  version 0.95  (640K lower / 3072K upper memory)

BIG problem here - you definitely have more than 3 megs of ram. This
may be all that linux gives it, but it may not be enough. I would
suggest doing all this from grub itself before it loads linux.



> 
>  [ Minimal BASH-like line editing is supported.  For the first word, TAB
>    lists possible command completions.  Anywhere else TAB lists the possible
>    completions of a device/filename.]
> grub> root (hd0,0)
> root (hd0,0)
>  Filesystem type is ext2fs, partition type 0x83
> grub> setup (hd0)
> setup (hd0)
>  Checking if "/boot/grub/stage1" exists... no
>  Checking if "/grub/stage1" exists... yes
>  Checking if "/grub/stage2" exists... yes
>  Checking if "/grub/e2fs_stage1_5" exists... yes
>  Running "embed /grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
> succeeded
> Segmentation fault (core dumped)
> [root ls1 ~]$


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]