Re: Kernel panic - booting from USB harddisk
Op Fri, 02 Oct 2009 01:38:29 +0200 schreef Baho Utot baho-u...@columbus.rr.com: Hans Kaper wrote: Op Thu, 01 Oct 2009 00:19:29 +0200 schreef Baho Utot baho-u...@columbus.rr.com: J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) I have done some more research on your problem. Try this in /etc/fstab for the USB disk UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b / ext3 defaults 1 1 change the blkid to the correct value based on $ blkid /dev/sdxx Are you trying to boot with grub on the USB drive? If so try changing /boot/grub/menu.lst kernel line like this kernel /boot/lfskernel-2.6.30.2 root=/dev/sdd1 rootdelay=15 ro quite change the /dev/sdd1 to the correct value for your USB drive If you have success then try to use UUID in the menu.lst file like this kernel /boot/lfskernel-2.6.30.2 root=UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b rootdelay=15 ro quite It looks like grub or the kernel can give the kernel panic about not syncing. I like to use UUID or LABEL in grubs menu.lst file. Grub can process UUID of LABELs and it makes sure that the drive/partition that you are trying to boot doesn't change or get mixed up. ( It keeps me from getting mixed up trying to keep whos bootin from here to where ? straight ) But. After you can successfully load/execute the kernel, and grubs done it's work I think the kernel can not locate its root file system and barfs giving the kernel panic. I have found that UUID or LABELs in /etc/fstab gives you the kernel panic because the kernel can not process UUID or LABELs without using a initrd as udev has not been started. So you need to use /dev/sdx there. example: title LFS 6.5 - USB root (hd0,0) kernel /boot/lfskernel-2.6.30.2 root=/dev/sdd1 rootdelay=15 ro quite That makes the USB tied to that PC :( If you need it to boot on another PC you need to edit the grub line from the menu when grubs starts up or use an initrd. Hope this helps. You are right. root=/dev/sdc8 works fine. root=UUID=. fails with a Grub-error 11: Unrecognized device string. My intention was indeed to use LFS on the usb-disk on different computers. Maybe I will try to build an initrd sometime, just as an exercise; changing the Grub-line every time I change computers looks not very neat to me. But as you have seen in the post from Danny Engelbarts, leaving out the root= altogether is an even simpler solution. I think we can close this thread now. I am very grateful for your interest; your suggestions have brought me a good step further in understanding the workings of Linux. Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Wed, 30 Sep 2009 01:56:40 +0200 schreef Baho Utot baho-u...@columbus.rr.com: J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) From devices.txt 2 blockFloppy disks 0 = /dev/fd0Controller 0, drive 0, autodetect 1 = /dev/fd1Controller 0, drive 1, autodetect 2 = /dev/fd2Controller 0, drive 2, autodetect 3 = /dev/fd3Controller 0, drive 3, autodetect 128 = /dev/fd4Controller 1, drive 0, autodetect 129 = /dev/fd5Controller 1, drive 1, autodetect 130 = /dev/fd6Controller 1, drive 2, autodetect 131 = /dev/fd7Controller 1, drive 3, autodetect Some one correct me if I am wrong but It looks to me that it is trying to boot/read/sync the floppy disk I don't recognize the former text from my problem. But that problem is solved now, as you can see from another post by me. But nevertheless I am very grateful for your help. Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Wed, 30 Sep 2009 02:42:09 +0200 schreef Mike McCarty mike.mcca...@sbcglobal.net: Baho Utot wrote: J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) From devices.txt 2 blockFloppy disks 0 = /dev/fd0Controller 0, drive 0, autodetect 1 = /dev/fd1Controller 0, drive 1, autodetect 2 = /dev/fd2Controller 0, drive 2, autodetect 3 = /dev/fd3Controller 0, drive 3, autodetect 128 = /dev/fd4Controller 1, drive 0, autodetect 129 = /dev/fd5Controller 1, drive 1, autodetect 130 = /dev/fd6Controller 1, drive 2, autodetect 131 = /dev/fd7Controller 1, drive 3, autodetect Some one correct me if I am wrong but It looks to me that it is trying to boot/read/sync the floppy disk It is, but that's likely just that it's trying one thing after another, and failing, then producing a report on the last thing it tried. Mike See my reply to Baho Utot. Problem solved now. Thanks for your attention, Mike. Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Hans Kaper wrote: See my reply to Baho Utot. Problem solved now. Thanks for your attention, Mike. I looked at every reply to Baho Utot by you, and I don't see one which says you solved the problem. I'd be very interested to see a repost or other report on what did the trick! Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Wed, 30 Sep 2009 00:05:52 +0200 schreef Danny Engelbarts d.engelba...@gmail.com: On Tuesday 29 September 2009 22:19:24 Hans Kaper wrote: Good suggestion. So once again I made an entry in Grub's menu.lst, carefully copying the disk/by-id-field from the SUSE-entry that boots allright from the usb-disk (and checked it with the udevinfo information), trying the partition-numbers 7,8 and 9, but to no avail. The kernel-suggestions for valid partition device nodes includes the partitions of the usb-disk, including number 8, which, I think, is the right number. I believe I see the problem here, I wouldn't be surprised if the UUID label when booting from the USB is different to the UUID when booting Suse. Actually I would be surprised if they were! I don't exactly understand what you mean. I have two Suse-instances: one on an internal harddisk, one on the usb-disk. Both instances give the same UUID's. Anyway, it looks like you are not using an initrd image. That means the root= part probably isn't necessary, by default the kernel will use the partition it is booted from as the root device which is what you'd want in this case. That is a clever work-around!!! And it worked!! After changing an error in fstab (/mnt/lfs had to be /) and remembering my password, I was able to log in. The LFS-book suggests a root= entry for LFS and I wonder whether it should better be left out there. On the other hand, it should work in that way too. As a former researcher I want to know how and, if not, why not. I will further try out the suggestions from Baho Utot. Anyway, Danny, I am very grateful to you for supplying the solution to my problem. And of course to all the others on the forum who took notice of my question, took the trouble of looking into it and gave suggestions for an answer. I was pleasantly surprised by all the reactions. I hope to gather more experience in the future and be able to help others in the same way. Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Thu, 01 Oct 2009 00:19:29 +0200 schreef Baho Utot baho-u...@columbus.rr.com: J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) I have done some more research on your problem. Try this in /etc/fstab for the USB disk UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b / ext3 defaults 1 1 change the blkid to the correct value based on $ blkid /dev/sdxx Are you trying to boot with grub on the USB drive? If so try changing /boot/grub/menu.lst kernel line like this kernel /boot/lfskernel-2.6.30.2 root=/dev/sdd1 rootdelay=15 ro quite change the /dev/sdd1 to the correct value for your USB drive If you have success then try to use UUID in the menu.lst file like this kernel /boot/lfskernel-2.6.30.2 root=UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b rootdelay=15 ro quite As I said in another post, I am able to boot now by way of a work-around. But I am still interested to know why my former way did not work, so I will try your suggestions (if the forum-moderator allows us to carry on the thread). Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Hans Kaper wrote: Op Thu, 01 Oct 2009 00:19:29 +0200 schreef Baho Utot baho-u...@columbus.rr.com: J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) I have done some more research on your problem. Try this in /etc/fstab for the USB disk UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b / ext3 defaults 1 1 change the blkid to the correct value based on $ blkid /dev/sdxx Are you trying to boot with grub on the USB drive? If so try changing /boot/grub/menu.lst kernel line like this kernel /boot/lfskernel-2.6.30.2 root=/dev/sdd1 rootdelay=15 ro quite change the /dev/sdd1 to the correct value for your USB drive If you have success then try to use UUID in the menu.lst file like this kernel /boot/lfskernel-2.6.30.2 root=UUID=6342a6b5-25cf-4d01-a318-68309d12ab5b rootdelay=15 ro quite As I said in another post, I am able to boot now by way of a work-around. But I am still interested to know why my former way did not work, so I will try your suggestions (if the forum-moderator allows us to carry on the thread). Hans Kaper. It looks like grub or the kernel can give the kernel panic about not syncing. I like to use UUID or LABEL in grubs menu.lst file. Grub can process UUID of LABELs and it makes sure that the drive/partition that you are trying to boot doesn't change or get mixed up. ( It keeps me from getting mixed up trying to keep whos bootin from here to where ? straight ) But. After you can successfully load/execute the kernel, and grubs done it's work I think the kernel can not locate its root file system and barfs giving the kernel panic. I have found that UUID or LABELs in /etc/fstab gives you the kernel panic because the kernel can not process UUID or LABELs without using a initrd as udev has not been started. So you need to use /dev/sdx there. example: title LFS 6.5 - USB root (hd0,0) kernel /boot/lfskernel-2.6.30.2 root=/dev/sdd1 rootdelay=15 ro quite That makes the USB tied to that PC :( If you need it to boot on another PC you need to edit the grub line from the menu when grubs starts up or use an initrd. Hope this helps. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Tue, 29 Sep 2009 04:32:17 +0200 schreef Spahn, Daniel dsp...@cuh2a.com: Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) Have you tried changing the partition number up or down by one? Yes, I have, but without result. I have a SUSE 10.3-installation on a primary partition of the same USB-disk and that boots fine. But from the SUSE kerel-configuration I have not been able to figure out the relevant difference with the LFS-kernel-configuration. I tend not to use a configuration across distros, unless I had built the first from a pure kernel source from kernel.org or similar. In fact, most of my kernel configurations are done from scratch, because I have had trouble in the past in areas where the flavor customized the kernel for the sub-version of the distribution. Of course you are right. I only tried to figure out what was missing or wrong in the LFS-kernel by comparing it with a kernel on the same drive that did boot. Try re-partitioning, setting the boot flag, and swap partition type. I prefer cfdisk. I will certainly try that, but my first callenge now is to be able to boot from the USB-disk and understand why it does not now. It took me a long time with LFS to come as far as this (and I enjoyed it very much and learned a lot from it), so I hope somebody can help me with the last hurdle. As much as I like LFS, it's not great for a production OS. Without distancing yourself from the OS too much, Gentoo automates the tedious end of things, but specific customizations can be applied relatively easily. Maybe you are right. I like LFS because it gives the opportunity to build a system from scratch and by doing that learning a lot about the details of Linux. I also like the support forum with people that will try to help you when you got stuck. But I will have a look into Gentoo sometime! Thanks a lot. Hans. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Op Sat, 26 Sep 2009 21:29:08 +0200 schreef Baho Utot baho-u...@columbus.rr.com: Ken Moffat wrote: 2009/9/26 J.P.Kaper spaky...@xs4all.nl: Maybe somebody else can find the right suggestion to let me solve my problem. Hans Kaper. One of the problems with usb drives is that they can take a long time to appear. I've never tried to boot from usb, but ISTR that there is a command-line argument to wait for the drive. A quick look in the kernel's Documentation/kernel-parameters.txt (you can read it from the tarball in 'view' if you don't have the kernel source tree handy) suggests boot_delay= might be what I'm thinking of. Perhaps try boot_delay=15 which should be a ridiculously long wait. If it works like that, cut it down until you've reduced it too far, then back off a bit. I expect you've already seen the following guides, but just in case: http://www.damnsmalllinux.org/wiki/index.php/USB_Booting and http://wiki.debian.org/BootUsb ĸen I think you may be looking for rootdelay=seconds from Documentation/kernel-parameters.txt rootdelay=[KNL] Delay (in seconds) to pause before attempting to mount the root filesystem Others to try: boot_delay=Milliseconds to delay each printk during boot. Values larger than 10 seconds (1) are changed to no delay (0). Format: integer usb-storage.delay_use= [UMS] The delay in seconds before a new device is scanned for Logical Units (default 5). The above hints were a step forward for my problem, but not the ultimate solution. Adding the kernel-parameter boot_delay=9000 and/or usb-storage.delay_use=15 changed nothing. But adding rootdelay=10 made a difference: the kernel still would not boot, but in the suggestions by the kernel of partitions to boot from, my usb-disk appeared! Adding boot_delay=9000 made no difference. So the kernel recognizes my usb-disk, but why it will not boot from there is still a puzzle to me. Copying the whole LFS-installation from a logical to a primary partition on the usb-drive made no difference. Any further ideas are very wellcome!! -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Hi, have you double-checked that the root= kernel parameter is set correctly in your menu.lst? So far, I only read about your fstab in this thread. Check again what suggestions the kernel makes for valid partition device nodes... Just in case you haven't tried yet. - Philipp -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) From devices.txt 2 blockFloppy disks 0 = /dev/fd0Controller 0, drive 0, autodetect 1 = /dev/fd1Controller 0, drive 1, autodetect 2 = /dev/fd2Controller 0, drive 2, autodetect 3 = /dev/fd3Controller 0, drive 3, autodetect 128 = /dev/fd4Controller 1, drive 0, autodetect 129 = /dev/fd5Controller 1, drive 1, autodetect 130 = /dev/fd6Controller 1, drive 2, autodetect 131 = /dev/fd7Controller 1, drive 3, autodetect Some one correct me if I am wrong but It looks to me that it is trying to boot/read/sync the floppy disk -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re:Re: Kernel panic - booting from USB harddisk
has anybody solved this problem, i have encountered it yet 在2009-09-27,Baho Utot baho-u...@columbus.rr.com 写道: Ken Moffat wrote: 2009/9/26 J.P.Kaper spaky...@xs4all.nl: Maybe somebody else can find the right suggestion to let me solve my problem. Hans Kaper. One of the problems with usb drives is that they can take a long time to appear. I've never tried to boot from usb, but ISTR that there is a command-line argument to wait for the drive. A quick look in the kernel's Documentation/kernel-parameters.txt (you can read it from the tarball in 'view' if you don't have the kernel source tree handy) suggests boot_delay= might be what I'm thinking of. Perhaps try boot_delay=15 which should be a ridiculously long wait. If it works like that, cut it down until you've reduced it too far, then back off a bit. I expect you've already seen the following guides, but just in case: http://www.damnsmalllinux.org/wiki/index.php/USB_Booting and http://wiki.debian.org/BootUsb ĸen I think you may be looking for rootdelay=seconds from Documentation/kernel-parameters.txt rootdelay=[KNL] Delay (in seconds) to pause before attempting to mount the root filesystem Others to try: boot_delay=Milliseconds to delay each printk during boot. Values larger than 10 seconds (1) are changed to no delay (0). Format: integer usb-storage.delay_use= [UMS] The delay in seconds before a new device is scanned for Logical Units (default 5). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
2009/9/26 J.P.Kaper spaky...@xs4all.nl: Maybe somebody else can find the right suggestion to let me solve my problem. Hans Kaper. One of the problems with usb drives is that they can take a long time to appear. I've never tried to boot from usb, but ISTR that there is a command-line argument to wait for the drive. A quick look in the kernel's Documentation/kernel-parameters.txt (you can read it from the tarball in 'view' if you don't have the kernel source tree handy) suggests boot_delay= might be what I'm thinking of. Perhaps try boot_delay=15 which should be a ridiculously long wait. If it works like that, cut it down until you've reduced it too far, then back off a bit. I expect you've already seen the following guides, but just in case: http://www.damnsmalllinux.org/wiki/index.php/USB_Booting and http://wiki.debian.org/BootUsb ĸen -- After tragedy, and farce, OMG poneys! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) It took me a long time with LFS to come as far as this (and I enjoyed it very much and learned a lot from it), so I hope somebody can help me with the last hurdle. I do, too. You've already done enough to about exhaust what help I could give. Sorry... Thought I could be more help. Mike Mike, Thanks for your effort, anyway. Maybe somebody else can find the right suggestion to let me solve my problem. Hans Kaper. -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
Ken Moffat wrote: 2009/9/26 J.P.Kaper spaky...@xs4all.nl: Maybe somebody else can find the right suggestion to let me solve my problem. Hans Kaper. One of the problems with usb drives is that they can take a long time to appear. I've never tried to boot from usb, but ISTR that there is a command-line argument to wait for the drive. A quick look in the kernel's Documentation/kernel-parameters.txt (you can read it from the tarball in 'view' if you don't have the kernel source tree handy) suggests boot_delay= might be what I'm thinking of. Perhaps try boot_delay=15 which should be a ridiculously long wait. If it works like that, cut it down until you've reduced it too far, then back off a bit. I expect you've already seen the following guides, but just in case: http://www.damnsmalllinux.org/wiki/index.php/USB_Booting and http://wiki.debian.org/BootUsb ĸen I think you may be looking for rootdelay=seconds from Documentation/kernel-parameters.txt rootdelay=[KNL] Delay (in seconds) to pause before attempting to mount the root filesystem Others to try: boot_delay=Milliseconds to delay each printk during boot. Values larger than 10 seconds (1) are changed to no delay (0). Format: integer usb-storage.delay_use= [UMS] The delay in seconds before a new device is scanned for Logical Units (default 5). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Kernel panic - booting from USB harddisk
I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) In the lines right before the panic the kernel seems to enumerate the partitions on my internal harddisks: [..] 0801 number sdxy where x=a or b, in y I recognize the partitionnumbers on my two internal harddisks and number correlates with the size of the partitions. So it looks as though the panic has something to do with the USB-disk, which is next in line for enumeration. The fstab-entry for the USB-disk is: /dev/disk/by-id/usb-SAMSUNG_HM160HI_16113662-0:0-part8 /mnt/lfs ext3 defaults 1 1 lspci -v showed as USB-drivers on my host system: USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller and USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller. On that basis I build every reasonable USB- and SCSI-configuration entries into the kernel as well as all of the ext2 and ext3 filesystem-entries, but nothing worked. I have a SUSE 10.3-installation on a primary partition of the same USB-disk and that boots fine. But from the SUSE kerel-configuration I have not been able to figure out the relevant difference with the LFS-kernel-configuration. In the support-archives are some posts with comparable problems, for instance Charles Turner in April (but I could not find his solution) and RaptorX in August (but that was not about an USB-harddisk). Baho Uto gave an excellent exposition to the problem of Rodolfo Perez, but I work the other way round. I tried his solution and copied my LSF-instance from the USB- to my second harddisk, build the kernel there and changed fstab, but Grub protested: Bad file or directory type. I have not had the time yet to figure out what went wrong there. It took me a long time with LFS to come as far as this (and I enjoyed it very much and learned a lot from it), so I hope somebody can help me with the last hurdle. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Kernel panic - booting from USB harddisk
J.P.Kaper wrote: I am building LFS from book 6.4 on an ext3 logical partition of an external USB harddisk. My host system is SUSE 10.3 on one of my two internal harddisks. Booting from the USB disk fails with [4.410067] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (2,0) This is usually a result of not building in (can't be loadable modules) either the file system drivers you need, or the low level drivers for the hardware. Make sure that you build in the file system you want to use, the SCSI driver, and the USB driver. (The USB devices are faked as SCSI to the upper layers of the software stack.) It looks like you've already done this, so maybe this isn't the problem. In the lines right before the panic the kernel seems to enumerate the partitions on my internal harddisks: [..] 0801 number sdxy where x=a or b, in y I recognize the partitionnumbers on my two internal harddisks and number correlates with the size of the partitions. So it looks as though the panic has something to do with the USB-disk, which is next in line for enumeration. The fstab-entry for the USB-disk is: /dev/disk/by-id/usb-SAMSUNG_HM160HI_16113662-0:0-part8 /mnt/lfs ext3 defaults 1 1 I hope this is a real disc drive, and not a FLASH drive. FLASH and ext3 are not a very good match. [...] On that basis I build every reasonable USB- and SCSI-configuration entries into the kernel as well as all of the ext2 and ext3 filesystem-entries, but nothing worked. You are doing the right things (lspci, etc.) but still no joy. Hmm. It took me a long time with LFS to come as far as this (and I enjoyed it very much and learned a lot from it), so I hope somebody can help me with the last hurdle. I do, too. You've already done enough to about exhaust what help I could give. Sorry... Thought I could be more help. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page