
* Bernd Eggink (monoped@sudrala.de) wrote:
Hi all,
Hello Bernd!
I'm trying to put a modified version of Crux 3.1 on a USB stick and make it bootable. After some struggling with syslinux, I got it booting. But then it spits out some messages of the kind "No media found on...", and the system halts.
The relevant code is in our initrd's init script that you can find at http://crux.nu/gitweb/?p=system/iso.git;a=blob_plain;f=initramfs/init . I recommend looking at the code starting on line 60. It basically enumerates all disk and hard drive disk deives: CDROM_DEVICES="`awk '/drive name:/ { for (i=3;i<=NF;i++) { printf("%s ", $i) } }' /proc/sys/dev/cdrom/info`" BLOCK_DEVICES="`grep -E '[sh]d' /proc/partitions | awk '{ print $4 }'`" My first guess would be that your USB media is present as /dev/vda*, so you should check that first (just insert some diagnostic ls /dev/*d* or change the grep -E '[sh]d' statement above to grep -E '[shv]d' and hope that it fixes your issue right away. I propose Matt changes this line either way, I could do it too, if there are no objections. Please report back if you had success with my suggested solution. regards, Thomas --