errors trying to create installation media

Help with issues regarding installation of Debian

errors trying to create installation media

Postby mzimmers » 2017-04-06 13:31

Hi -

I've tried to create installation media on both a DVD and a flash drive, without success. I've done my best to follow the instructions, but I imagine that I've missed a step somewhere, so I'd like to review my procedures with the learned people of this forum.

My steps in trying to create a bootable DVD:

1. used jigdo to obtain debian-8.7.1-amd64-DVD-1.iso
2. used brasero to try to burn the image to a blank DVD
3. got this error message:
mount: /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.


When I did the dmesg | tail, I got this:

Code: Select all
 mzimmers@debian:~$ dmesg | tail
[ 2304.226170] UDF-fs: warning (device sr0): udf_fill_super: No partition found (1)
[ 2304.242089] sr 2:0:0:0: [sr0] 
[ 2304.242091] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2304.242092] sr 2:0:0:0: [sr0] 
[ 2304.242093] Sense Key : Illegal Request [current]
[ 2304.242095] sr 2:0:0:0: [sr0] 
[ 2304.242096] Add. Sense: Logical block address out of range
[ 2304.242097] sr 2:0:0:0: [sr0] CDB:
[ 2304.242098] Read(10): 28 00 00 00 00 10 00 00 01 00
[ 2304.242117] isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16


Most of that is Greek to me, but I notice the "no partition found" message. I'd have thought that brasero would take care of any necessary partitioning for me...not so?

When I copied to my flash drive:

Code: Select all
 dd if= debian-8.7.1-amd64-DVD-1.iso of=/dev/sdc


and then went to the boot menu in my start-up, I saw two 16GB devices listed. I wasn't expecting this, but I tried them both. When I selected the first, I got nothing; when I selected the second, I went into a GRUB menu. (My GRUB is sort of messed up; I'm dealing with that in another thread.)

Any suggestions? Thanks...
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby Dai_trying » 2017-04-06 14:34

I would suggest to write the iso in windows, I use rufus and burn in iso mode so I can read the drive easily, there are some posts in the forum that say not to use rufus but I have had no issues with it in 2 or 3 years of using it, and it will make the flash drive boot in uefi mode so long as the iso contains the correct uefi files.Maybe someone else would suggest another way but this is what I do when having issues burning from debian (or linux in general).
Dai_trying
 
Posts: 335
Joined: 2016-01-07 12:25

Re: errors trying to create installation media

Postby mzimmers » 2017-04-06 14:48

Thanks for the suggestion. Right now, for my education, I'd prefer to try to figure out why my Linux attempts aren't working, but I'll use your suggestion if this becomes impassible.
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby Dai_trying » 2017-04-06 14:55

A linux option would be to zero out the flash drive (to remove previous boot loaders etc) and then create a new partition table on it, then create a partition and then format it (fat32 probably). After that it should be pretty much clean and you could try the dd/cp mode again to see if that helps. I only suggested the Windows way as it is quicker and you have UEFI Windows installation available.
Dai_trying
 
Posts: 335
Joined: 2016-01-07 12:25

Re: errors trying to create installation media

Postby mzimmers » 2017-04-06 16:22

I tried again on my flash drive, and got the same results.

I also tried dd (to copy to my DVD), and it told me the destination was readonly. I used this mount command:
Code: Select all
root@debian:/home/mzimmers# mount -o rw /dev/sr0
mount: /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0: can't read superblock
root@debian:/home/mzimmers#


How do I mount this drive as writable? Thanks.
Last edited by mzimmers on 2017-04-06 17:49, edited 1 time in total.
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby Dai_trying » 2017-04-06 16:44

Are you using your DVD drive as a flash drive?
Dai_trying
 
Posts: 335
Joined: 2016-01-07 12:25

Re: errors trying to create installation media

Postby mzimmers » 2017-04-06 17:51

No. Sorry for the confusing post (I just edited it). I'm trying to get any media to work for booting purposes. The ISO file is the same for both flash and DVD, though, right?
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby stevepusser » 2017-04-06 19:02

You could also try Etcher (etcher.io) for the flash drive: though it's a big fat Electron package, it seems easy to use and is cross-platform.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8937
Joined: 2009-10-06 05:53

Re: errors trying to create installation media

Postby Head_on_a_Stick » 2017-04-06 19:04

mzimmers wrote:When I copied to my flash drive:

Code: Select all
 dd if= debian-8.7.1-amd64-DVD-1.iso of=/dev/sdc

I presume that the space after if= is a typographical error?

You forgot to flush the buffers, refer to TFM for details:

https://www.debian.org/CD/faq/#write-usb

Dai-trying wrote:A linux option would be to zero out the flash drive (to remove previous boot loaders etc) and then create a new partition table on it, then create a partition and then format it (fat32 probably). After that it should be pretty much clean and you could try the dd/cp mode again to see if that helps.

