1

After booting to a live USB (I normally use Multiboot or persistent), I enter to the grub which is installed in the USB flash drive.

At USB grub, is there a way to boot to the hard drive?

As I can access the command-line from the USB grub (by pressing "c"), can I type something to boot to the hard drive?

8
  • You need to explain what do you intend to do. I doubt anyone can understand what you're asking as it is.
    – user692175
    Aug 11, 2017 at 22:39
  • Do you want to add a menuentry to the USB's grub to boot the internal drive? Aug 11, 2017 at 22:51
  • If you are using a USB stick with a Full install, just boot the drive, open terminal and do a "sudo update-grub", this should add any OS's on the internal drive to the USB's grub. Not so easy with a Persistent USB drive, probably easiest to copy grub menuentries from an updated Full install if it is a grub2 type Persistent install per mkusb. Aug 12, 2017 at 0:58
  • @MichaelBay when we press "c" we go to command line on grub. Can we type something there that boot to hard drive? Aug 12, 2017 at 1:56
  • 1
    @C.S.Cameron I updated my question. I normally use multiboot or persistent. Aug 12, 2017 at 2:00

1 Answer 1

0

With Syslinux type USB boot drives such as MultiBootUSB, MultiBoot USB, Unetbootin, etc make there is generally an option in the boot menu to Boot the First Hard Drive.

With Grub2 type USB boot drives such as mkusb and the original MultiBootUSB make, a menuentry to boot an internal drive can be added to the USB's grub.cfg located on the usbboot partition:

menuentry 'Ubuntu 16.04.2 LTS (16.04) (on /dev/sdxy)'  {
    insmod part_msdos
    search --no-floppy --fs-uuid --set=root uuuu-uuuu-iiii-dddd
    linux /boot/vmlinuz-4.4.0-87-generic root=UUID=uuuu-uuuu-iiii-dddd ro quiet splash
    initrd /boot/initrd.img-4.4.0-87-generic
}

If Windows is the OS on the internal drive it is beyond the scope of this answer.

With a Full install type USB boot drive, open terminal and run:

sudo update-grub

and it will add any OS's on the other drives of your computer including Windows.

Not the answer you're looking for? Browse other questions tagged .