[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: usb memory stick booting w/ grub



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. :-(

> 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.

> 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.

> 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.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: