LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-02-2016, 06:11 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Burn iso to pen drive


Code:
dd: failed to open ‘/mnt/sdb1/’: Is a directory
#!/bin/bash
#
# TAHRPUP 6.0.5 SiegeWorks 2016 A.P.K.
#
# Make file executable:
# chmod +x file
#
# $0 shows the script that has been invoked
# echo $0 >> date.txt
dd if=tahr-6.0.5_PAE.iso of=/mnt/sdb1/ bs=4M; sync
 
Old 02-02-2016, 06:22 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Are you creating a multi-iso boot USB drive? Normally you should put the ISO to /dev/sdb.
 
Old 02-02-2016, 06:26 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by Emerson View Post
Are you creating a multi-iso boot USB drive? Normally you should put the ISO to /dev/sdb.
I just want to put a bootable iso to my pendrive.

I have been having to use Windows to do it.
I want to dump Windows, but can't do so.

I will try /dev/sdb.
 
Old 02-02-2016, 06:43 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
And you never, ever use dd (or any other command, for that matter) to write directly to a device that contains a currently mounted filesystem. Apparently the Puppy Linux ISOs are not designed to be simply copied as an image to a USB drive. That works only for specially designed hybrid ISO images. The web site http://puppylinux.org/wikka/InstallationFrugal has complete instructions for doing that.
 
Old 02-02-2016, 07:09 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
You are right.

I did so when the pen drive was unmounted.

It resulted in their being no partition table and could not boot from the pen drive.

Looks like I have to keep Windows around for a while.

I use Universal USB Installer in Windows.

As advanced as Linux is, it's amazing that they have nothing to write ISOs to pen drives.

Puppy Linux only lets you install Puppy to a pen drive.

The problem with frugal installations are that the .sfs files are very slow to load and save.

I use a full partition installation.

Last edited by Fixit7; 02-02-2016 at 07:13 PM.
 
Old 02-02-2016, 07:29 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
That's strange. I was about to take back everything I said, because I downloaded tahr-6.0-CE_PAE.iso, copied it to a USB flash drive with "dd if=tahr-6.0-CE_PAE.iso of=/dev/sde bs=32k", and tahrpup 6.0 booted just fine from that drive, both in a VM and in my laptop. Looking at that drive with fdisk on another machine, I see
Code:
Disk /dev/sde: 16.0 GB, 16039018496 bytes
64 heads, 32 sectors/track, 15296 cylinders, total 31326208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x22fb6a74

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           0      407551      203776   17  Hidden HPFS/NTFS
I'm not sure what is wrong if it's not working for you.

Last edited by rknichols; 02-02-2016 at 07:31 PM.
 
Old 02-02-2016, 07:49 PM   #7
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I will try it again using bs=32k.
 
Old 02-02-2016, 07:58 PM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
The block size should make no difference whatsoever. That's just an arbitrary number, big enough to give better I/O efficiency than the dd's default block size of 512 bytes. You could use "bs=143" and still get the same result, just with the kernel doing a lot more work.
 
Old 02-02-2016, 10:15 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
It still isn't working.

Even tried a different brand of flash drive.

No big deal. :-)
 
Old 02-03-2016, 02:31 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
so what did you want to achieve exactly? A bootable iso may or may not work on an usb (that means you will not be able to boot the iso image - of a cd/dvd from an usb stick). That depends on how do you write it on the usb stick.
Also dd to /dev/sdb1 and /dev/sdb are different.
 
Old 02-03-2016, 03:48 AM   #11
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Windows is able to take any iso and make a boot-able flash drive.

Works every time.

Was hoping Linux could do the same.
 
Old 02-03-2016, 03:57 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
windows is not able to do that, you can find programs written for windows which will do things, but also you may find similar programs for linux too.
You still did not answer what do you need....
 
Old 02-03-2016, 04:05 AM   #13
rogersheriff
LQ Newbie
 
Registered: Feb 2016
Posts: 5

Rep: Reputation: Disabled
Hey,
I went into similar problems and finally I found this:
https://wiki.ubuntuusers.de/MultiSystem/
You can easily add isos, as many as you want reboot and have a boot loader with all your isos. Links to common live cds are included as well. This tutorial is in german and I didn't find the english version.
You have to download the multisystem.sh plus installing some other packages and then just execute it and it asks you what isos you want to add.
official homepage (french):
http://liveusb.info/
 
Old 02-03-2016, 04:15 AM   #14
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by pan64 View Post
windows is not able to do that, you can find programs written for windows which will do things, but also you may find similar programs for linux too.
You still did not answer what do you need....
Sure it does. Been doing it for at least 2 years.

I will use an actual example.

Using Universal USB Installer in Windows XP, I installed tahr-6.0.5_PAE.iso to a 4 Gb Verbatim flash drive.

It is a fully bootable Puppy installation that runs in RAM.

Have a great evening.

I am tired.
 
Old 02-03-2016, 04:27 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
you do not understand what I wrote: windows itself does not do that, just a program named Universal USB Installer. And you will be able to find similar tools for unix too, just you need to explain what do you really want to achieve. dd is not the right one.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Burn iso to usb pen drive Fixit7 Puppy 20 10-30-2015 12:52 PM
Boot iso on pen drive by grub installed on pen drive jena Linux - Hardware 2 11-01-2008 09:09 AM
Burning .Iso image on pen drive? linuxlover.chaitanya Linux - Software 14 09-01-2008 03:56 AM
boot from any .iso file on a USB pen drive browny_amiga Linux - General 10 04-07-2008 04:44 PM
Trouble Burning ISO image to USB pen drive madh@ter Linux - Hardware 1 08-30-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:24 PM.

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