[LBo] Grub wont come up
Goksin Akdeniz
goksin at enixma.org
Mon Feb 26 21:43:14 CET 2007
> I'm running Debian, the partition I used is PartitionMagic.
Hi Rafi, here is my way of system repair. I hope it works for you:
You resized partitions therefore you'd better check the partiton with a rescue
cd.
I suggest System Rescue CD [1] for repair and rescue operations. Boot your PC
with it. Then mount the / partition as follows:
mount -t ext3 /dev/XdaY /mnt/sysimage
XdaY is simply; X is your harddrive and Y is partition such hda1 or so
For IDE primary master is hda
For SATA primary master sda
Change root to /mnt/sysimge. Ext3 is an journalised file system and after
partition resizing, it makes sense to check "/" partition.
e2fsck -C0 -p -f -v /dev/XdaY
Running e2fsck with options stated up, it will fix all errors if detected, run
in verbose mode and display a status bar on the terminal.
When all is done time for GRUB reinstall. Grub has a shell. So to start grub
shell type "grub" so grub shell will invoke. To finde stage 1 type
find /boot/grub/stage1
It will respond like XdaY, so next step is to tell grub where the / is
root (hdX,0)
setup (hdX)
This will install GRUB to your selected harddrive MBR
I hope it works.
--
Goksin Akdeniz
www.enixma.org
www.linuxnet.com.tr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://linuxbasics.org/pipermail/qna/attachments/20070226/fa29e251/attachment.pgp
More information about the QnA
mailing list