View previous topic :: View next topic |
Author |
Message |
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Fri May 13, 2005 11:04 pm Post subject: error @boot : root block device is unspecified |
|
|
Hello, I just installed gentoo 2005 and when I reboot : error : root block device is unspecified : can t find root on hda4 ...
(I have some probleme with fstab : I don t really understand how it works)
I used the 2005.0/handbook-x86 and modified some things when I had to create the partition : I had windows on hda1 so
I made de boot on hda2 : 32M
swap on hda3 : 500M
and linux on hda4 : rest
here are my fstab and lilo.conf , if someone could help me it would be great
fstab :
Code: |
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2 /boot ext2 noauto,noatime 1 1
/dev/hda4 / xfs noatime 0 0
/dev/hda3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
#/dev/hda2 /boot ext2 noauto,noatime 1 2
#/dev/hda3 none swap sw 0 0
#/dev/hda2 / ext3 noatime 0 1
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
lilo.conf :
Code: |
#
# Start LILO global section
#
# Faster, but won't work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear
# MBR to install LILO to:
boot = /dev/hda
map = /boot/.map
# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80 # see this as the first BIOS disk
#disk=/dev/sda bios=0x81 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82 # see this as the third BIOS disk
# Here you can select the secondary loader to install. A few
# examples is:
#
# boot-text.b
# boot-menu.b
# boot-bmp.b
#
install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you
# do not need boot-{text,menu,bmp}.b in
# /boot, as they are linked into the lilo
# binary.
menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
#timeout=150
delay = 50
# Normal VGA console
vga = normal
# VESA console with size 1024x768x16:
#vga = 791
#
# End LILO global section
#
#
# Linux bootable partition config begins
#
image = /boot/kernel-2.6.11-gentoo-r3
root = /dev/ram0
#root = /devices/discs/disc0/part3
label = Gentoo
read-only # read-only for checking
append="init=/linuxrc ramdisk=8192 real_root=/dev/hda2 udev"
initrd=/boot/initrd-2.6.11-gentoo-r3
#
# Linux bootable partition config ends
#
#
# DOS bootable partition config begins
#
other = /dev/hda1
#other = /devices/discs/disc0/part1
label = Windows
table = /dev/hda
#
# DOS bootable partition config ends
#
|
|
|
Back to top |
|
|
Master Shake l33t
Joined: 10 Apr 2005 Posts: 755 Location: Wilmington, Delaware
|
Posted: Fri May 13, 2005 11:22 pm Post subject: |
|
|
is your hda4 xfs and if so do you have xfs support in your kernel? _________________ System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri May 13, 2005 11:26 pm Post subject: |
|
|
Quote: | error : root block device is unspecified : can t find root on hda4 |
And then this:
Code: | append="real_root=/dev/hda2" |
Ain't gonna work, mate. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Fri May 13, 2005 11:42 pm Post subject: |
|
|
Quote: | is your hda4 xfs and if so do you have xfs support in your kernel? |
?? don't know what is xfs ...
Device Boot Start End Blocks Id System
/dev/hda1 1 3387 25605688+ 7 HPFS/NTFS
/dev/hda2 * 3388 3392 37800 83 Linux
/dev/hda3 3393 3471 597240 82 Linux swap / Solaris
/dev/hda4 3472 5168 12829320 83 Linux
Quote: |
append="real_root=/dev/hda2"
|
ok so I removed that but it still don t work : same error :/ |
|
Back to top |
|
|
LV426 n00b
Joined: 13 May 2005 Posts: 17 Location: Germany
|
Posted: Sat May 14, 2005 12:23 am Post subject: |
|
|
Well don't get me wrong, but you are most like a genkernel user right?
If so, try setting Lilo up this way:
Code: |
#
# Linux bootable partition config begins
#
image = /boot/kernel-2.6.11-gentoo-r3
root = /dev/ram0
#root = /devices/discs/disc0/part3
label = Gentoo
read-only # read-only for checking
append="init=/linuxrc ramdisk=8192 real_root=/dev/hda4 udev"
initrd=/boot/initrd-2.6.11-gentoo-r3
|
check if "/boot/initrd-2.6.11-gentoo-r3" really exists
and you can try to change /ets/fstab to something like
Code: |
/dev/hda4 / auto noatime 0 0
|
You can easily check which kind of partition type you use with "cfdisk /dev/hda" (If you followed the Gentoo Handbook you most like will have an reiserfs partition)
Oh, and any particular reason you use Lilo not Grub? _________________ Experience is a hard teacher because she gives the test first, the lesson afterwards. |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Sat May 14, 2005 12:53 am Post subject: |
|
|
Quote: | Well don't get me wrong, but you are most like a genkernel user right? |
right
ok i changed fstab and i still have the error :/
Quote: | check if "/boot/initrd-2.6.11-gentoo-r3" really exists |
mm it exist if I do mount /dev/hda2 ... else it don't
Quote: |
ah, and any particular reason you use Lilo not Grub?
|
no reason just never tryed grub, is it better than lilo ? |
|
Back to top |
|
|
bosyotech Tux's lil' helper
Joined: 29 Jan 2005 Posts: 79 Location: earth
|
Posted: Sat May 14, 2005 1:42 am Post subject: |
|
|
Quote: | no reason just never tryed grub, is it better than lilo ? |
IMHO, yup you only need to install grub once on the MBR and only update grub's configuration file when installing new kernels, whilst lilo -> update lilo.conf -> run /sbin/lilo == everytime update MBR just my 2 cents. _________________ of all the things i've lost, i miss my mind the most |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Sat May 14, 2005 8:56 am Post subject: |
|
|
prefer to let lilo (I already have problems with partition with lilo and I find grub more complicated ) but when I boot I can choose between gentoo and win , and it work correctly, it after when I choose gentoo, when gentoo is starting that I have the error |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Sat May 14, 2005 12:38 pm Post subject: |
|
|
i tryed to reinstall all, and now i have another error :
waring : unable to open an initial console
kernel panic - not syncing: no init found try passing init= option to kernel
here are the new fstab and lilo :
Code: |
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2 /boot reiserfs noauto,noatime 1 1
/dev/hda4 / reiserfs noatime 0 0
/dev/hda3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
Code: |
#
# Start LILO global section
#
# Faster, but won't work on all systems:
#compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear
# MBR to install LILO to:
boot = /dev/hda
map = /boot/.map
# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/disc0/disc bios=0x80 # see this as the first BIOS disk
#disk=/dev/sda bios=0x81 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82 # see this as the third BIOS disk
# Here you can select the secondary loader to install. A few
# examples is:
#
# boot-text.b
# boot-menu.b
# boot-bmp.b
#
install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you
# do not need boot-{text,menu,bmp}.b in
# /boot, as they are linked into the lilo
# binary.
menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
timeout=150
# Normal VGA console
vga = normal
# VESA console with size 1024x768x16:
#vga = 791
#
# End LILO global section
#
#
# Linux bootable partition config begins
#
image = /boot/kernel-2.6.11-gentoo-r3
root = /dev/ram0
#root = /devices/discs/disc0/part3
label = Gentoo
read-only # read-only for checking
append="init=/linuxrc ramdisk=8192 real_root=/dev/hda4"
initrd=/boot/initrd-2.6.11-gentoo-r3
#
# Linux bootable partition config ends
#
#
# DOS bootable partition config begins
#
other = /dev/hda1
#other = /devices/discs/disc0/part1
label = Windows
table = /dev/hda
#
# DOS bootable partition config ends
#
|
|
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat May 14, 2005 1:00 pm Post subject: |
|
|
Please verify that the required files are in your /boot directory. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
thedrez n00b
Joined: 10 May 2005 Posts: 26
|
Posted: Sat May 14, 2005 1:02 pm Post subject: |
|
|
You are NOT alone...
I've been fighting this all week. The closest I get to an answer is that it has to do with udev and following all of the required steps (even if they are not documented in the handbook and finally some kind of magic dance during a full moon....
I was asked, and you'll probably be too, to check my /dev and make sure that the /dev/console and /dev/null device files exist. Additionally, are the device drivers for your particular drive controller either compiled into your kernel or selected as modules during your genkernel setup.
If I fix this, I'll post.... _________________ *****************************************
Artificial intelligence is no match for natural stupidity!
Believe me, I know a lot about the latter. I'm a natural... |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Sat May 14, 2005 1:27 pm Post subject: |
|
|
[quote]Please verify that the required files are in your /boot directory.[/here quote]
here are the files in my /boot : System.map-2.6.11-gentoo-r3, boot, initrd-2.6.11-gentoo-r3, kernel-2.6.11-gentoo-r3
Quote: | If I fix this, I'll post.... |
thx, hope u will find , i really don t no what to do atm |
|
Back to top |
|
|
MgC n00b
Joined: 09 May 2005 Posts: 24
|
Posted: Sat May 14, 2005 6:59 pm Post subject: |
|
|
mm reinstalled (again) and founded that when i use genkernel --menuconfig all and when i active my Radeon , i got the error : root block device is unspecified : can t find root on hda4 ... but if i use genkernel --udev all it works ... |
|
Back to top |
|
|
|