The Debian ISO image has it's own partition table and this will overwrite anything that is already on the device, thus pre-partitioning the stick will do nothing ;)

However, it may be the case that the USB stick has some GUID partition table remnants that would not be cleared by either `dd` or by creating a new (MBR-style) table — to wipe any GUID tables from the device, use:
Code: Select all
# apt install gdisk
# sgdisk --zap-all /dev/sdX
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6782
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: errors trying to create installation media

Postby Dai_trying » 2017-04-06 19:54

mzimmers wrote:No. Sorry for the confusing post (I just edited it). I'm trying to get any media to work for booting purposes. The ISO file is the same for both flash and DVD, though, right?

Yes the image can be used for any medium.
Dai_trying
 
Posts: 335
Joined: 2016-01-07 12:25

Re: errors trying to create installation media

Postby phenest » 2017-04-06 20:59

mzimmers wrote:When I copied to my flash drive:

Code: Select all
 dd if= debian-8.7.1-amd64-DVD-1.iso of=/dev/sdc


and then went to the boot menu in my start-up, I saw two 16GB devices listed. I wasn't expecting this, but I tried them both. When I selected the first, I got nothing; when I selected the second, I went into a GRUB menu.

Are you referring to the EFI boot menu? It doesn't sound like it's booting the flash drive. What computer do you have?
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

Postby mzimmers » 2017-04-07 00:38

Thanks for all the responses. I now have a flash drive that I can boot from and get into rescue mode, which was the goal.

I'd still like to figure out why I can't burn on my DVD drive, though, so if anyone has any ideas, I'd love to hear them. I'm thinking there must be an entry in a configuration file that needs to be changed, but I'm still too new to admin stuff to know which it might be.

Thanks again.
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby mzimmers » 2017-04-14 15:11

BTT.

I tried K3b to see if the problem was in brasero. In an attempt to burn an ISO DVD, I got this message:

Burned media
-----------------------
DVD+R

Devices
-----------------------
MATSHITA BD-MLT UJ265 1.00 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, BD-ROM, BD-R, BD-RE, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW, BD-ROM, BD-R Sequential (SRM), BD-R Random (RRM), BD-RE] [SAO, TAO, RAW, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite, Random Recording, Sequential Recording, Sequential Recording + POW] [%7]

System
-----------------------
K3b Version: 2.0.2
KDE Version: 4.14.2
QT Version: 4.8.6
Kernel: 3.16.0-4-amd64

Used versions
-----------------------
growisofs: 7.1

growisofs
-----------------------
Executing 'builtin_dd if=/dev/fd/0 of=/dev/sr0 obs=32k seek=0'
/dev/sr0: "Current Write Speed" is 4.1x1352KBps.
1343488/3998007296 ( 0.0%) @0.0x, remaining 198:19 RBU 100.0% UBU 2.4%
1343488/3998007296 ( 0.0%) @0.0x, remaining 347:03 RBU 100.0% UBU 100.0%
1343488/3998007296 ( 0.0%) @0.0x, remaining 545:23 RBU 100.0% UBU 100.0%
1343488/3998007296 ( 0.0%) @0.0x, remaining 694:07 RBU 100.0% UBU 100.0%
1343488/3998007296 ( 0.0%) @0.0x, remaining 842:52 RBU 100.0% UBU 100.0%
1343488/3998007296 ( 0.0%) @0.0x, remaining 1041:11 RBU 100.0% UBU 100.0%
:-[ WRITE@LBA=290h failed with SK=3h/POWER CALIBRATION AREA ERROR]: Input/output error
:-( write failed: Input/output error
/dev/sr0: flushing cache
/dev/sr0: closing track
:-[ CLOSE TRACK failed with SK=3h/POWER CALIBRATION AREA ERROR]: Input/output error
/dev/sr0: closing disc
:-[ CLOSE DISC failed with SK=3h/POWER CALIBRATION AREA ERROR]: Input/output error

growisofs command:
-----------------------
/usr/bin/growisofs -Z /dev/sr0=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=4gms -use-the-force-luke=tracksize:1952152 -use-the-force-luke=dao:1952152 -dvd-compat -speed=4 -use-the-force-luke=bufsize:32m


Any ideas? Thanks...
mzimmers
 
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

Postby phenest » 2017-04-14 17:55

Ok. Lets start with some basic questions:

1. When was the last time you burnt any kind of data with that drive?
2. As you're a Windows user too, did it work ok in Windows?
3. Does it read discs ok? CD's & DVD's?
4. Does it only happen with burning ISO's? What about burning music, videos, plain data discs?
5. Are you using Debian Stable or Testing? Does it happen with both?
6. What make/model of drive is it? And how old is the drive?
7. Can you provide the relevant parts of dmesg where it mentions /dev/sr0, particularly at startup?
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

Postby dasein » 2017-04-14 23:08

I'd add one more question to the list...

8. What kind of media are you using in the failed burn(s)?
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable