LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2012, 08:15 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 440

Rep: Reputation: 36
Making USB bootable


I downloaded the Damn Small Linux ISO from their website, and want to make it bootable from a USB flash drive.

I following the instructions here, using "Method II": http://www.damnsmalllinux.org/wiki/i...m_within_Linux

However, the flash drive won't boot. I know my PC is set up in the BIOS to boot from bootable USB drives when present, as I have done this before.

The files from the ISO have unpacked onto the memory stick, and using GParted I can see that the single partition on the memory stick has the Boot flag set.

I fail to see why it won't boot! Is there any information I can give to any members of this forum that will enable them to tell why? I am thinking that any bootable USB drive must meet certain criteria, regardless of the distro intended to be booted from that drive.

Last edited by Steve W; 06-18-2012 at 08:26 AM.
 
Old 06-18-2012, 08:59 AM   #2
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
Did you run syslinux on the stick?
 
Old 06-18-2012, 10:22 AM   #3
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Try using unetbootin. It is a small software that can make isos install on a flash drive. If there is anything you want on your flash drive why does it need to be damn small linux. I mean I have installed vector 7 live on the flash drive and that has a real of utilities I cannot really lie without.
 
Old 06-18-2012, 10:32 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,623

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Quote:
Originally Posted by Steve W View Post
I downloaded the Damn Small Linux ISO from their website, and want to make it bootable from a USB flash drive.

I following the instructions here, using "Method II": http://www.damnsmalllinux.org/wiki/i...m_within_Linux
That procedure installs syslinux on partition 1, but there is probably no boot code in the MBR. You can confirm that by running
Code:
hexdump -C -n 512 /dev/sdx
(replacing "x" with the appropriate letter). If you see all zeros except for the last 66 bytes (the partition table and signature), then you just need to copy a generic boot loader, such as the one in /usr/share/syslinux/mbr.bin, to the MBR like this
Code:
dd if=/usr/share/syslinux/mbr.bin of=/dev/sdx count=1
again replacing "x" with the appropriate letter. The "count=1" is just for safety. The file is just 440 bytes long and will not overwrite the partition table portion of the MBR.
 
Old 06-18-2012, 10:48 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 242

Rep: Reputation: 53
Unetbootin is a great tool for making bootable usb.

Also you can use dd (as root):
# dd if=/path_to _your_iso/image_name.iso of=/dev/sdX
usb stick must be unmounted. Run dd and wait a couple of minutes.
Note if you using dd you can't open stick content in file browser, but you can boot from this usb.

Any way no need to unpack iso and install bootloader manually

Last edited by Teufel; 06-18-2012 at 10:51 AM.
 
Old 06-18-2012, 11:03 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
Quote:
Originally Posted by Teufel View Post
Also you can use dd (as root):
# dd if=/path_to _your_iso/image_name.iso of=/dev/sdX
usb stick must be unmounted. Run dd and wait a couple of minutes.
Note if you using dd you can't open stick content in file browser, but you can boot from this usb.

Any way no need to unpack iso and install bootloader manually
Keep in mind that this only works for distributions that offer a hybrid-ISO image. For example, this approach will work with Debian or Arch, but not with Slackware or Ubuntu.
 
Old 06-18-2012, 02:08 PM   #7
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 440

Original Poster
Rep: Reputation: 36
Well, this is a bit embarrassing. The next time I powered up my PC, I double-checked the BIOS settings to be double-sure it was set to boot from USB first... only to find it isn't. It's reverted back to hard drive, DVD drive and floppy drive (which I don't have!)

Not sure why, unless the motherboard battery is failing and it's losing settings. But if that was the case, shouldn't the time get reset as well?

Once I had set the options to boot from USB first, the stick did indeed boot. However, even though I am using a wired internet connection straight to the router, DSL won't go on the internet. Bit crap, that. Never had a distro that could not find a wired internet connection before!

To answer the question why I am using DSL on the USB stick, I'm just curious to see what this 50MB distro looks like. I also have Ubuntu on a USB stick as well. I will take a look at Vector Linux, thanks for the heads-up. I did used to have Knoppix 5.1.1 on a DVD, back in the KDE 3.5 days. Tried Knoppix 6 and hated it!

Sorry for the schoolboy error! Thank you for your assistance.

Last edited by Steve W; 06-18-2012 at 02:16 PM.
 
Old 06-18-2012, 02:46 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
DSL is pretty old, may be it simply lacks drivers for your network device.
 
Old 06-18-2012, 03:32 PM   #9
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, Mint 12 LXDE
Posts: 440

Original Poster
Rep: Reputation: 36
Hmm... that would explain it then. When I first bought my current PC in 2008, I had the same problem with my (older) version of Ubuntu and had to install a new driver for the Realtek chipset on my new PC. It was fixed in a newer version of Ubuntu.

Thanks for the advice.
 
  


Reply

Tags
boot, drive, usb


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
making usb key bootable yewint Linux - Newbie 5 03-13-2010 08:34 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 10:18 PM
making bootable USB sabayon linux docraj2007 Linux - Newbie 3 03-04-2009 09:26 AM
Making a bootable usb stick nanderh Linux - Newbie 6 02-02-2009 05:37 AM
Making a usb stick bootable TotalLinuxNoob Linux - Software 2 01-05-2008 12:03 PM


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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration