Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

errors trying to create installation media

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
mzimmers
Posts: 86
Joined: 2016-12-11 23:49

errors trying to create installation media

#1 Post by mzimmers »

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

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: errors trying to create installation media

#2 Post by Dai_trying »

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

mzimmers
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

#3 Post by mzimmers »

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.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: errors trying to create installation media

#4 Post by Dai_trying »

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.

mzimmers
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

#5 Post by mzimmers »

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.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: errors trying to create installation media

#6 Post by Dai_trying »

Are you using your DVD drive as a flash drive?

mzimmers
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

#7 Post by mzimmers »

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?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: errors trying to create installation media

#8 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: errors trying to create installation media

#9 Post by Head_on_a_Stick »

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
deadbang

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: errors trying to create installation media

#10 Post by Dai_trying »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

#11 Post by phenest »

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?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

mzimmers
Posts: 86
Joined: 2016-12-11 23:49

Re: errors trying to create installation media

#12 Post by mzimmers »

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

#13 Post by mzimmers »

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

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

#14 Post by phenest »

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?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: errors trying to create installation media

#15 Post by dasein »

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

8. What kind of media are you using in the failed burn(s)?

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: errors trying to create installation media

#16 Post by None1975 »

mzimmers wrote: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.
I think, it is buggy software (i mean Brasero). The same error i got, when trying burning dvd with xfburn. You can try cli program "growisofs". Here the short tutorial for using it https://community.linuxmint.com/tutorial/view/1089.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

#17 Post by phenest »

None1975 wrote:I think, it is buggy software (i mean Brasero). The same error i got, when trying burning dvd with xfburn.
I'm using Brasero on Debian Stretch, and I've written lots of discs recently with different data types and different disc sizes. Without error. What error did you get?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: errors trying to create installation media

#18 Post by None1975 »

phenest wrote:I'm using Brasero on Debian Stretch, and I've written lots of discs recently with different data types and different disc sizes. Without error. What error did you get?
Same, as topic starter.

Code: Select all

[ 2304.242117] isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
Also, the same bug in xfburn. By the way, i am on Debian 8.7 lxde.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: errors trying to create installation media

#19 Post by phenest »

None1975 wrote:
phenest wrote:I'm using Brasero on Debian Stretch
Also, the same bug in xfburn. By the way, i am on Debian 8.7 lxde.
I never had problems with Brasero in Debian 8.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1389
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 66 times

Re: errors trying to create installation media

#20 Post by None1975 »

phenest wrote:
None1975 wrote:
phenest wrote:I'm using Brasero on Debian Stretch
Also, the same bug in xfburn. By the way, i am on Debian 8.7 lxde.
I never had problems with Brasero in Debian 8.
I'm glad, that you never had problems with Brasero. But i have....
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

Post Reply