lasasrss.blogg.se

Create linux grub on usb
Create linux grub on usb











create linux grub on usb

take ‘ls /boot’ it only shows the EFI directory not the kernel and initramdisk. I rewrote the scripts to make a Void Linux install. I had dd test.img to usb drive and powered off the system.Ĭould you point which direction to go to as I belive I have tried all of the posibilities? Which had successfully blocked all of the unmounting attempts. Systemd-l 397 root 7r REG 0,16 4096 2676 /sys/devices/virtual/tty/tty0/active Use the device is found by lsof(8) or fuser(1).)ĬOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME (In some cases useful info about processes that The boot was through BIOS Boot after first part of the article.Īnother thing is that I have got error after this part: I have tried to run this solution on Debian9 Stretch (Linux dt 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 () x86_64 GNU/Linux) however during boot I get “attempt to read or write outside of partition” from grub. It reverted to normal boot after few error messages of not being able to uefi boot from cdrom and floppy…? I tried the method and the uefi boot didn’t work for me. Will this technique be good also for buildroot generated rootfs and kernel?Ģ.

#Create linux grub on usb install

You probably need to install grml-debootstrap to simplify a lot of this, for Debian Stretch I had to change a lot and it’s a lot easier to have grml-debootstrap generate the correct locales for instance.ġ. Mkosi () does the same more or less in a automated manner, but only for UEFI systems. You’d have to adjust the script not to create a BIOS partition, obviously.

create linux grub on usb

The EFI grub.cfg references the grub.cfg on the root partition, not the boot partition, so you should be good there. If you want UEFI only all you need is the EFI partition. The BIOS partition is used by grub only for BIOS boot. Is it possible to have a working system on a sparse file with only uefi, without any bios partition? Thanks a lot for your script! My next step is to investigate the ‘live_boot’ package to see if I can turn the distro into one that can install itself somewhere when booted and I’d like to find a way to squeeze the image size down from 30GB to something much smaller. I also added ‘–arch=amd64’ to debootstrap because I wanted a 64bit distro, it seemed to default to ‘i386’ which I assumed mean’t 32bit. Thanks :-)įYI, I had to apt-get the ‘udev’ package because partprobe complained about ‘udevadm’ being missing and I needed to apt-get ‘parted’ so that partprobe was installed. This is a great article, I found it super useful. Mkfs.ext4 -F -L "$ is ready to be booted via BIOS and UEFI." new 1::+1M -typecode=1:ef02 -change-name=1:'BIOS boot partition' \ # Create sparse file (if we're not dealing with a block device) If thenĭebootstrap -variant=minbase xenial chrootįor d in dev sys proc do mount -bind /$d chroot/$d doneĭEBIAN_FRONTEND=noninteractive chroot chroot apt-get install linux-image-generic grub-pc -y -force-yes













Create linux grub on usb