Page 1 of 1

bootloader error

PostPosted: Nov 19th, '12, 13:41
by ummi
I am unsure whether I am having a win or not when my first problem was error 15 and now it is 8, but nonetheless....

I am not able to access menu.1st or fstab.

Code: Select all
[root@localhost live]# fdisk -l

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x34fe34fd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      626534      313236   83  Linux
/dev/sda2          626535    78140159    38756812+   5  Extended
/dev/sda5          626598    13141169     6257286   83  Linux
/dev/sda6        13141233    17446589     2152678+  82  Linux swap / Solaris
/dev/sda7        17446653    48917924    15735636   83  Linux
/dev/sda8        48917988    78140159    14611086   83  Linux

Code: Select all
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83


Code: Select all
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.


I do note that when I was trying to fix error 15 there was no /dev/sda2 and now there is....either way I am snookered at the moment and running out of ideas

Thanx

Michael

Re: bootloader error

PostPosted: Nov 19th, '12, 20:45
by gohlip
Code: Select all
[root@localhost live]# grub
grub> find  /boot/grub/stage1
grub> root (hd0,x)
grub> setup  (hd0,x)
quit
exit


eg.. if output of find /boot/grub/stage1 gives (hd0,0), then use
Code: Select all
[root@localhost live]# grub
grub> find  /boot/grub/stage1
grub> root (hd0,0)
grub> setup  (hd0,0)



ps : to access menu.lst/fstab at livecd, need to mount partition first.