Debian Live on a USB memory stick?
El jue, 13-04-2006 a las 11:53 +0100, Chris Lale escribi?:
> I have made a little progress. I cannont get Grub to boot from my USB
> stick. Smart Bootloader will install to the USB's MBR, but will not boot
> vmlinuz from it. This leaves Syslinux.
>
> I installed Syslinux and put a syslinux.cfg file in the USB's root:
>
> DEFAULT vmlinuz
> APPEND append initrd=initrd.gz root=/dev/sda1 boot=casper
> TIMEOUT 500
> SAY Debian Live
>
> I put the contents of the live/image directory into the USB , excluding
> the isolinux directory:
>
> casper
> initrd.gz
> ldlinux.sys
> syslinux.cfg
> vmlinuz
>
> The system boots from the USB, opens vmlinuz (dots on screen) and
> creates the ram disc with initrd.gz (dots on screen). It then starts to
> boot linux but eventually fails trying to mount a CD from my empty CD
> drive in /dev/hdc:
>
> /init: 111: Cannot open /dev/hdc: No medium found.
> mount: Mounting ro on /dev/hdc failed: No such device.
>
> Is the CD mount command in initrd.gz or is it something to do with
> squashfs? Is there an obvious way around this? Presumably, the system is
> trying to get the filesystem from the CD when it needs to get it from
> the USB (/dev/sda1).
>
>
Hi.
I'm working on Spanish project called metadistros. I have made some
initramfs scripts to boot from usb sticks:
You can get them in:
http://soleup.eup.uva.es/websvn/
Click on soleupix --> initramfs-tools-metadistros
--> scripts --> usb-premount
Interesting scripts are local and setup_image
The process is load loop, squashfs and unionfs modules
load USB and SCSI modules and wait until an sdX _removable_ device is
created, then mount device, mount squashfs, exec some scripts and chroot
into.
In some usb sticks (like kingston) there are not partitions, and only
can use syslinux in other with partitions can use grub instead.
My grub config:
title USB boot
root (hd0,0)
kernel /boot/vmlinuz ramdisk_size=100000 root=/dev/ram0 BOOT=usb restore=y secret quiet
initrd /boot/initramfs
boot
You can try to build a metadistro like this installing
initramfs-tools-metadistros package, change BOOT variable
in /etc/mkinitramfs/initramfs.conf to usb and exec genusblive
Squashfs is generated from a chroot environment placed
in /media/distro/usb-sources
Some more info (in spanish yet)
http://usebix.consoltux.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://lists.debian-unofficial.org/pipermail/live/attachments/20060413/4e6c974b/attachment.pgp
Reply to: