On Tue, 2004-09-28 at 14:41 -0400, Joey Hess wrote: > Andres Salomon wrote: > > Syslinux does not work for me (as well as a few other people), for > > memory stick booting (see #273453 for more details). > > Unfortunatly, booting grub from a USB device has always failed for me > and your method did not seem to work. :-( > Hrm. What ends up happening? Where does it fail? > > Instead, I ended up > > using grub to boot from my memory stick. Since people may be interested > > in bypassing the syslinux/mbr dance, and/or may be more comfortable w/ > > grub, here's what I did: > > Another reason might be if you have a larger stick and want partitions > on it so you can use part of it for something other than > debian-installer. > *nod*. I hadn't really thought about that, but yes, that would be handy. > > 1) If not already created, create a partition on the memory stick. The > > type doesn't matter (I left it at the default for linux, which is 0x83), > > just make sure the bootable flag is toggled. Format the partition, as > > well (ext2 works perfectly well; mke2fs /dev/sda1 && tune2fs -m0 > > /dev/sda1). I'm not sure if grub supports vfat, so this procedure may not > > be for you if you want to mount the contents of your memory stick in > > windows. > > If grub did support vfat, this would be easier yet since the boot.img.gz > is a vfat filesystem with the installer files on it and could be > uncompressed onto the partition. In my testing, writing that to the disk > as /dev/sda1 made grub-installer fail though. grub-installer bailed out due to a fs type sanity check, or what? > > > title Debian Installer > > root (hd0,0) > > kernel /vmlinuz ramdisk_size=10000 root=/dev/rd/0 init=/linuxrc devfs=mount,dall rw > > initrd /initrd.gz > > Doesn't this assume that the usb stick appears to grub as the first hard > drive on the system you install? Seems unlikely if there is another > disk. > Yes; I assume an IDE based system, here. I'd have to play around w/ a scsi system to see how grub (or the bios?) ends up ordering disks and usb-storage devices. -- Andres Salomon <dilinger@voxel.net>
Attachment:
signature.asc
Description: This is a digitally signed message part