install grub
hello guyz ,
it`s gaves me these error when am trying to boot slackware VFS: Cannot open root device "hda1" or unknown-block(0,0) Please append a correct "root=" boot option Kernel Panic - not syncing: VFS Unable to mount root fs on unknown-block(0,0) and my grub.conf is : boot=/dev/hda default=2 timeout=5 splashimage=(hd0,4)/boot/grub/splash.xpm.gz hiddenmenu title install slackware root (hd0,0) kernel /boot/vmlinuz ro root=/dev/hda1 |
i suppose the problem is in the "root=/dev/hda1" part. hda is the name of the device, it could also be sda. the number refers to the partion. You may want to simplify your config for now until you get this sorted out. heres what mine looks like:
Code:
title Arch Linux [/boot/vmlinuz26] |
What is the purpose of "boot=/dev/hda" at the beginning of the file?
Also, "ro" typically comes after the root= statement in the kernel line---like so: kernel /boot/vmlinuz root=/dev/hda1 ro Finally, be sure that your kernel is actually named "vmlinuz". I always make a soft link to do this. |
oky i change my grub.conf like this
title install slackware root (hd0,0) kernel /boot/vmlinuz root=/dev/hda1 ro but it give me these errors when am boot slackware : init : illgel run level : root =/dev/hda1 kernel panic - not syncing : attempted to kill init ! what i have to do ? |
Did you try sda instead of hda (as suggested by czarr)?
also, I just noticed the space in the title--I think that may be causing problems. Try changing it to "title slackware" or "title install_slackware" (The clue is the error message--it was looking for a runlevel and found the root statement. Makes no sense) |
pixellany look at the default number in his first post, you are assuming his slack is on sda1. 7mza if you can boot to a terminal on a live cd type 'fdisk -ln' as root and post us the results here.
|
Quote:
|
I am talking about his default set to number two which means he has a least two distros in the menu list or he has changed the number on default. I worked one of these the other day that a guy had two drives and I did not find that out till after five posts and the distro he was having problems was on the second hd.
|
Ooooops!! OK, I'm a little slow today.
But default 0 means #1, n'est-ce pas? All along, I have assumed that the issue was with the configuration for Slackware, and that OP knew to select the right thing from the boot menu..... 7mza; If you're still with us, give us the output of: fdisk -l (run this as root---sometimes needs to be /sbin/fdisk -l all entries in /boot/grub/menu.lst |
thnx for your help guys , yeah Larry Webb , u r right i have other distros ( windows , centos ) coz i had 2 HD one of them has Slackware and other has (Windows & CentOs) but am working now on 1st HD that has Slackware and it dosnt matter what the default number coz i choose my distros manual and c my fdisk -ln and fdisk -ln:
root@ubuntu:~# fdisk -ln fdisk: invalid option -- n Usage: fdisk [-b SSZ] [-u] DISK Change partition table fdisk -l [-b SSZ] [-u] DISK List partition table(s) fdisk -s PARTITION Give partition size(s) in blocks fdisk -v Give fdisk version Here DISK is something like /dev/hdb or /dev/sda and PARTITION is something like /dev/hda7 -u: give Start and End in sector (instead of cylinder) units -b 2048: (for certain MO disks) use 2048-byte sectors root@ubuntu:~# fdisk -l Disk /dev/hdd: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdd1 * 1 2432 19535008+ 83 Linux /dev/hdd2 2433 4865 19543072+ f W95 Ext'd (LBA) /dev/hdd5 2433 3647 9759456 83 Linux /dev/hdd6 3648 4741 8787523+ 83 Linux /dev/hdd7 4742 4865 995998+ 83 Linux |
I am sorry for the typo error, it should have been fdisk -lu but fdisk -l works also. The fdisk -l you are showing is what your bios shows to boot 4th and in order to boot from it you would have to have
root (hd3,X) the 'X' being the partition number -1 that you wanted to boot. You need to do the fdisk -l from a live cd and not an installed distro. |
sorry Larry Webb i didnt understand what u mean by " you would have to have root (hd3,X) " i just have one HD so it would be like root(hd0,X)
oky i change my kernel now and my grub.conf like this title slackware root (hd0,0) kernel /boot/vmlinuz-2.6.18-53.1.13.el5 root=/dev/hdd1 ro will reboot now and c what happen |
not work . i think i have to mount something on fstab ?
|
All times are GMT -5. The time now is 07:50 PM. |