LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-06-2008, 01:05 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
Installing a Live Distro in a USB flash drive


Hi, I've already installed a Live Distro in my USB flash drive, I changed my Boot sequence in the BIOS but when I reboot the computer the OS is not loaded, I get a message: "Bad operating system" then the grub is loaded.

I know that the installation is ok because I add a line in the grub to boot from the Flash drive and all works, I don't if the problem is with the BIOS or with my Flash Drive.

The partition in my USB is an ext3 with the boot flag activated

My question is: do I have to edit some file to help to boot the OS in my flash drive?
In that partition I have an initrd.gz and a vmlinuz but for itself doesn't boot

Regards
 
Old 12-03-2008, 11:54 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
It sounds like your USB drive does not have a boot loader. You need to install GRUB in the master boot record of the USB drive.
 
Old 12-04-2008, 01:54 AM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 298

Rep: Reputation: 55
You could also install syslinux to your USB drive MBR. In some ways it is easier with live cd's: Just rename isolinux.cfg which comes with the live cd to syslinux.cfg. If you install grub you have to convert it in a format which works for grub.

The steps would be: (after copying formatting and coppying the files to the USB drive:

Code:
sudo aptitude install syslinux mtools
cd /media/USBDRIVE
mv ./path/to/isolinux.cfg ./path/to/syslinux.cfg

#Unmount the usb drive:
cd ~
sudo umount /dev/sdX1

#Install the syslinux bootloader:
sudo syslinux /dev/sdX1
Look at http://damnsmalllinux.org/wiki/index...SB_Flash_Drive
for variations on the theme.

Regards,
Stefan
 
Old 12-04-2008, 08:21 AM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
http://www.pendrivelinux.com/
 
Old 12-04-2008, 12:03 PM   #5
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Original Poster
Rep: Reputation: 30
I resolved this issue using the bootloader suggested for my livedistro (puppy linux), in fact i was trying to install the bootloader from my host OS, but It was much easier do it from the puppy linux universal installer. Also I was confused in the issue of to format my usb partition with ext3 but reading a little bit about the puppy universal installer is better to have a fat32 partition, so now it works, thanks for your comments.
 
  


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
bootable live Linux on USB flash drive james2b Linux - General 3 03-03-2008 03:08 AM
How to use Live CD with USB flash drive? Cathinfo Mandriva 1 12-31-2006 12:10 AM
live distro on flash drive viewable in ms wounded625 Linux - General 1 02-21-2006 03:58 PM
Installing a Distro onto a USB flash drive Tigren Linux - Hardware 2 10-30-2002 09:11 PM
installing Distro onto USB flash drive Tigren Linux - General 1 10-30-2002 08:38 PM


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