|Hey people, was playing with boot loader screens and i accidently mentally disabled my grub with it.|
after rebooting i was thrown in a grub shell like this:
so i did:
so i thought that grub should be there too.
Just some extra checking to be sure of it...
error 15 (not found error)
allright, grub should be installed on hd0,0
Filesystem type is ext2fs, parition type 0x83
okay... lets load the kernel
*26-1-686 *26-1-amd64 *26-1-486 *26-1-686-bigmem *26-1-openvz-686 *26-1-686 etc etc
generally i use the 26-1-686, its working, never had problems with it. so..
kernel /boot/kernel-2.4.20 root=/dev/sda1 ro
So then i type boot and here it fails.
[ 0.832928] input: AT Translated Set 2 keyboard as /class/input/input0
[ 0.933147] List of all partitions:
[ 0.933217] No filesystem could be mount root, tried:
[ 0.933333] Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Looks like (0,0) is not the right place huh? But if i mount it on my filesystem i always use /dev/sda1.
My grub doesn't has something like ls or dir, so i used a little trick i found out to list my dir's; kernel /dev/s<tab> does not return anything so i think that it can not see it or my hdd is playing hide and seek or something.
live disk results:
$ ls | grep sda
$ mkdir /mnt/sda1 ; mount /dev/sda1 /mnt/sda1 ; cd /mnt/sda1
<gives 'normal' file system>
$ grub --version
grub (GNU GRUB 0.97)
The menu.list file in /boot/grub/ is not really containing any usable information since it was overwritten or something.
I really wonder what happend here and some help will be greatly appreciated
Edited by on 27-03-09 00:06
Rank: Hacker Level 1
|Not knowing what Linux/BSD you are running I cannot give you too entailed an answer but the short of it would be, DID YOU GOOGLE?!?!?!|
http://www.sorgon. . .ubrestore/
http://ubuntuforu. . .24113.html
http://www.linuxq. . .ll-446952/
These are the first three results for RESTORE GRUB search
1. Boot your computer up with Linux Flavour Disc
2. Go through all the process until you reach "[!!!] Disk Partition"
3. Select Manual Partition
4. Mount your appropriate Linux partitions
/ ; /boot ; swap ; etc...
5. DO NOT FORMAT THEM.
6. Finish the manual partition
7. Say "Yes" when it asks you to save the changes
8. It will give you errors saying that "the system couldn't install ....." after that
9. Ignore them, keep select "continue" until you get back to the Linux installation menu
10. Jump to "Install Grub ...."
11. Once it is finished, just restart your computer
Hope that helps...and remember Just Fucking Google It!
Rank: Mad User
Warn Level: 95
|after entering root (hd0,0)|
try setup (hd0)
that should repair it
Edited by hellboundhackersok on 27-03-09 00:28
You Like this!
|If you are using Fedora, and trying to reinstall grub, all you have to do is go to retreive or back linux partition and type in|
then grub-install /dev/hda or it might be sda
depending on your HDD.
If you think my post are useful to you, please vote for them. Thank You
knowledge is powerful itself - SHADOWLS
with my ubuntu live disk i just installed ubuntu, resized my main partition, anyway im in ubuntu again feels like linux but my Debian partition is still unreachable
I downloaded a grub boot fix disk that shouldve repaired my grub
i was able to destroy grub, uninstall it and let it auto detect my ubuntu again and now its working again (phew!) Im sure its a great toy and helped alot of people out but it was not the key for me. I tried all the above things, none worked. I got access to my pc right now and while typing this i just came on the genious idea to do
kernel blablabla root=/dev/sda1
because i can mount my hdd from here with mount /dev/sda1 /mnt/sda1
So brb and ill just push that post reply button and ill brb
|didnt excectly worked as i hoped immidiatly but great news, i was able to get into a bash shell|
[email protected]:/mnt/sda1/boot# cp vmlinuz-2.6.26-1-686 /boot/vmlinuz-2.6.26-1-686
[email protected]:/mnt/sda1/boot# cp initrd.img-2.6.26-1-686 /boot/initrd.img-2.6.26-1-686
-- menu.lst --
title Debian test
kernel /boot/vmlinuz-2.6.26-1-686 /boot/vmlinuz-2.6.26-1-686 root=/dev/sda1 ro quiet splash
I actually copied the kernel from /mnt/sda1/boot/kernel and changed my menu.lst file.
Im going to give this a shot with the other kernel's too, maybe it works.
Edited by on 28-03-09 16:12