LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot burn ISO to DVD or thumb drive (https://www.linuxquestions.org/questions/linux-software-2/cannot-burn-iso-to-dvd-or-thumb-drive-4175639428/)

walterbyrd 09-29-2018 04:39 PM

Cannot burn ISO to DVD or thumb drive
 
Code:

# uname -a
Linux mysys 4.18.9-calculate #1 SMP PREEMPT Thu Sep 20 14:36:36 UTC 2018 x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux

Microsoft offers a 90 day evaluation of Windows 10 Enterprise. I would like to give it a try.

I download the ISO. It takes up 3.6GB on my Linux drive.

I have a stack of 4.75GB DVD-Rs. They are HP 16X speed. I have tried several different DVDs. None of them work. I get the same message every time.

I have the following two DVD burners. Both have always worked. I have used them as recently as yesterday.

NEC DVD RW ND-2500A
Optiarc DVD RW AD-72805

I have tried Brasero and XFBurn, neither work. Neither will burn the image to a DVD. Neither allow burning the ISO to a flash drive.

I get this message with XFBurn: Failure: Cannot reserve track of 3577944064 bytes. I get a similar message with Basero. This does not seem to make sense. There should be enough room on a 4.75GB drive.

I know that a lot of people have problems burning the Win10 ISO. Those people seem to be always be using Windows.

I have tried using a flash drive. Neither Brasero or XFBurn will work with a flash drive. So I formatted the flash drive to NTFS, and extracted the ISO files to the drive. I read a post that claimed this would make the drive bootable, it doesn't.

The extracted files, on the flash drive, take up about 3.5GB. Again, this should fit on a DVD.

I tried using an XP box to make a bootable flash drive, that does not work either.

Is there any way to burn a bootable ISO image on a flash drive using Linux? I have heard that Ubuntu has an app for that, but I am not using Ubuntu.

hydrurga 09-29-2018 04:52 PM

If you are not using Ubuntu, what are you using?

Have you tried Etcher (etcher.io)?

walterbyrd 09-29-2018 05:31 PM

Again.

Code:

# uname -a
Linux mysys 4.18.9-calculate #1 SMP PREEMPT Thu Sep 20 14:36:36 UTC 2018 x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux

Calculate Linux is based on Gentoo. It is all Gentoo under the hood.

I cannot seem to find Etcher. I am getting the message:

Code:

emerge: there are no ebuilds to satisfy "etcher".

emerge: searching for similar names...
emerge: Maybe you meant any of these: dev-haskell/either, www-client/fetch, x11-terms/eterm?

I wonder if Gentoo is seeing my DVD drives as CDROM drives? How could I find out?

hydrurga 09-29-2018 05:41 PM

The Etcher website has an appimage version - can you use that?

If not, there are other versions listed here: https://github.com/resin-io/etcher#d...nulinux-x86x64

BW-userx 09-29-2018 06:18 PM

Create a Bootable Windows 10 USB in Linux With Ubuntu/Debian GUI
github
woeusbgui GUI app


http://www.webupd8.org/2016/06/make-...b-install.html

maybe??

yancek 09-29-2018 06:36 PM

I used the method explained at the link below to create a bootable windows usb which bootedd and I used it to install windows. Skip the part on installing Grub to the device if you already have Grub2 with your Linux OS.

http://onetransistor.blogspot.ch/201...om-ubuntu.html

zeebra 09-29-2018 06:52 PM

k3b rarely let me down when i wanted to burn CD's/DVD's.. And if it ever did there was an issue with the CD's, not with k3b or the optical drive or something like that.

Some optical disks are simply poor quality, or broken by something like long time storage or sitting in direct sunlight or something similar. I've even had new disks which just did not work in the burning room that I used, but worked in another one. Some disks and optical rooms just do not get along.

I would suggest you try k3b to burn the iso image, and if you have any issues I would suggest buying a new DVD-R or even DVD-RW to try with it.

mrmazda 09-30-2018 12:14 AM

Quote:

Originally Posted by walterbyrd (Post 5909271)
Microsoft offers a 90 day evaluation of Windows 10 Enterprise. I would like to give it a try.

I download the ISO. It takes up 3.6GB on my Linux drive.

I have a stack of 4.75GB DVD-Rs. They are HP 16X speed. I have tried several different DVDs. None of them work. I get the same message every time.

Is that stack all new, never used, blanks? The process of checking to see if blank or unused could possibly render them unwriteable, depending on the exact process of "checking".

Burning a downloaded and verified iso file to blank media is a simple process. GUI programs to do so are mere conveniences. All you actually need is dd. Converting one of those HP discs into a bootable Win10 DVD could be as simple as:
Code:

dd /path/to/win10isoimage.iso /dev/dvd
(assuming sufficient privilege, running as root, or using sudo)

scdbackup 09-30-2018 03:38 AM

Hi,

the error message "cannot reserve track" probably stems from libburn
(where i am developer) or from growisofs. Indeed the protest is strange.

It would be interesting to see the exact messages from a burn program on
the shell command line. Inspect the medium in /dev/sr0 by
Code:

xorriso -outdev /dev/sr0 -toc
(You have two drives. So you probably have /dev/sr0 and /dev/sr1.)

A burn run for an image file would look like this
Code:

xorriso -as cdrecord -v dev=/dev/sr0 -eject /path/to/win10isoimage.iso
The image must _not_ be put into a filesystem. Neither on DVD nor on
USB stick (if the image is prepared for booting from USB stick at all).

Copying the image to a USB stick would be done with dd:
Code:

dd bs=1M if=/path/to/win10isoimage.iso of=/dev/sde
This is somewhat dangerous, because you need to find out the base device
address of the USB stick, and must not confuse it with the device address
of your disks. /dev/sda is quite surely a hard disk or SDD. Your USB
stick will have an address in the range of sdb to sdx, depending on how
many storage devices are already attached.

Best is to first try the intended address with a read run and watch
whether the USB stick blinks (if it can blink at all):
Code:

dd bs=1M count=100 if=/dev/sde of=/dev/null
mrmazda's proposal to use "dd" with a DVD drive would work only with
overwritable media types: DVD-RAM, DVD+RW, BD-RE. The other optical
media types have to be written by a burn program.

Have a nice day :)

