I removed all the files off my USB disk and tried again from scratch. This time I did a bit better - the initrd.gz file I made this time comes in at 2.1MB, which works better. I'm using a label on the USB stick I'm using to boot from. But unfortunatly it dosen't complete - it almost works but fails with ....
Code:
/sbin/e2fsck: Unable to resolve 'label=xyz' Code:
fstab Code:
syslinux.cfg Code:
Partitions on USB stick (sdb) from cfdisk ljones |
Try uppercase "LABEL" in your /etc/fstab. The lowercase "label" is not supported.
Eric |
Quote:
In any case you are better off using /dev/root, see below. http://linuxconfig.dyndns.org/lazy/L...vable_USB_disk IMPORTANT: /etc/fstab must always contain the correct device to mount as root. It is possible to use the filesystems UUID or LABEL in /etc/fstab if the USB disk gets a different devicename like /dev/sdc instead of /dev/sda between reboots. It is also possible to use /dev/root if the kernel and system supports it. Something like this: /dev/root / ext4 defaults 1 1 or this: LABEL="SW_13.0" / ext4 defaults 1 1 /Magnus |
Ah :) Thank you both -- using LABEL="xyz" worked (as did /dev/root);
Code:
fstab :) ljones |
:-( Uh oh.....
Looks like there are more problems. I'm finding although it will work on some machines it completely fails on others. On my EEE PC (x86) for example it works with no problems, so does the emulator qemu. However I have two other systems here, one around a year old (x86-64) and another about 3 or so years old also x86-64 and these both fail to boot. The former dosen't see the partition on the USB stick, the latter dosen't even get that far. Wonder what could be wrong, maybe something to do with x86-64 or USB drivers? Will take the USB stick to work and try on a couple of x86(not 64 bit) systems, see what happens. ljones |
Well I can confirm the USB stick worked on one system at work. This system was a 32-bit system and not a 64-bit one. The others were all too old and didn't even attempt to boot x.x .
The 32-bit version definately dosen't seem to work in a 64-bit system x.x . Maybe USB driver problem? I've now been trying to make a 64-bit version of the above using the instructions but I'm hitting apon a problem. With the 64 bit version I've made the partition is detected OK until time comes to run the commnads "awk","blkid" and "cut". These don't seem to want to run even if I use chmod 0777 awk, chmod 0777 blkid and chmod 0777 cut and then remake the initrd file. The system complains that they don't exist (and refuses to run them),e.g. (this is at the point after the partition on the usb stick has been detected); Code:
/init: line 292 /sbin/blkid: not found Code:
cd /bin Code:
default 1 syslinux directory Code:
drwxr-xr-x 2 aaaaa root 2.0K 2010-02-09 19:02 . USB Stick Partitions: Code:
sdb1 - Boot - Primary - W95FAT32 [ ] 106MB Code:
/dev/root / ext3 defaults 1 1 |
Quote:
Try cat /proc/partitions to see any partitions without dev files. Which kernel are you using, huge, huge-smp or the generic? I have succesfully tested with huge-smp for both 32 and 64-bit using a 32-bit initrd. /Magnus |
For both the 32 & 64 bit installs yep definately installed the devs slackware package. I looked at /proc/partitions after booting off the USB stick (32 bit partition) and got this;
Code:
major minor #blocks name *EDIT* If I tried a 32 bit vmlinuz with a 64 bit initrd/system then it failed completely. Got these messages; Code:
request_module: runaway loop modprobe binfmt-464c ljones |
1 Attachment(s)
if it helps here's a picture of what happens on the 64 bit system when it fails (using both a 64 bit initrd & vmlinuz).
ljones |
Quote:
I haven't tried to build a 64-bit initrd. It most likely needs another set of libraries and executables (64-bit). By the way, which 64-bit kernel did you use? /Magnus |
WHY do you need initrd? I boot my slackware just with rootdelay and directly specifiing root. i.e. in GRUB:
Code:
linux (hd1,6)/boot/vmlinuz root=/dev/sdb6 rootdelay=10 |
Quote:
Yep quite agree :) 64 bit likely needs different libraries and executables. I followed the slackware 13 (32-bit) instructions to try them out but on a 64 bit system. I didn't see any dependency issues though, I even checked the libraries with ldd. For the 64 bit kernel I used vmlinuz-huge-2.6.29.6 . Thats the one my normal slackware 64-bit system boots up with. ljones |
1 Attachment(s)
BTW here's what I get if I use a 32 bit initrd and a 64 bit kernel ....
ljones |
Quote:
|
Not sure why it wouldn't run the initrd. Its even specified in the syslinux.cfg .... I'm not sure what could be wrong. Not sure what to do next, maybe start from scratch?
ljones |
All times are GMT -5. The time now is 08:53 PM. |