block device major 8 is sda. Why does you system want to access it is beyond me though as there is an initrd involved, you need to look into the linuxrc file in it to get a clue.
Ok, here's the history: a while back, I got my work laptop (Dell latitude C640) dual booting with winXP and gentoo. I was using grub as the bootloader, and after a little bit of tweaking, it's been working great since last september. I hardly ever really used the linux side of things though, until lately, when I've been using clusterknoppix 3.3 at home a lot. So, I figured that I'd wipe the gentoo side, and load clusterknoppix instead.
There are 4 partitions on the drive, hda1=windows; hda2= /boot; hda3= swap; hda4=/ . This was how it was set up when I was running gentoo.
So, i cranked up clusterknoppix, and created a persistent home directory on hda2.
Then, I rebooted (to use the persistent home directory) and ran knoppix-installer through the config part, then saved the config to my persistent /home/knoppix.
Then, I went in and edited the config file, making a couple minor changes: I set hda4 to be a reiserfs file system (like it was with Gentoo) and I also used the 'experimental' bit about mapping drives, to map /boot to my former /boot partition, hda2. then, i cranked knoppix-install up again, loaded the config file, and away I went.
Here is where things started to get funky. I didn't want to blow away my Grub install in the mbr, so in the config i selected lilo to install on the root partition (hda4). That way i figured that since the MBR would look at Grub, all I'd have to do was change a couple lines in grub, it wouldn't be a problem. The installer finished up, so i took a look at my new /boot partition, and all my old files were there, with the new ones from Knoppix. initrd, map, vmlinuz, the usual.
So, i re-wrote grub.conf to use the correct filenames with the new setup:
my grub.conf file:
Code:original (with gentoo): default saved timeout 15 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title=Gentoo Linux root (hd0,1) kernel (hd0,1)/boot/kernel-2.4.20-gentoo-r6 initrd (hd0,1)/boot/initrd-2.4.20-gentoo-r6 savedefault title=Gentoo Linux kernel rebuild root (hd0,1) kernel (hd0,1)/boot/firstbuild savedefault title=Windows XP root (hd0,0) chainloader +1 savedefaultNow, when I try booting from the HD, grub opens fine, and when i select my Knoppix, the last few lines before Kernel Panic are:Code:the newest one, with clusterknoppix: default saved timeout 15 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title=ClusterKnoppix-Debian root (hd0,1) kernel (hd0,1)/boot/vmlinuz-2.4.24-openmosix-1 initrd (hd0,1)/boot/initrd.gz savedefault title=Windows XP root (hd0,0) chainloader +1 savedefault
I'm not exactly sure what do to at this point, I tried all sorts of "root=" options in grub, and i just can't get it to work. Is the problem something with the modprobe error? is it something with the reiserfs filesystem? Should I re-do the whole thing using ext3 instead of reiserfs?Code:RAMDISK: Compressed image found at block 0 Freeing initrd memory: 98k freed VFS: Mounted root (ext2 filesystem). kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno=2 VFS: Cannot open rood device "" or 08:01 Please append a correct "root=" boot option Kernel Panic: VFS: unable to mount rootfs on 08:01
Anyway, what are your thoughts?
--sarge
block device major 8 is sda. Why does you system want to access it is beyond me though as there is an initrd involved, you need to look into the linuxrc file in it to get a clue.
well, i finally (after a while) managed to get to what I think is the linuxrc file:
linuxrc:
there is also a modules folder inside the initrd image, with suprise suprise, reiserfs.o.Code:#!/static/sh insmod /modules/reiserfs.o
but that's it for the initrd file.
any ideas?
--sarge
no, it is not about that. there is some modprobe thing going on trying to access 8,1 which is /dev/sda1. Either it is embedded in the kernel when it is compiled or it is specified some where in the linuxrc.
so basically, I'll need to rebuild the kernel to NOT look for the sda device (that's a SCSI device isn't it?) If I were to specify 'no scsi' in the bootup of the CD, then do a reinstall, do you think it would knock that bit out? I'm not sure if when you do an hd install if it recompiles the kernel for you or not.
Thanks, by the way, even though this isn't solved yet, it's at least massaging my brain a little bit.
--Jorden
well, I'm still fumbling around trying to find the actual linuxrc that's being used, so I can check it out.
Where is it, and how do I open that file up for editing? or even for viewing, at the least?
--sarge
you cannot edit those files in initrd, usually. Assuming it is a compressed ext2 file system, you need to first gzip -d to decompressed it then loop mount that and after that you can edit the file. Reverse the above when done.
However, I am just curious of why a root=/dev/hdaX didn't work. It should usually.
thats what I thought too. but I always get an 'unexpected end of file' error when trying to gunzip the initrd file.
i messed around with grub on the command line for a bit, and when I do
I get the VFS error.Code:root (hd0,1) kernel (hd0,1)/boot/vmlinuz-2.2.24-openmosix-1 boot
but, when I do:
I now get a RAMDISK: compressed image found at block 0 error instead.Code:root (hd0,1) kernel (hd0,1)/boot/vmlinuz-2.2.24-openmosix-1 initrd (hd0,1)/boot/initrd-2.2.24 boot
I wonder if it isn't something to do with the fact that this is a laptop, maybe the autodetect stuff works fine from the CD, but when moved to an HD install, it's broken.. so it thinks that I've got something thats a SCSI device, but it's not?
I'm going to try the 3.4 release of Knoppix, and see if that changes things, and if not, then a 3.3 release of Knoppix. maybe it's the clusterKnoppix distro that's a little funky.
At least I'm halfway enjoying this experience.
-sarge
Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR
$47.00
Cisco (SG100D-05-UK) 5-Ports External Ethernet Switch
$40.00
8 Ports Unmanaged Industrial Ethernet Switch Network Gigabit Ethernet Switch
$76.50
Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24
$117.00
HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A
$30.95
New Linksys SE3005 5-port Gigabit Ethernet Switch
$18.99
Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch
$21.99
HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch
$34.99
Netgear Prosafe Plus JGS524PE 24 Port Gigabit Switch 12 Port PoE JGS524PE-100NAS
$129.98
HP JG937A Flexnetwork 5130-48G PoE+ 48-Port Gigabit Network Switch
$65.95