Thomas

mrmazda 09-30-2018 04:15 AM

Quote:

Originally Posted by scdbackup (Post 5909345)
mrmazda's proposal to use "dd" with a DVD drive would work only with
overwritable media types: DVD-RAM, DVD+RW, BD-RE. The other optical
media types have to be written by a burn program.

:confused: Ever since K3B started exhausting RAM last year, dd is the only way I can remember having written to DVD-R and DVD+R discs using a Linux PC. My DVD players play the ones that are supposed to be played, and my PCs boot the ones that should be bootable.

scdbackup 09-30-2018 04:57 AM

Hi,

mrmazda wrote:
Quote:

dd is the only way I can remember having written to DVD-R and DVD+R
discs using a Linux PC.
That's unexpected from the view of the specs. dd operates the storage
device like a hard disk. Optical drives accept the same WRITE commands
as disks, but depending on the medium type, they expect further commands
before or after the bulk of WRITEs.

With DVD-R, dd is very unlikely to succeed, because for this medium type
the drive expects to get sent a Mode Page 05, which describes the burn job.

With DVD+R, the drive should complain about missing CLOSE TRACK commands
in the end, when it shall hand out the medium. (But the half-finished
result might be readable, indeed.)

It would be interesting to see the Table-Of-Content of such a dd-burned
medium, if you have one in reach:
Code:

xorriso -outdev /dev/sr0 -toc
or
Code:

dvd+rw-mediainfo /dev/sr0
Have a nice day :)

Thomas

mrmazda 09-30-2018 05:36 AM

With all the discs of various types around here I'm not sure I could tell which came from where. Probably I'd have to create one or more in the manner described for the purpose of the requested examination. Most recent purchase was 100 DVD-R as my supply of DVD+R dwindled to near zero. Most writing both lately and memorable has been using erasable media with K3B.

scdbackup 09-30-2018 07:30 AM

Hi,

to stay on topic, i tried my own proposal for image burning:
Code:

$ xorriso -as cdrecord -v dev=/dev/sr4 -eject debian-9.3.0-amd64-netinst.iso
...
Writing to '/dev/sr4' completed successfully.
...
Media current: DVD-RW sequential recording
Media status : is written , is closed
Media summary: 1 session, 148640 data blocks,  290m data,    0 free
$

(If the image size is smaller than 1 GB, expect substantial extra time
at "0.0x" speed before seeing "completed successfully", because the
medium gets filled up to 1 GB at least.)

------------------------------------------------------------------------

Now for the dd branch of this thread:

mrmazda wrote:
Quote:

