LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-18-2010, 12:25 PM   #1
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Rep: Reputation: 15
If I want to install slackware 13 on usb, where to install grub/lilo


i want to install slackware onto my usb hard drive (not FROM it) and i need help deciding where to install the bootloader. Should I choose to install it to the usb drive, or the main hd of the computer i'm using to install it? (usb is /dev/sdc, main is /dev/sda)
 
Old 04-18-2010, 12:41 PM   #2
in_texas_dallas
Member
 
Registered: Sep 2009
Location: DFW
Distribution: Debian Lenny
Posts: 38

Rep: Reputation: 17
Lightbulb

Quote:
Originally Posted by daweefolk View Post
i want to install slackware onto my usb hard drive (not FROM it) and i need help deciding where to install the bootloader. Should I choose to install it to the usb drive, or the main hd of the computer i'm using to install it? (usb is /dev/sdc, main is /dev/sda)
Daweefolk> OK, there are somewhat complicated methods to add an installation on one hard drive to a grub menu on ANOTHER. I will even give you a link to help you along, HOWEVER I highly recommend you do not take this route.

I would recommend just installing normally on the USB drive, meaning you'll have two partitions on it: one relatively small [around a GB for swap space] and the rest of the space to the, or separate /home directories, etc... whatever suits you. This should but a new grub menu on to the USB drive, then all you have to do is set your boot priority to boot from the usb drive. Obviously if it boots from the usb drive, you won't get to choose to boot to the other hard drives, but removing the usb drive or rearranging the boot order fixes this problem.

I have an Ubuntu 9.10 installation with all the apps I use, and I did it the above way. The nice thing is that I can plug this USB drive into virtually any computer [that I have tried so far] and it loads and works fine, Compiz 3d rotating desktop and all. [teehee, I just tried it on somebody's netbook the other day and the 3d rotating desktop still worked]...

Anyways, srry this isn't slackware specific, but grub is grub...

Good luck!!

PS: Even though I don't recommend taking this approach, the choice is yours... Here's a page that has links to several other pages relating to dualbooting with two hard drives

http://ubuntuforums.org/showthread.p...light=dualboot

Last edited by in_texas_dallas; 04-18-2010 at 12:43 PM. Reason: added links
 
Old 04-18-2010, 12:47 PM   #3
hello.freeman
Member
 
Registered: Apr 2010
Posts: 38

Rep: Reputation: 23
Quote:
Originally Posted by daweefolk View Post
i want to install slackware onto my usb hard drive (not FROM it) and i need help deciding where to install the bootloader. Should I choose to install it to the usb drive, or the main hd of the computer i'm using to install it? (usb is /dev/sdc, main is /dev/sda)

see this site:
http://linuxconfig.dyndns.org/lazy/L...vable_USB_disk
 
Old 04-18-2010, 01:08 PM   #4
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
unetbootin

daweefolk Hi ... google unetbootin with regard to installing Slack13 to a USB pen drive ...
Here is one link http://quantcareer.blogspot.com/2010...netbootin.html
 
Old 04-18-2010, 03:03 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
.. google unetbootin with regard to installing Slack13 to a USB pen drive ...
Here is one link http://quantcareer.blogspot.com/2010...netbootin.html
You do not want to use Unetbootin to install Slackware to a USB drive or boot it. This is not only not necessary but will make a USB installation drive from the ISO which is not the same as installing Slackware to a USB drive. It is useful to make an install USB from an ISO but not to enable booting from a USB installation.

Obviously your PC needs to be able to boot from a USB device to start with. Then simply install as normal to the USB device and put the appropriate 'append "rootdelay=10' options in for lilo. You should really edit fstab and lilo's 'root=' lines to handle the fact that the USB assigned device may change in which case you need to have a LABEL or UUID set in fstab and lilo.conf. You can do this with an fstab line like this for ext4 where the label has been set to "root":
Code:
LABEL=root        /                ext4        defaults         1   1
and a lilo.conf line like this in the correct stanza:
Code:
  root="LABEL=root"
There are links around to better cover these issues but a quick look at "man lilo.conf" looking for "root=LABEL=" and "man fstab" for "LABEL=" will help. You should first create these labels using "tune2fs" and again "man tune2fs" will show how.

Last edited by bgeddy; 04-18-2010 at 03:04 PM.
 
Old 04-19-2010, 07:36 AM   #6
albert1t0
LQ Newbie
 
Registered: May 2009
Location: Peru
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
You need to know if your bios detect th external usb HD, if can you caun use Grub to map and boot directly from apartition a the external HD.
 
Old 04-19-2010, 08:47 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,922
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by in_texas_dallas View Post
Daweefolk> OK, there are somewhat complicated methods to add an installation on one hard drive to a grub menu on ANOTHER. I will even give you a link to help you along, HOWEVER I highly recommend you do not take this route.

I would recommend just installing normally on the USB drive, meaning you'll have two partitions on it: one relatively small [around a GB for swap space] and the rest of the space to the, or separate /home directories, etc... whatever suits you. This should but a new grub menu on to the USB drive, then all you have to do is set your boot priority to boot from the usb drive. Obviously if it boots from the usb drive, you won't get to choose to boot to the other hard drives, but removing the usb drive or rearranging the boot order fixes this problem.

I have an Ubuntu 9.10 installation with all the apps I use, and I did it the above way. The nice thing is that I can plug this USB drive into virtually any computer [that I have tried so far] and it loads and works fine, Compiz 3d rotating desktop and all. [teehee, I just tried it on somebody's netbook the other day and the 3d rotating desktop still worked]...

Anyways, srry this isn't slackware specific, but grub is grub...

Good luck!!

PS: Even though I don't recommend taking this approach, the choice is yours... Here's a page that has links to several other pages relating to dualbooting with two hard drives

http://ubuntuforums.org/showthread.p...light=dualboot
Sure "Anyways, srry this isn't slackware specific, but grub is grub..." is a valid statement but does not pertain to Slackware since the default bootloader is 'lilo'.

If the OP wants to use 'grub' then it is available in '/extra'.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
How to remove lilo and install grub in slackware Joey.Dale Slackware 5 09-04-2009 05:30 PM
slackware install problems (lilo vs grub) ultimatenoob Linux - Newbie 13 08-07-2006 10:51 AM
How to install grub or lilo to an external usb hd artois_val Linux - Hardware 1 07-21-2006 01:00 PM
install lilo/grub on a USB flash drive? flystar06 Linux - General 3 06-14-2005 08:48 PM

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

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