LinuxQuestions.org
Help answer threads with 0 replies.
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, 07:15 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 520

Rep: Reputation: 44
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 07:26 AM.
 
Old 06-18-2012, 07: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, 09: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, 09:32 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
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, 09:48 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
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 09:51 AM.
 
Old 06-18-2012, 10:03 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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, 01:08 PM   #7
Steve W
Member
 
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 520

Original Poster
Rep: Reputation: 44
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 01:16 PM.
 
Old 06-18-2012, 01:46 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
DSL is pretty old, may be it simply lacks drivers for your network device.
 
Old 06-18-2012, 02:32 PM   #9
Steve W
Member
 
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 520

Original Poster
Rep: Reputation: 44
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 07:34 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
making bootable USB sabayon linux docraj2007 Linux - Newbie 3 03-04-2009 08:26 AM
Making a bootable usb stick nanderh Linux - Newbie 6 02-02-2009 04:37 AM
Making a usb stick bootable TotalLinuxNoob Linux - Software 2 01-05-2008 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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