With all the discs of various types around here I'm not sure I could
tell which came from where.
Just pick a DVD+R and a DVD-R which might possibly be burned by dd.
The proposed info runs will not do harm to them, and maybe their output
will give me a clue what might have gone right against my expectations.
(Normally we search reasons why something goes wrong. Not now.)

My stock of unused DVD-R and DVD+R is small. I will try to invent a
good purpose for the case that my drives are willing to burn them under
control of dd.

DVD-R can do dummy burning. But that's requested in the mode page 05
which the sr driver underneath dd will not send. (Burn programs construct
the SCSI commands on their own and send them through sr by ioctl(SG_IO).)

But i still have a few DVD-RW. Unformatted they work much like DVD-R.
The medium i use in the first test is fast-blanked. I.e. it can do only
Write Type DAO, not Write Type "Incremental".
Code:

$ dd if=debian-9.3.0-amd64-netinst.iso of=/dev/sr4 bs=2048
dd: error writing /dev/sr4: No space left on device
2+0 records in
1+0 records out
2048 bytes (2.0 kB) copied, 7.74152 s, 0.3 kB/s
$

Ok. This might be due to fast blanking.

I then blanked the DVD-RW fully, so that it resembles an unused DVD-R
as much as possible.

This gives dd and the Linux sr driver a chance for Write Type "Incremental".
Code:

$ dd if=debian-9.3.0-amd64-netinst.iso of=/dev/sr4 bs=2048
dd: error writing /dev/sr4: No space left on device
2+0 records in
1+0 records out
2048 bytes (2.0 kB) copied, 0.00129396 s, 1.6 MB/s

At this occasion the device (in a USB box) got disconnected and
re-connected by the Linux kernel.
Code:

Sep 30 13:00:42 ... kernel: [...] usb 1-1.3: USB disconnect, device number 7
Sep 30 13:00:44 ... kernel: [...] usb 1-1.3: new high-speed USB device number 8 using ehci-pci
...
Sep 30 13:00:45 ... kernel: [...] sr4: scsi3-mmc drive: 47x/94x writer dvd-ram cd/rw xa/form2 cdda tray
Sep 30 13:00:45 ... kernel: [...] sr 11:0:0:0: Attached scsi generic sg6 type 5

The medium is then recognized by xorriso and dvd+rw-mediainfo as used up:
Code:

  Media status : is written , is closed
  ...
  Media summary: 1 session, 2298496 data blocks, 4489m data,    0 free

Code:

READ DISC INFORMATION:
 Disc status:          complete
 Number of Sessions:    1
 State of Last Session: complete
 Number of Tracks:      1
...
READ CAPACITY:          2298496*2048=4707319808

Indeed it is possible to read data from that DVD-RW. But that cannot be
the whole image data, because dd had really no time to write them.
Reading stalls after about 207 MB with "Input/output error".

The first 2048 bytes look like the start bytes of a Debian netinst ISO,
but the other readable bytes are all 0.

The kernel log shows a few SCSI error messages like
"L-EC uncorrectable error" and "Timeout on logical unit".


Have a nice day :)

Thomas

teckk 09-30-2018 01:13 PM

Quote:

Is there any way to burn a bootable ISO image on a flash drive using Linux?
Burn .iso to optical disk
Code:

growisofs -dvd-compat -speed=8 -use-the-force-luke=tty -Z /dev/sr0=/path/file.iso
Make .iso of optical disk
Code:

dd if=/dev/sr0 of=image.iso bs=2048

cat /dev/sr0 > image.iso

dd if=/dev/sr0 bs=2048 count=$(isosize -d 2048 /dev/sr0) conv=notrunc,noerror > dvdimg.iso

Make .iso from multiple directories
Code:

genisoimage -o output.iso -J -r -pad -graft-points fred/=/path/files wilma/=/path/files barney/=/path/files
Burn DVD from files
Code:

growisofs -use-the-force-luke=tty -Z /dev/sr0 -J -r -speed=8 -dvd-compat -pad -graft-points /path/file1.avi /path/file2.avi

walterbyrd 10-02-2018 03:51 PM

Seems to be working, but I cannot explain why.

I decided to try and write a 4GB video file to the DVD. I used xfburn, and it worked.

After that, I tried, yet again, to burn the Windows image. To my surprise, it worked. I put the DVD into my laptop, and it booted. I am trying to install now.

Thanks for all the help. I am sorry to have taken your time.

I promise: I tried over and over, with both drives, and with both Brasero and xfburn, with several different DVD-Rs. I kept getting the same error message. Then yesterday, after writing the video file, it worked.


All times are GMT -5. The time now is 12:00 PM.