Sunteți pe pagina 1din 10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

You are not logged in.

Topics: Active | Unanswered

Index Tips, Tricks & Scripts How To prepare an ISO to USB - Linux & Windows Instructions
Pages: 1 2 3 Next 2012-11-25 17:24:03

VastOne 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: s u d ol sl/ d e v / d i s k / b y i d / * u s b * This should produce output along the lines of:

l r w x r w x r w x1r o o tr o o t 92 0 1 0 0 3 1 52 2 : 5 4/ d e v / d i s k / b y i d / u s b _ U S B _ D I l r w x r w x r w x1r o o tr o o t1 02 0 1 0 0 3 1 52 2 : 5 4/ d e v / d i s k / b y i d / u s b _ U S B _ D I

In this example output, the USB device is sdb Now cd to where your *.iso is c d~ / d o w n l o a d s Example s u d od di f = f i l e n a m e . i s oo f = / d e v / u s b d e v i c eb s = 4 M ;s y n c lets say the iso is named mini.iso and your USB device is sdb Example
file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO 1/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

s u d od di f = m i n i . i s oo f = / d e v / s d bb s = 4 M ;s y n c NO TE - 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 Words That Build Or Destroy

Offline

Help fund CrunchBang, donate to the project!

r0n d0n

2012-11-27 20:15:58 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?

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

2/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

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

VastOne
Hi r0n d0n Thank you!

2012-11-27 20:40:05

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 Words That Build Or Destroy

Offline

KrunchTime
Thanks, Vast One!

2012-11-28 22:27:50

"The less capable you are of governing yourself, the more you're going to be governed by others. What happens when the system collapses? Who steps into the void? Government.." -Chuck Colson

Offline

VastOne
^ My pleasure KrunchTime
VSIDO Words That Build Or Destroy

2012-11-28 23:16:38

Offline

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

3/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

Ozitraveller
Some extra thoughts. Run df -h to see what devices are currently mounted usb should be umount'd first.

2012-11-28 23:27:17

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.
VSIDO | Debian Sid How To | smxi How To | Wifi How To | Tint2 How To | Boot info script

Offline

VastOne
Fedora 18 to it while it was mounted.
VSIDO Words That Build Or Destroy

2012-11-28 23:43:05 I have never had to unmount a usb first, as a matter of fact I just ran dd burning

Offline

whereisthetea

2012-11-29 01:06:21

Oh my. What are we going to discuss on the IRC channel now? Maybe this should be stickied or sth... I have installed #! a couple of times already but I am sure that next time Ill be looking for this kind of information on the net. I dont think I am the only one with a shortwhaddyacallityes, memory Gratias multas VastOne!
Anymay away icklemay akesmay away ucklemay.

Offline 2012-11-29 02:02:29


4/10

VastOne

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

^ Thanks Whereisthetea! It is stickied... Now we can bounce those asking in the IRC to this one...
VSIDO Words That Build Or Destroy

Offline

hank122
Thanks for the info!

2012-11-29 03:35:41

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

VastOne
unetbootin
VSIDO Words That Build Or Destroy

2012-11-29 04:08:39 ^ Thanks Hank... several people here and on the IRC have reported total failure with

Offline

lwfitz
VastO n e wro te:

2012-11-29 05:13:26

^ 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
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSID O

Offline

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

5/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

VastOne
^ Wise mom, wise son... Thanks lwfitz!
VSIDO Words That Build Or Destroy

2012-11-29 06:28:50

Offline

CaptainIndifferent

2012-11-29 06:38:48

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

hank122

2012-11-29 18:23:36 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

lcafiero
VastO n e wro te:

2012-11-29 18:30:26

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.
file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO 6/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

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

Offline

MrPink

2012-11-29 20:30:57 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

r0n d0n

2012-11-30 09:41:41 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

ChickenPie4Tea

2012-12-27 10:31:16

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 ChickenPie4Tea (2012-12-27 10:31:46)

Troll = not a fanatic

Offline

Kuno
Ch ick en Pie4 Tea wro te:

2012-12-27 10:37:38

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

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

7/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

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

lcafiero
Ch ick en Pie4 Tea wro te:

2012-12-27 17:02:16

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

Offline

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

2012-12-28 15:53:11

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 , and idle twitterings )

Offline 2012-12-28 18:28:29

ew
file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO 8/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

lcafiero wro te: Ch ick en Pie4 Tea wro te: 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...
- EW ....... WARNING! Don`t touch my monkey your ears! . You might fry your brain, and smoke will come out of

Offline

Erik
Thanks for the guide! Some small notes

2013-01-11 23:45:47

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

Help fund CrunchBang, donate to the project!

rkwurth
and running the live session.

2013-01-12 13:37:50 Azure- probably? You can test it by preparing a installation cd/dvd or flash drive

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

9/10

5/4/2014

How To prepare an ISO to USB - Linux & Windows Instructions (Page 1) / Tips, Tricks & Scripts / CrunchBang Linux Forums

Offline Pages: 1 2 3 Next

Index Tips, Tricks & Scripts How To prepare an ISO to USB - Linux & Windows Instructions

Jump to Tips, Tricks & Scripts Go

Atom topic feed 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.

file:///C:/Users/adm/Downloads/xxxxx%20How%20To%20prepare%20an%20ISO%20to%20USB%20CrunchBang/How%20To%20prepare%20an%20ISO

10/10

S-ar putea să vă placă și