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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-18-2012, 07:15 AM
|
#1
|
Member
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 522
Rep:
|
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.
|
|
|
06-18-2012, 07:59 AM
|
#2
|
Member
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165
Rep:
|
Did you run syslinux on the stick?
|
|
|
06-18-2012, 09:22 AM
|
#3
|
Member
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
|
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.
|
|
|
06-18-2012, 09:32 AM
|
#4
|
Senior Member
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,789
|
Quote:
Originally Posted by Steve W
|
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.
|
|
|
06-18-2012, 09:48 AM
|
#5
|
Member
Registered: Apr 2012
Distribution: Gentoo
Posts: 616
Rep:
|
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.
|
|
|
06-18-2012, 10:03 AM
|
#6
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Teufel
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.
|
|
|
06-18-2012, 01:08 PM
|
#7
|
Member
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 522
Original Poster
Rep:
|
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.
|
|
|
06-18-2012, 01:46 PM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
DSL is pretty old, may be it simply lacks drivers for your network device.
|
|
|
06-18-2012, 02:32 PM
|
#9
|
Member
Registered: Mar 2007
Distribution: Linux Mint 18.1
Posts: 522
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|