LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Rogue Class
User Name
Password
Rogue Class This forum is for the discussion of Rogue Class Linux.

Notices


Reply
  Search this Thread
Old 08-04-2013, 02:24 PM   #1
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Rep: Reputation: 78
How to install Rogue Class Linux to USB flash


Someone asked how to install Rogue Class Linux on a USB flash drive. This is somewhat technical and I hope to make it easier in the future. In the meanwhile, here are some notes on the subject.

The first step is to detach your hard disks except for the USB flash drive. The installer depends on LILO, which cannot always tell the difference between the USB flash disk and the first SATA disk [1].

The next step is to install from CD, selecting the USB flash drive as the install target. This is the normal install process described in the user guide.

Once the install process is finished, it is normal to reboot the computer. VirtualBox and computers with old BIOS cannot boot from USB flash drives [2]. To work around this limitation, boot the install CD and immediately hold down the Esc key. This will interrupt syslinux and show a boot: prompt. At this prompt, type:

hugesmp.s rootdelay=10 root=/dev/sda1 rdinit= ro

This will boot the kernel from CD and the system from the USB flash drive. The first boot may take a while if it checks the root filesystem on the flash drive.

This example will fail if you plug a hard drive back in and it replaces the USB flash drive as /dev/sda1. This is a limitation in Rogue Class Linux version 2.

[1] LILO gives an error similar to the one below.

Fatal: Bios device code 0x80 is being used by two disks /dev/sdb (0x0810) and /dev/sda (0x0800)

http://www.linuxquestions.org/questi...7/#post4270493

[2] http://www.pendrivelinux.com/boot-a-...in-virtualbox/
 
Old 08-06-2013, 03:28 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
with a install cd / dvd
burn the image to disk
pop in the dvd and usb drive and reboot
do a normal everyday install , but to the usb -- simple

for a live image use "dd" to put it on the usb

Last edited by John VV; 08-06-2013 at 03:29 PM.
 
Old 08-07-2013, 12:25 AM   #3
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by John VV View Post
with a install cd / dvd
burn the image to disk
pop in the dvd and usb drive and reboot
do a normal everyday install , but to the usb -- simple

for a live image use "dd" to put it on the usb

Unfortunately, it isn't that simple. Rogue Class Linux does not have a live image. I described more technical steps because of complications imposed by real-world versions of BIOS. Additionally, Linux needs to be told to delay the boot. Otherwise, the boot will fail because Linux will try to mount the root filesystem before the USB subsystem is ready.

-Ben
 
Old 08-07-2013, 01:29 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
then do a normal everyday install from the install dvd to the usb

the procedure is the same as to a internal drive
just select the usb to install to

simple

hit f2 or f8( might be f12) during the initial boot
select in the bios to boot from usb
hit enter

and if the dvd and usb are in the machine and rebooted
this
Quote:
Linux will try to mount the root filesystem before the USB subsystem is ready.
will not be a issue during install to the usb
 
Old 08-08-2013, 12:37 AM   #5
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by John VV View Post
then do a normal everyday install from the install dvd to the usb

the procedure is the same as to a internal drive
just select the usb to install to

simple
I attempted to install RCL tonight using the same procedure as installing to an internal drive. Toward the end of the install, when it tried to configure the LILO bootloader, it gave me the same error that I mentioned in the original post. "Fatal: Bios device code 0x80 is being used by two disks /dev/sdb (0x0810) and /dev/sda (0x0800)"

Not simple.

Quote:
Originally Posted by John VV View Post
hit f2 or f8( might be f12) during the initial boot
select in the bios to boot from usb
hit enter

and if the dvd and usb are in the machine and rebooted
this

will not be a issue during install to the usb
I found a USB flash drive that already had RCL installed on it. I hit F12 and selected in the BIOS to boot from USB. I hit enter. It started to boot. Then it panicked after "VFS: Cannot open root device "801" on unknown-block(8,1)" This is a fairly recent BIOS on a PC manufactured in 2010.

This will be an issue booting the installed system, and I mentioned a workaround in the original post.

Best regards,

-Ben
 
Old 08-08-2013, 12:43 AM   #6
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Original Poster
Rep: Reputation: 78
p.s. That kernel panic happens because Linux tries to mount the root filesystem before it has finished initializing the USB subsystem.

The workaround I referred to is the rootdelay=10 argument passed to the kernel at boot time. This additional delay gives the kernel time to initialize the USB subsystem. Then it can find the device that the root filesystem is stored on.
 
Old 10-19-2013, 11:08 AM   #7
BenCollver
Rogue Class
 
Registered: Sep 2006
Location: OR, USA
Distribution: Slackware 14.1
Posts: 201
Blog Entries: 3

Original Poster
Rep: Reputation: 78
Just a note, Rogue Class Linux version 4 has improved support for installing to USB flash media.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Announcing Rogue Class Linux version 2 BenCollver Rogue Class 0 07-21-2013 08:47 PM
Welcome to the Rogue Class Forum jeremy Rogue Class 1 07-16-2013 08:19 PM
Making bootable USB flash drive to install Linux tron_thomas Linux - General 35 07-12-2011 12:19 AM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 05:56 PM
Damn Small Linux Install with USB CD-ROM and Compact Flash housatonic Linux - Newbie 5 06-18-2008 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Rogue Class

All times are GMT -5. The time now is 09:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration