[opensuse] making iso from distribution bootable usb stick
Hello, We all probably know several ways to create a bootable usb stick from an iso image. I have lot of them in my openSUSE booth kit. But from time to time, pretty rarely, I get a computer that do not want to boot my usb pen. I had that yesterday, a 32 bits computer that booted leap 64 usb (onbly to say it can't install it, of course), but refused to boot 13.2 32 bits (that booted perfectly on the next computer). So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones). optionally, I was said it's possible with debian usb pen to boot any (probably debian) media, plug the usb and continue install from there. Is it possible to do the same with openSUSE? If so, I could use a single boot dvd and run after this any usb pen in other words, is it possible to launch yast-install from the command line? thanks jss -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/27/2015 06:01 AM, jdd wrote:
Hello,
We all probably know several ways to create a bootable usb stick from an iso image. I have lot of them in my openSUSE booth kit.
But from time to time, pretty rarely, I get a computer that do not want to boot my usb pen. I had that yesterday, a 32 bits computer that booted leap 64 usb (onbly to say it can't install it, of course), but refused to boot 13.2 32 bits (that booted perfectly on the next computer).
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
optionally, I was said it's possible with debian usb pen to boot any (probably debian) media, plug the usb and continue install from there. Is it possible to do the same with openSUSE? If so, I could use a single boot dvd and run after this any usb pen
in other words, is it possible to launch yast-install from the command line?
thanks jss
man mkisofs But if Carlos was hear, he would have a more detailed answer. Maybe the board can answer since they aren't too busy making excuses for banning people. Ruben -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 12:01, jdd a écrit :
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument?? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* jdd <jdd@dodin.org> [12-27-15 06:37]:
Le 27/12/2015 12:01, jdd a écrit :
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument??
imagewriter live-fat-stick live-grub-stick and soon live-usb-gui which will provide ability to have multiple iso's on same stick -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 12:53, Patrick Shanahan a écrit :
* jdd <jdd@dodin.org> [12-27-15 06:37]:
Le 27/12/2015 12:01, jdd a écrit :
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument??
imagewriter live-fat-stick live-grub-stick
and soon live-usb-gui which will provide ability to have multiple iso's on same stick
I want to do the other way round, create the iso when I have the usb drive jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* jdd <jdd@dodin.org> [12-27-15 08:29]:
Le 27/12/2015 12:53, Patrick Shanahan a écrit :
* jdd <jdd@dodin.org> [12-27-15 06:37]:
Le 27/12/2015 12:01, jdd a écrit :
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument??
imagewriter live-fat-stick live-grub-stick
and soon live-usb-gui which will provide ability to have multiple iso's on same stick
I want to do the other way round, create the iso when I have the usb drive
https://www.google.com/search?client=qupzilla&q=create%20iso&gws_rd=ssl#q=linux%20create%20iso%20from%20files https://www.google.com/search?client=qupzilla&q=create%20iso&gws_rd=ssl#q=linux%20dd%20create%20iso%20image :) -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, Dec 27, 2015 at 12:35 PM, jdd <jdd@dodin.org> wrote:
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument??
I've read the sources of suse image writer, it just copies the content of the ISO to the device. So I would guess the same can be done backwards? I'm just not sure how ISO will behave if the image file length is bigger than actual contents. So, what I would try: 1. Determine the actual size of the ISO image: lynx -dump -head 'http://mirror.karneval.cz/pub/linux/opensuse/distribution/leap/42.1/iso/open...' | grep 'Content-Length' Content-Length: 4648337408 2. This can be divided evenly by 8192 (8kb buffers), resulting in 567424. 3. So I would try following dd command to transform it back into iso: sudo dd if=/dev/sdc of=leap.iso bs=8192 count=567424. 4. Now checking the md5sums: md5sum Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso leap.iso 2bc74929bfa9772a5637f76ddde8784b Downloads/openSUSE-Leap-42.1-DVD-x86_64.iso 2bc74929bfa9772a5637f76ddde8784b leap.iso And we have a winner! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27/12/15 08:04 AM, Stanislav Baiduzhyi wrote:
On Sun, Dec 27, 2015 at 12:35 PM, jdd <jdd@dodin.org> wrote:
as a complementary word, usb sticks are 8Gb, so a simple dd is not a solution, may be with some argument?? I've read the sources of suse image writer, it just copies the content of the ISO to the device. So I would guess the same can be done backwards? I'm just not sure how ISO will behave if the image file length is bigger than actual contents. So, what I would try: (snip) I am pretty sure that this is not going to work. I used image writer to create a usb stick to install Leap. It contains two partitions, a very small EFI (FAT-16) partition and a hidden 4GB NTFS or HPFS partition containing the files from the ISO image:
loki:~ # fdisk -l /dev/sdf Disk /dev/sdf: 15.2 GiB, 16296967680 bytes, 31830015 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 Disklabel type: dos Disk identifier: 0x20ca2c8b Device Boot Start End Sectors Size Id Type /dev/sdf1 3780 11339 7560 3.7M ef EFI (FAT-12/16/32) /dev/sdf2 * 11340 9078783 9067444 4.3G 17 Hidden HPFS/NTFS Notice that the number of sectors on that second partition is more than 5MB smaller than the original ISO image. Here is what is on the first partition (the second, hidden, partition contains all the files from the ISO image): loki~ # mount /dev/sdf1/oldsys loki~ # ls -l /oldsys total 4 -rwxr-xr-x 1 root root 106 Oct 29 14:21 .packages.grub2-efi drwxr-xr-x 3 root root 2048 Oct 29 14:21 EFI loki~ # ls -l /oldsys/EFI total 2 drwxr-xr-x 3 root root 2048 Oct 29 14:21 BOOT loki~ # ls -l /oldsys/EFI/BOOT total 3166 -rwxr-xr-x 1 root root 1161312 Oct 29 14:21 MokManager.efi -rwxr-xr-x 1 root root 1157056 Oct 29 14:21 bootx64.efi -rwxr-xr-x 1 root root 1760 Oct 29 14:21 grub.cfg -rwxr-xr-x 1 root root 915832 Oct 29 14:21 grub.efi drwxr-xr-x 2 root root 2048 Oct 29 14:21 locale Evidently, the system is booting from the EFI partition, using the files from the second partition to set up the installation environment. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, Dec 27, 2015 at 4:43 PM, Darryl Gregorash <raven@accesscomm.ca> wrote:
I am pretty sure that this is not going to work. I used image writer to create a usb stick to install Leap. It contains two partitions, a very small EFI (FAT-16) partition and a hidden 4GB NTFS or HPFS partition containing the files from the ISO image:
Well if you were patient enough to read to the end of my email - I actually tried it and md5sum of extracted iso image matched the downloaded one. And also I specified the entire device, /dev/sdc, not the partition on the device. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27/12/15 09:47 AM, Stanislav Baiduzhyi wrote:
I am pretty sure that this is not going to work. I used image writer to create a usb stick to install Leap. It contains two partitions, a very small EFI (FAT-16) partition and a hidden 4GB NTFS or HPFS partition containing the files from the ISO image: Well if you were patient enough to read to the end of my email - I actually tried it and md5sum of extracted iso image matched the downloaded one. And also I specified the entire device, /dev/sdc, not
On Sun, Dec 27, 2015 at 4:43 PM, Darryl Gregorash <raven@accesscomm.ca> wrote: the partition on the device. I did read it, Stanislav, all the way to the end. I read it several times, in fact.
I will believe it works if you (or anyone) will now take your newly created ISO image, write it to a DVD, and you can boot from it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, Dec 27, 2015 at 5:02 PM, Darryl Gregorash <raven@accesscomm.ca> wrote:
I did read it, Stanislav, all the way to the end. I read it several times, in fact.
I will believe it works if you (or anyone) will now take your newly created ISO image, write it to a DVD, and you can boot from it.
Hm now I feel like I'm missing something important... md5sum matched, what can go wrong? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 17:02, Darryl Gregorash a écrit :
I will believe it works if you (or anyone) will now take your newly created ISO image, write it to a DVD, and you can boot from it.
I just did... it works jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27/12/15 10:34 AM, jdd wrote:
Le 27/12/2015 17:02, Darryl Gregorash a écrit :
I will believe it works if you (or anyone) will now take your newly created ISO image, write it to a DVD, and you can boot from it.
I just did... it works
jdd Good to hear; thanks.
Stanislav: While it's extremely unlikely that 2 files in the real world could have the same md5 hash, it is possible. Only a byte-wise comparison can prove they are identical. If they are not 100% identical, then it must be shown that they achieve the same purpose. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 15:04, Stanislav Baiduzhyi a écrit :
I've read the sources of suse image writer, it just copies the content of the ISO to the device.
yes, one can do the job with dd, image writer is only more secure (do not try to write on hard drive :-)) So I would guess the same can be done
backwards? I'm just not sure how ISO will behave if the image file length is bigger than actual contents. (...) your solution is good, but fail only in one thing: you find the iso size on the net. Not sure I could do this on the field easily, I would like to have a permanent solution.
so I dig a bit into your idea. fdisk -l gives the size of the partition built by the iso.For 13.2 32 bits, I get: /dev/sdn1 * 3748 9031679 9027932 4,3G 17 Hidden HPFS/NTFS I do not too much care of the file system flag. But if this is done with dd, start should be at sector zero (or one) and the iso is up to 9027932 sectors of 512 MB I'm unsure of the exact size to take into account, because the result is not even. x 512 / 8192 is not an even number but anyway, I rounded it up and wrote: dd if=/dev/sdn of=32b.iso bs=8192 count=564250 this give me an iso that boots perfectly on virtualbox and write to a real dvd That way, I could notice in k3b a error message saying approx "the file size is different from the official volume size" and allowing to bypass. What I did and the dvd accepted the file. but if k3b can read a "volume size", it's somewhere in the file and in the usb pen. there should be a way to read it! thanks, at least a working solution, we may improve later jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, Dec 27, 2015 at 4:44 PM, jdd <jdd@dodin.org> wrote:
your solution is good, but fail only in one thing: you find the iso size on the net. Not sure I could do this on the field easily, I would like to have a permanent solution.
so I dig a bit into your idea.
fdisk -l gives the size of the partition built by the iso.For 13.2 32 bits, I get:
/dev/sdn1 * 3748 9031679 9027932 4,3G 17 Hidden HPFS/NTFS
There is a little problem with this solution, UEFI-ready ISO image has two partitions. I do not have DVD drives anywhere any more, but you could try just creating an iso image little smaller than max DVD size. Wikipedia says that DVD size is 4,596,992 KiB, giving the dd command as following, leaving 32 KiB margin for dvd writing apps not to complain to loud: dd if=/dev/sdc of=leap.iso bs=8192 count=574620 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 16:54, Stanislav Baiduzhyi a écrit :
On Sun, Dec 27, 2015 at 4:44 PM, jdd <jdd@dodin.org> wrote:
your solution is good, but fail only in one thing: you find the iso size on the net. Not sure I could do this on the field easily, I would like to have a permanent solution.
so I dig a bit into your idea.
fdisk -l gives the size of the partition built by the iso.For 13.2 32 bits, I get:
/dev/sdn1 * 3748 9031679 9027932 4,3G 17 Hidden HPFS/NTFS
There is a little problem with this solution, UEFI-ready ISO image has two partitions.
not a problem if fdisk gives the two of them. Only take the last used sector I do not have DVD drives anywhere any more, but you
could try just creating an iso image little smaller than max DVD size. Wikipedia says that DVD size is 4,596,992 KiB, giving the dd command as following, leaving 32 KiB margin for dvd writing apps not to complain to loud: dd if=/dev/sdc of=leap.iso bs=8192 count=574620
yes also. thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27 December 2015 at 11:01, jdd <jdd@dodin.org> wrote:
Hello,
We all probably know several ways to create a bootable usb stick from an iso image. I have lot of them in my openSUSE booth kit.
But from time to time, pretty rarely, I get a computer that do not want to boot my usb pen. I had that yesterday, a 32 bits computer that booted leap 64 usb (onbly to say it can't install it, of course), but refused to boot 13.2 32 bits (that booted perfectly on the next computer).
So, as I don't want to keep several dvd with me, I would like to know how to extract the iso from the usb device to copy it to a blank dvd (I can have spare ones).
optionally, I was said it's possible with debian usb pen to boot any (probably debian) media, plug the usb and continue install from there. Is it possible to do the same with openSUSE? If so, I could use a single boot dvd and run after this any usb pen
in other words, is it possible to launch yast-install from the command line?
thanks jss
I own a Zalman 'ISO Drive' like http://www.zalman.com/global/product/Product_Read.php?Idx=750 This is an external hard drive case (you have to supply the hard drive) which can emulate a CD drive by reading the ISOs on the hard disk, then acting like a DVD drive with the ISO in the drive. On this Zalman I keep all my ISOs, and then when I find myself in a situation like yours, I can boot to the 'USB CD Drive' the system sees, with my chosen ISO on it If you were 'out in the field' and just wanted a 'quick and dirty' way of getting the installer working on a machine that for some reason cannot boot a USB device, I'd look at something like Network Installation https://en.opensuse.org/SDB:Network_installation The short version of these instructions would be - Download the initrd and linux/vmlinuz file from the download.opensuse.org folder for the distribution you want to install - Either modify the grub config (advanced) to use those vmlinuz and initrd files to boot into the install system, then do a network install as usual OR - use kexec to load the installation kernel and install that way Of course, this requires an internet connection, which is why I really like my Zalman :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 14:45, Richard Brown a écrit :
I own a Zalman 'ISO Drive' like http://www.zalman.com/global/product/Product_Read.php?Idx=750
This is an external hard drive case (you have to supply the hard drive) which can emulate a CD drive by reading the ISOs on the hard disk, then acting like a DVD drive with the ISO in the drive.
the part I like is the "emulate a cd drive". Most computer I had to manage had no problem booting an external usb dvd reader even when refusing to boot a usb pen drive thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 27/12/2015 14:45, Richard Brown a écrit :
I own a Zalman 'ISO Drive' like http://www.zalman.com/global/product/Product_Read.php?Idx=750
This is an external hard drive case (you have to supply the hard drive) which can emulate a CD drive by reading the ISOs on the hard disk, then acting like a DVD drive with the ISO in the drive.
On this Zalman I keep all my ISOs, and then when I find myself in a situation like yours, I can boot to the 'USB CD Drive' the system sees, with my chosen ISO on it
from the Richard advice I bough a similar device (iodd) that looks alike for a smaller price and I'm very glad of it http://dodin.info/wiki/pmwiki.php?n=IODD2541USB3.0 thanks Richard :-) jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Darryl Gregorash
-
jdd
-
Patrick Shanahan
-
Richard Brown
-
Ruben Safir
-
Stanislav Baiduzhyi