Device path:įirst, let us wipe the device, so that traces of previous partitions and attemps do not interfer. Note that sfdisk is probably not in the default path. We assume we have read and write permissions on the device and use pmount to mount partitions, but otherwise we do not need root privileges. The size can be obtained from /proc/partitions (un units of 1024, so need to multiply by 2) or using /sbin/blockdev -getsz. This is written as a script, to have it compute the partitions positions and sizes automatically based on the size of the USB stick. It is a complement to this article about using GRUB to boot a live image written as a file rather than an image.Īfter this, the device has a little wasted space and a directory named boot, but is otherwise completely usable for other tasks. The purpose of this article is to explain how to install GRUB on an USB stick, or any other kind of USB mass-storage device, to make it bootable in either legacy BIOS or UEFI mode and allow to load live images installed in a directory. Installing GRUB on an hybrid BIOS/UEFI stick
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |