SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-25 17:24:03

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

How To prepare an ISO to USB - Linux & Windows Instructions

Linux

WARNING, the following instructions will destroy any existing data on your USB stick.

Determine what device your USB is.  With your USB plugged in run:

sudo ls -l /dev/disk/by-id/*usb*

This should produce output along the lines of:

lrwxrwxrwx 1 root root  9 2010-03-15 22:54 /dev/disk/by-id/usb-_USB_DISK_2.0_077508380189-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 2010-03-15 22:54 /dev/disk/by-id/usb-_USB_DISK_2.0_077508380189-0:0-part1 -> ../../sdb1

In this example output, the USB device is sdb

Now cd to where your *.iso is

cd ~/downloads

Example

sudo dd if=filename.iso of=/dev/usbdevice bs=4M; sync

lets say the iso is named mini.iso and your USB device is sdb

Example

sudo dd if=mini.iso of=/dev/sdb bs=4M; sync

NOTE - Be sure to understand that there is never a trailing number on the end of your /dev/sdx USB device
_____________________________________

Windows

WARNING, the following instructions will destroy any existing data on your USB stick.

1. Download win32imagewriter from here

2. Extract the ZIP archive to the directory of your choice, preferably the directory the Statler ISO is stored.

3. Run the Win32ImageWriter program, and click the folder icon in the Image File section.

4. In the window to “Select a disk image,” navigate to the directory the ISO is in, and type “*.iso” without the quotes. The image should appear. Click the Save button.

5. Select your USB device from the list under “Device”.

6. Click the “Write” button to write the image to the USB drive, and proceed to the following instructions concerning the installer.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

Help fund CrunchBang, donate to the project!

#2 2012-11-27 20:15:58

r0n d0n
New Member
From: 'mericuh
Registered: 2012-11-19
Posts: 8

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Thank you for this how-to, you just made my life much easier. It seems way too simple though, and I'm waiting for the catch.  If I may, I have a couple q's about the dd method:

What format (if any) does the drive have to be?

Also, can there be multiple partitions assuming I properly configure grub entries? Is GPT out of the question?

I have a rather elaborate plan that I have been studying up on concerning a 64Mb flash drive, a custom made recovery toolkit iso, and several installed operating systems and maybe a couple persistent live iso's as well. I know dd won't be able to get me all the way there, but I'd like to be able to do this as efficiently as possible.


>lurk moar

Offline

#3 2012-11-27 20:40:05

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Hi r0n d0n

Thank you!

It does not matter what format the USB drive is in, it overwrites it as it formats it with the ISO.

I am not sure you can use multiple partitions or select a specific partition on a USB with dd...  I have never done it and a quick search does not show a procedure.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#4 2012-11-28 22:27:50

KrunchTime
#! Die Hard
From: Not Where I Belong
Registered: 2012-03-02
Posts: 1,864

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Thanks, Vast One!   big_smile

Offline

#5 2012-11-28 23:16:38

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

^ My pleasure KrunchTime


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#6 2012-11-28 23:27:17

Ozitraveller
#! CrunchBanger
From: Far from the madding crowd!
Registered: 2011-04-26
Posts: 244

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Some extra thoughts. smile

Run df -h to see what devices are currently mounted
usb should be umount'd first.
If your usb shows up more than once in the output of df due to having multiple partitions on the usb, you should unmount all of these partitions.
I've also used gparted to remove any existing partitions, prior to dd'ing the new iso.
block size set to 4M will work most of the time, if not, try 1M, although 1M will take considerably longer.
sync is used to flush the write cache.


dcfldd is an improved version of dd. Most of the syntax is identical, just a few functions have been added. It will give a progress report about how much has been written.

Offline

#7 2012-11-28 23:43:05

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

I have never had to unmount a usb first, as a matter of fact I just ran dd burning Fedora 18 to it while it was mounted.


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#8 2012-11-29 01:06:21

whereisthetea
#! Member
From: Tarraconensis
Registered: 2012-04-11
Posts: 66

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Oh my. What are we going to discuss on the IRC channel now?  devil
Maybe this should be stickied or sth... I have installed #! a couple of times already but I am sure that next time I’ll be looking for this kind of information on the net. I don’t think I am the only one with a short—whaddyacallit—yes, memory…

Gratias multas VastOne!


Anymay away icklemay akesmay away ucklemay.

Offline

#9 2012-11-29 02:02:29

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

^ Thanks Whereisthetea!

It is stickied... Now we can bounce those asking in the IRC to this one...


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#10 2012-11-29 03:35:41

hank122
New Member
Registered: 2012-11-29
Posts: 2

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Thanks for the info!
I wanted to mention that there is a Ubuntu/Debian tool called unetbootin that you can install that provides a small gui frontend to this process.

Hank.

Offline

#11 2012-11-29 04:08:39

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

^ Thanks Hank... several people here and on the IRC have reported total failure with unetbootin


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#12 2012-11-29 05:13:26

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

VastOne wrote:

^ Thanks Hank... several people here and on the IRC have reported total failure with unetbootin

unetbootin has worked correctly for me once I think. Ill follow my moms directions and since I dont have anything nice to say Ill just be quiet...........

Great howto, works like a charm every time. Thanks VastOne

Offline

#13 2012-11-29 06:28:50

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

^ Wise mom, wise son... wink

Thanks lwfitz!


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#14 2012-11-29 06:38:48

CaptainIndifferent
#! CrunchBanger
From: The Vale of Si
Registered: 2012-05-05
Posts: 194

Re: How To prepare an ISO to USB - Linux & Windows Instructions

YMMV but I think unetbootin gets a bad rap sometimes. I've used it half a dozen different times so far this month and have never had a problem with it.


Just because I don't care doesn't mean I don't understand.

Offline

#15 2012-11-29 18:23:36

hank122
New Member
Registered: 2012-11-29
Posts: 2

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Hmm, are the failures happening on crunchbang or just any linux OS?
I use it with an Ubuntu 12.10 laptop to prepare USB sticks for deployment on other laptops. It has worked so far with Crunchbang, Ubuntu and derivatives, Debian, Fedora, and other distros (not all though). I always try to format the USB stick on Windows, if needed, first.
My only issue is that some distros won't boot to the 'Live' mode but almost always will work in the 'install' mode.

Hank

Offline

#16 2012-11-29 18:30:26

lcafiero
The #! Guy
From: Felton, California, USA
Registered: 2011-07-21
Posts: 2,196
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

VastOne wrote:

I am not sure you can use multiple partitions or select a specific partition on a USB with dd...  I have never done it and a quick search does not show a procedure.

I don't think you can. So if you do a dd with, say, a 16GB USB drive, it's only going to write the iso taking up as much space as it takes and the rest of the space on the USB is unusable. Hence, it's usually beneficial to buy a smaller drive (1 or 2 GB) for installs.

The word "unetbootin" is one of the few words that automatically precedes my face going into my palm. It works for some, never has for me, and as mentioned in the thread already, YMMV.


Res publica non dominetur | Larry the CrunchBang Guy speaks of the pompetous of CrunchBang

CrunchBang Forum moderator

Offline

#17 2012-11-29 20:30:57

MrPink
#! CrunchBanger
From: .dk
Registered: 2011-06-28
Posts: 213

Re: How To prepare an ISO to USB - Linux & Windows Instructions

I have had nothing but bad luck with Unetbootin....on Linux. The Windows version, however, has never failed me.
This is perhaps the second reason, why I maintain a Windows 7 along side Linux (the new Hitman game being the first)

Offline

#18 2012-11-30 09:41:41

r0n d0n
New Member
From: 'mericuh
Registered: 2012-11-19
Posts: 8

Re: How To prepare an ISO to USB - Linux & Windows Instructions

I just wanted to report back and confirm that you can add a 2nd partition on a USB after you dd an image first and it will still be bootable. I used it with geexbox to have media on the same stick, and haven't had any problems yet.


>lurk moar

Offline

#19 2012-12-27 10:31:16

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 573

Re: How To prepare an ISO to USB - Linux & Windows Instructions

can anyone tell me how much space a waldorf iso would take?  I dont want to use an 8 gb usb stick if I only need 2gb

Last edited by Resident Bot (2012-12-27 10:31:46)


Troll = not a fanatic
slave of #!  and arch

Offline

#20 2012-12-27 10:37:38

Kuno
#! Die Hard
From: Osnabrück - DE
Registered: 2009-01-09
Posts: 629

Re: How To prepare an ISO to USB - Linux & Windows Instructions

ChickenPie4Tea wrote:

can anyone tell me how much space a waldorf iso would take?  I dont want to use an 8 gb usb stick if I only need 2gb

Never had a problem using 2gb-sticks.  ISO is about 700something, so even even 1gb should suffice.

Offline

#21 2012-12-27 17:02:16

lcafiero
The #! Guy
From: Felton, California, USA
Registered: 2011-07-21
Posts: 2,196
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

ChickenPie4Tea wrote:

can anyone tell me how much space a waldorf iso would take?  I dont want to use an 8 gb usb stick if I only need 2gb

Aye, there's the rub: A local Office Max has 8GB USBs on sale for US$4.99 so I bought five of them -- can't beat the price. Sadly the #! iso is only about 1GB (I think), so I have several drives that have a lot of wasted space thanks to dd. But for the price . . .


Res publica non dominetur | Larry the CrunchBang Guy speaks of the pompetous of CrunchBang

CrunchBang Forum moderator

Offline

#22 2012-12-28 15:53:11

johnraff
#!Drunkard
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 2,847
Website

Re: How To prepare an ISO to USB - Linux & Windows Instructions

This howto is already on the wiki btw:
http://crunchbanglinux.org/wiki/statler … stallation

Re mounted/unmounted, having the stick mounted might mess things up if another part of the system should try to access it while it's being dd'd. (That probably doesn't happen often though.) Most people seem to say the stick should be unmounted, but the wiki entry reports someone needing it mounted...

Also, I wonder if leaving out the bs=4M option might be safer? Something about truncated blocks? Personally I could wait another few minutes if longer transfer time was the price.

PS why is there no longer a link to the wiki on the forum?


John
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#23 2012-12-28 18:28:29

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: How To prepare an ISO to USB - Linux & Windows Instructions

lcafiero wrote:
ChickenPie4Tea wrote:

can anyone tell me how much space a waldorf iso would take?  I dont want to use an 8 gb usb stick if I only need 2gb

Aye, there's the rub: A local Office Max has 8GB USBs on sale for US$4.99 so I bought five of them -- can't beat the price. Sadly the #! iso is only about 1GB (I think), so I have several drives that have a lot of wasted space thanks to dd. But for the price . . .

That`s why I have bought a external usb-dvd/rw. I buy dvd`s on spindels, dirt cheap. Saves me a lot of money. Only bad thing is that I get a big collection of installation dvd`s...


- apt-mark hold account

Offline

#24 2013-01-11 23:45:47

Erik
#! CrunchBanger
From: Fort Worth, TX
Registered: 2009-03-28
Posts: 192

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Thanks for the guide! Some small notes

1) used dcfldd instead of dd (worked fine, just wanted to try it, it's available in the repos)
2) I needed the stick to be mounted, contra to what Ozitraveller mentioned
3) I ran the dcfldd command as normal user, not as root. I try to avoid using sudo commands if possible.

Offline

Be excellent to each other!

#25 2013-01-12 13:37:50

rkwurth
#! Junkie
Registered: 2012-09-04
Posts: 365

Re: How To prepare an ISO to USB - Linux & Windows Instructions

Azure- probably? You can test it by preparing a installation cd/dvd or flash drive and running the live session.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo