LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-22-2023, 05:24 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,980

Rep: Reputation: 271Reputation: 271Reputation: 271
Booting from external drives, Linux & Windoze


My laptop is about to break, mechanically, completely. I plan to replace it. Likely replacements will come with Windoze, which I'd like to keep. I have external enclosures with USB-SATA adaptors to use external drives. I've never been able to boot off them; drives that boot when internal don't when external. Should I expect them too? Will Windoze put up with that? It's more pleasant than swapping drives.
 
Old 08-22-2023, 08:25 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,407
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
If you can boot from a USB stick, it would make no sense to me that you cannot also boot from a USB drive. It's not something I've had a need to do, but I found a thread at Ask Ubuntu that looks like a good starting point for researching this.
 
Old 08-23-2023, 03:39 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,539

Rep: Reputation: Disabled
You'll likely need to adjust the EFI/BIOS, to allow other O/S to boot - secure boot/fast boot - then make sure that USB boots before internal disk.
 
Old 08-23-2023, 05:49 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,607

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
You should not have a problem booting any Linux from an external drive, simply change the BIOS setting to boot the drive attached via USB as suggested. If that should fail, make note of any error messages and post her. Microsoft prohibits a normal install of windows to a USB or firewire device (see the last post at the microsoft site below) but you already have windows installed so again, try booting windows after attaching the drive to a USB port. Doing an online search will get sites explaining how to create a bootable USB windows installer so try it and see what happens. The microsoft site at the link below indicates that cloning should work so simply attaching your drive to a usb port may also.

https://answers.microsoft.com/en-us/...8-fa79607178bc
 
Old 08-24-2023, 06:31 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,980

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by frankbell View Post
If you can boot from a USB stick, it would make no sense to me that you cannot also boot from a USB drive.
I agree; experience disagrees.

Quote:
Originally Posted by frankbell View Post
I found a thread at Ask Ubuntu
That's mumbo-jumbo.

Quote:
Originally Posted by fatmac View Post
You'll likely need to adjust the EFI/BIOS, to allow other O/S to boot - secure boot/fast boot - then make sure that USB boots before internal disk.
Didn't work.

Quote:
Originally Posted by yancek View Post
You should not have a problem booting any Linux from an external drive
I agree, experience disagrees.

Quote:
Originally Posted by yancek View Post
If that should fail, make note of any error messages and post her.
I tried this years ago, got a variety of error messages, asked here.
 
Old 08-24-2023, 12:44 PM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,539

Rep: Reputation: Disabled
Quote:
I have external enclosures with USB-SATA adaptors to use external drives. I've never been able to boot off them; drives that boot when internal don't when external.
Apologies, I thought it was the laptop that was the problem, but it is obviously these adapters - I have used USB to SATA cables to boot external drives, but some adapters just won't work.

Try with one of these cables...they're not expensive.

Last edited by fatmac; 08-24-2023 at 12:45 PM.
 
Old 08-24-2023, 01:05 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,607

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Quote:
I agree, experience disagrees.
I don't recall ever having a problem booting a Linux OS from an external drive either booting from a bootloader on an internal drive or the external drive. Obviously, I haven't tested this with all of the 500+ Linux distributions. Good luck with it.
 
Old 08-25-2023, 06:08 AM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,980

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by fatmac View Post
I have used USB to SATA cables to boot external drives, but some adapters just won't work.
I've tried 2 different. Odd they work for every other purpose but booting. I don't have a good guess why that would be.

Quote:
Originally Posted by fatmac View Post
Try with one of these cables...
One of which cables?

Quote:
Originally Posted by yancek View Post
I don't recall ever having a problem booting a Linux OS from an external drive
Thanks.

Quote:
Originally Posted by yancek View Post
I haven't tested this with all of the 500+ Linux distributions.
I doubt distribution matters.
 
Old 08-25-2023, 12:36 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,607

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
I'm not sure what you are trying to do. If you are planning to get a new computer with windows preinstalled, why would you remove the drive and try to boot it? You can get a standard usb external drive and should have no problem connecting to a usb port and installing a Linux distro there. So your problem is using the USB to SATA cables it would seem. Maybe some work better than others, I don't know as I've never used one. Good luck.
 
Old 08-25-2023, 01:34 PM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,511

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
I've had the "enclosure with bootable drive fails to boot" issue on a laptop too. I think I ended up suspecting the usb<=>sata chip as a possible reason why, but I couldn't be positive. I agree enclosures wouldn't boot. They are not seen as bootable devices. My advice is: Forget external windows; forget internal windows. I have windows 11 here for when someone needs it. It never happens. Show them a tablet, they're usually just as happy.

What I also tried was inserting a second sata drive instead of the dead dvd thing. No dice either. The Bios would boot a dvd, not a second hd.

That doesn't stop you putting grub on sda with a windows choice 'root=/dev/sdbX' and going external at that point.

Last edited by business_kid; 08-25-2023 at 01:36 PM.
 
Old 08-28-2023, 12:54 AM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,915
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
With USB drives there's an obstacle that usually doesn't exist when using exclusively SATA - USB drives often get their assignments mixed with or ahead of those on ATA. I knew that before I ever tried booting from any external drive installation, so used eSATA instead of USB when I wanted to give it a try. This was one of the reasons why UUIDs by default in Grub and fstabs displaced device names. That first try is sitting on a shelf, last updated in 2016, with 11 bootable OSes on it.

With a new laptop, Windows is most likely going to be installed on NVME. That's a different bus from ATA and USB. Theoretically this third bus would compound the older enumeration problem, but UEFI entered the picture around that time and has made it potentially easier to avoid enumeration trouble, mainly by not using device names for booting or fstab on the OS/user side, and by UEFI boot system intelligence. If the UEFI BIOS can be made to by-default always look first to a USB device to boot from before an internal NVME or SATA, you should be able to count on avoiding a Windows boot by having a bootable USB connected on power-up, if you can make Windows fully shutdown and not resume on power-up. Current installations of most distros use UUIDs to effectively workaround any potential enumeration trouble. Those who involve themselves more in configuration and maintenance can make it easier by using self-determined and thus memorable LABELs instead of UUIDs, with virtually the same reliability.
 
Old 08-28-2023, 04:20 AM   #12
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,539

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
I've tried 2 different. Odd they work for every other purpose but booting. I don't have a good guess why that would be.


One of which cables?
USB to SATA cable, there are lots, they are cheap, you may need to buy a few, but if it is the chip between the USB socket & the drive, these are the cheapest way to find out.
 
  


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
GRUB Installed in a disk without windoze and trying to boot windoze in another disk caosxxi General 13 09-07-2009 03:10 PM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM
Browsing windoze shared drives Streams Linux - Networking 6 06-10-2002 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:25 PM.

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