LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-27-2019, 10:42 AM   #1
CR_John
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
Debian on USB won't boot when other drives connected


I did a full install of Debian Stretch to a 32gb USB stick. Prior to installation I disconnected my Jessie HDD to ensure it would not be affected. After installing to the USB I rebooted the computer and the USB boots fine. I then shut down the computer, connected the HDD, and restarted the computer. The USB stick will not boot. I have verified that Fast Boot is disabled and that Secure boot is off. The USB stick shows up in the BIOS as being bootable. I also looked at the USB stick using Gparted and it has 3 partitions, VFAT, ext4, and swap. The VFAT partition is flagged as boot, esp. I also tried to boot the USB by pressing F12 to show a boot menu and selected the USB stick. Still won't boot. I then tried the stick on my Intel NUC running Debian Stretch. Same results. It won't boot.

Any clues as to what might be wrong with the USB installation, or where I might have gone wrong?

As a side note, I also installed the Debian Live with persistence to a USB stick and it booted fine.
 
Old 04-28-2019, 12:01 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
The existence of the VFAT partition on the USB stick suggests you installed to the stick in UEFI mode. The failure to boot it with the HDD connected suggests Jessie on the HDD is configured in Legacy/MBR mode. You may need to change a BIOS setting to ensure only UEFI mode booting is permitted whenever you wish to boot the USB.
 
Old 04-28-2019, 01:26 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by mrmazda View Post
The existence of the VFAT partition on the USB stick suggests you installed to the stick in UEFI mode. The failure to boot it with the HDD connected suggests Jessie on the HDD is configured in Legacy/MBR mode. You may need to change a BIOS setting to ensure only UEFI mode booting is permitted whenever you wish to boot the USB.
I was thinking the same and would add. There is a compatible mode with my EFI motherboards that allow to boot both at the same time. With this you get an option to boot a drive in either EFI or normal BIOS. The F12 listing gives me an option of both one prefixed by EFI: drivename_or_os_installed to boot in EFI mode.
 
Old 04-29-2019, 04:55 PM   #4
CR_John
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Okay. Secure Boot (disabled), Fast Boot(disabled) and Boot from USB (enabled) were all set as needed. The problem turned out to be as follows.

In the vfat (boot,esp) partition I found EFI/debian/grubx64.efi.
The boot/efi/EFI folder on the USB, was empty.

The UEFI BIOS was looking for EFI/boot/bootx64.efi, not EFI/debian/grubx64.efi. So I modified the vfat (boot,esp) partition accordingly.
Also, I modified the boot/efi folder so as to have boot/efi/EFI/debian/grubx64.efi.

After making those mods the USB stick booted like charm. Thanks for the feedback.

How do I mark this as solved?

Oh, by the way, my Gigabyte motherboard will boot UEFI and Legacy. After getting the USB (UEFI) to work I can boot either, depending if the USB is present or not. Cool.

Oops, just saw how to mark as solved. will now do so.

Last edited by CR_John; 04-29-2019 at 06:17 PM. Reason: further clarification
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to restore hard drives-IDE connected to usb adapters anthonysaulnier Linux - General 20 02-06-2017 10:17 PM
disk utilities vs. USB connected drives SaintDanBert Linux - Hardware 1 03-21-2011 10:32 AM
access web on a laptop connected to a web-connected desktop bluesmanu Linux - Networking 2 04-16-2006 12:38 PM
ipw2200 connected but not connected? snataw Linux - Wireless Networking 5 03-31-2005 08:12 AM
Limit connected items connected to my router andersh3 Linux - Newbie 1 03-16-2004 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration