LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2011, 03:49 PM   #1
graphit
LQ Newbie
 
Registered: Apr 2010
Distribution: Arch, Gentoo
Posts: 6

Rep: Reputation: 0
boot Linux system on USB-stick


Hello everybody!

I have installed a Debian System on a removable USB-drive just the same way I would do it for a normal harddisk drive.
All was working fine until I tried to boot the system.

I have set up the USB-stick as first boot device in the BIOS, and written grub in the MBR of the stick.
When trying to boot it, "Grub Error 2" will always be risen (I am using grub-0.98).

The only drive I have installed except the USB-stick is a SATA-harddisk, so normally the USB-stick is called /dev/sdb.

I have already tried changing root in menu.lst to (hd0,0) or the kernel root to /dev/sda1 but nothing seems to help.

Thanks for answers!
graphit
Attached Files
File Type: txt menu.lst.txt (4.1 KB, 26 views)
 
Old 04-20-2011, 07:50 PM   #2
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Rep: Reputation: 9
Did you remember to set the USB stick to an active partition w/fdisk? In the future, you might mention which Debian system since there are several Debian based distros not to mention Debian itself.
 
Old 04-21-2011, 01:11 AM   #3
graphit
LQ Newbie
 
Registered: Apr 2010
Distribution: Arch, Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
I have formated the USB-stick with an ext3 filesystem.
The system I installed was Debian5.

Thanks for answering!
graphit
 
Old 04-21-2011, 11:12 AM   #4
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Rep: Reputation: 9
So is it working now? You didn't mention whether you had gone into fdisk and set that partition as active. Someone else might answer here, but maybe the installation program does that for you??? I haven't tried Debian 5.
 
Old 04-22-2011, 02:35 AM   #5
graphit
LQ Newbie
 
Registered: Apr 2010
Distribution: Arch, Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
I got it running by testing it on my friends computer. This computer seemed to have different device priorities, as the USB-stick was called hd0. But I still wonder why grub found its menu.lst file on his PC and not on mine.

Does grub remember from which partition it was written in the MBR by grub-install?

I finally got it working on my PC too, but only by using the grub instance installed on my harddisk.
The USB-stick turned out to be hd1.
Does it make a difference for the enumeration of drives, if you change their booting priorities? Could the changed priorities be the reason, that grub did not find its menu.lst file?

The main problem is solved now, but I am confused

btw the partition on the USB-stick has got the bootable flag set if you meant this with active.

Thanks for your help!
 
  


Reply

Tags
boot, grub, usb



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
LXer: Install Debian Linux from USB boot memory stick LXer Syndicated Linux News 0 04-09-2010 06:10 AM
cant boot usb stick created with portable linux katesfb Linux - Newbie 1 06-09-2009 07:51 PM
Can't get GRUB to boot Linux off of a USB stick Dark Jirachi Linux - General 1 07-09-2007 08:52 AM
Boot from USB stick if no booting USB in Bios 1kyle SUSE / openSUSE 1 03-26-2007 12:24 AM
Making Linux boot from USB Stick a4r0 Linux - Newbie 2 09-13-2004 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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