LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Burn iso to pen drive (https://www.linuxquestions.org/questions/linux-general-1/burn-iso-to-pen-drive-4175569047/)

Fixit7 02-02-2016 06:11 PM

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

Emerson 02-02-2016 06:22 PM

Are you creating a multi-iso boot USB drive? Normally you should put the ISO to /dev/sdb.

Fixit7 02-02-2016 06:26 PM

Quote:

Originally Posted by Emerson (Post 5491802)
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.

rknichols 02-02-2016 06:43 PM

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.

Fixit7 02-02-2016 07:09 PM

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.

rknichols 02-02-2016 07:29 PM

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.

Fixit7 02-02-2016 07:49 PM

I will try it again using bs=32k.

rknichols 02-02-2016 07:58 PM

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.

Fixit7 02-02-2016 10:15 PM

It still isn't working.

Even tried a different brand of flash drive.

No big deal. :-)

pan64 02-03-2016 02:31 AM

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.

Fixit7 02-03-2016 03:48 AM

Windows is able to take any iso and make a boot-able flash drive.

Works every time.

Was hoping Linux could do the same.

pan64 02-03-2016 03:57 AM

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....

rogersheriff 02-03-2016 04:05 AM

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/

Fixit7 02-03-2016 04:15 AM

Quote:

Originally Posted by pan64 (Post 5493328)
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.

pan64 02-03-2016 04:27 AM

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.


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