Grub 0.97 CLI to load kernel, and boot on OpenSuse10
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Grub 0.97 CLI to load kernel, and boot on OpenSuse10
BIG mistake ! I unfortunately remove "some" softwares on my OpenSuse10 (preinstalled on my laptop, without cd driver) cause I was running out of space on hd. Icons starts to dissappear ...
Then I have only the Grub 0.97 shell that appears and to use to solve the problem... tried to boot kernel, but said that it "must be loaded before boot".
In the Grub 0.97 black window I have two lines :
First line ; kernel (hd0,2)/boot/vmlinuz-126.96.36.199-0.12-smp rrot=/dev/sda3 vga=0x314 reume=/dev/sda2 splash=silent showopts
Second line ;initrd (hd0,2)/boot/initrd-188.8.131.52-0.12-smp
I press "b", to boot with the First line : kernel (hd0,2)/boot/vmlinuz ... but the window turns blue and said "all data would be lost", so it shut down the system automatically to avoid this.
I press "e" to edit the command in the boot sequence for the same line, but don't really know what to tell Grub to do.
I must get my important datas back on my hd before "Restore to factory settings" (the last option). Any solution ?
Maybe it is a step on a solution ?
From http://www.linux-live.org/, I downloaded linux kernel 184.108.40.206 on a usb memory stick. Could it be useful ? how to ?
Last edited by Msi100SuSe10; 08-30-2010 at 08:37 AM.
Reason: add : press "b", to boot with the First line : kernel ...
Is Opensuse the only operating system on the computer? If not, what others do you have?
Do you mean you do not have a CD drive or you do not have the Opensuse installation CD?
What software were you removing?
Do you have any Linux Live CD you can use to mount the Opensuse partition to show /boot files. Also, can you post partition information? fdisk -l command run as root from a Live CD
Opensuse is the only operating system on my computer.
i do not have a CD drive.
Software I were removing ? I can't tell.
The only command lines I can do with Grub 0.97 are :
blocklist boot cat chainloader cmp color configfile debug displayapm enbed find fstest geometry halt help hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt modele modulenounzip pager partnew parttype password pause read reboot root rootnoverify savedefault serial setkey setup terminal terminfo testload testvbe unhide uppermem vbeprobe
You could try any live distribution that you can boot from USB, seeing that you have no CD drive. This linux-live.org doesn't seem to serve your purpose well, as you're better off with a complete distribution. I suggest Slax.
With this you can either see what files you have left on /boot, 'chroot' into your old system and try to restore what you have deleted (provided there are logs of your package manager), or move your files to an external drive and restore the factory settings.
Before doing anything I suggest below, can you use the grub command "geometry" (without quotes) to output partition info: at the grub prompt type: geometry (hd0), post the output here.
Not having a CD drive does complicate things. However, I would agree with Ahmeds suggestion above to download a distribution you can put on a USB drive. Slax is a good option and is small (200MB) enough to fit on even the smallest USB stick. Here is a link to the download page:
The download link is on the lower left. On the lower right is a "Read Manuals" link, click that and under "Slax for Users" click on "Slax Distribution: Slax for USB" which will have detailed instructions on getting Slax on a bootable USB. Be sure to read and understand before trying to put Slax on the USB.
It would then be useful to run the fdisk command I suggested above. Slax usually runs as "root" user with a password of "toor".
I notice in your original post that your kernel line shows kernel(hd0,2) and your fstab shows no sda3 partition? It also shows ext3 filesystems on sda1 and sda4 and swap on sda2? I'm wondering what happened to sda3?
grub> geometry (hd0)
drive 0x80: C/H/S = 1023/255/63, The number of sectors = 625142448, LBA
Partition num : 0, Filesystem type is ext2fs, partition type 0x83
Partition num : 1, Filesystem type unknown, partition type 0x82
Partition num : 2, Filesystem type is ext2fs, partition type 0x83
Partition num : 3, Filesystem type is ext2fs, partition type 0x83
ok, now slax-6.1.2 extracted on my usb.
Your assistance will be all appreciated to help me for step by step command lines to use extracted Slax with grub.
usb is detected:
grub> root (hd1,0)
Filesystem type is fat, partition type 0xb
I tried :
grub> rootnoverify (hd1,0)
grub> chainloader +1
grub> makeactive (hd1,0)
grub> boot kernel (hd1,0)
What am I missing ?
How to make slax-6.1.2 bootable ?
Last edited by Msi100SuSe10; 08-30-2010 at 01:26 PM.
When Slax is unpacked to your device, it will create '/boot/' and '/slax/' directories there. Only one more step is needed to make Slax boot from your USB device or disk: you have to manually navigate to the newly created /boot/ directory and run bootinst.sh script (if you are in Linux) or bootinst.bat script (if you are in Windows).
You need to navigate to the boot directory of the Slax /boot directory in a terminal and run ./bootinst.sh or bash bootinst.sh.
then hundreds of script lines write, and the last ones ;
VFS: Cannoot open root devide "<NULL>" or unknown-block(3,6)
Please append a correct "root=" boot option ; here are the available partitions;
0800 312571224 sda driver : sd
0801 20988922 sda1
0802 2104515 sda2
0803 9767520 sda3
0804 279707715 sda4
Kernel panic - not syncing : VFS : Unable to mount root fs to unknown-blck (3,6)
Last edited by Msi100SuSe10; 09-01-2010 at 03:48 AM.