LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2015, 11:15 AM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
Booting external drive from USB stick


I am sure that there is an easier way to do this, but here's what I did...

I created an installation USB stick and installed 14.1 to an external USB drive. The partitions of the external drive are

/dev/sdc1 /boot
/dev/sdc2 swap
/dev/sdc3 /

After I installed I told setup to install lilo on my usb drive but that did not work. Everything installed, but lilo did not so I cannot boot. Crap!

So then I booted into the installation USB again and went through the whole install again to the external USB. This time I told it to create a bootable USB stick. It said that it did, but when I try to boot it doesn't even see it. Crap!

Now, how do I either

1. Make the external USB bootable so that I can boot directly from it, or
2. Crate a bootable USB stick that I can use to boot the external USB drive?

I hope all of this makes any sense. TIA!
 
Old 04-23-2015, 12:26 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
If your booting the usb on an uefi system then:
Use Slackware 64 and usb partitioned in gpt format
The first partition on the usb needs to be type ef00, formated as fat32, and mounted at /boot/efi (the installer will take care of the mount points if booted in uefi mode).
use either elilo or grub2 for boot loader

Last edited by colorpurple21859; 04-23-2015 at 12:28 PM.
 
Old 04-23-2015, 12:43 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
The first time you installed probably your internal hard disk was known as /dev/sda, the USB stick as /dev/sdb and the external hard disk as /dev/sdc.

But then, after you remove the USB stick and reboot the external hard disk becomes /dev/hdb.

So label your partitions by UUID or LABEL in /etc/fstab and /etc/lilo.conf.

Also, as an external hard disk needs some time to spin, you will need to set in /etc/lilo.conf:
Code:
append = "rootdelay=15"
to allow 15 seconds to the root partition for being readable.

To know the UUIDs you can use
Code:
lsblk -o name,size,uuid
for instance.

man fstab and man lilo.conf to know more

Last edited by Didier Spaier; 04-23-2015 at 12:45 PM.
 
Old 04-23-2015, 08:44 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I assume mistakes in naming. Be sure that you correct the boot order in hard drive to match the desired drive.
 
  


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
How does one make an old sony BIOS use USB flash drive [stick] for booting. Les Porter Linux - Newbie 8 03-01-2011 09:19 PM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
*** USB external hard drive and USB memory stick linux_2007_ Linux - General 1 07-17-2007 04:20 PM

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

All times are GMT -5. The time now is 11:40 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