On Fri, Nov 22, 2019 at 03:04:36PM +0100, Christopher Gregory via blfs-support 
wrote:
> Hello,
> 
> It seems that this install is faulty.  I have just discovered that my working 
> dvd rom drive will not burn dvd's.  I have tried all that are in the book, 
> and sg3 can not detect an optical drive, Brasero keeps saying to insert a 
> supported type.
> 
> Upon looking in /dev there is no /dev/sr0 listed.  I have no idea how to 
> solve these issues.  The dvd drive is working correctly.  I have followed the 
> book instructions to the letter, as always.  The only difference is that I 
> have switched to using lvm2 and am booting from an initramfs.  Do I have to 
> destroy everything yet again because no one is willing to assist, or is 
> unable to?
> 
> Christopher.

Christopher,

for that last sentence you should assume that people are unable to
help (although since you've only just asked, perhaps someone will
have suggestions, in fact it turns out that I do).

Please remember two things: very few people reply to this list (I
suspect some subscribers only look at it intermittently) and we are
all different both in what we build and in what we do.

Destroying everything is a serious step and one you should not rush
into.

I had a gurgle for /dev/sr0 LVM but nothing relevant, or indeed
useful, seemed to be in the first results - maybe yet another case
where I don't know what keywords might be useful.  But looking at my
own buildscripts in git, I found a reference to /dev/sr0.  I create
various udev rules, one of those apparently creates
60-cdrom_id.rules.  I think I burned a CD in the last 3 months (i.e.
using 9.0 sysv), and certainly on the machine I'm currently using
/dev/sr0 exists :

ken@deluxe /sources/scripts/lfs-dev/git $ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Nov 20 22:46 /dev/sr0

This is from 2013, so unrelated to recent changes - but if your
/dev/sr0 has gone missing then it might help.  Oh, no, I see that
I'm merely extending /dev/sr0 to have an extra /dev/dvd symlink,
whereas you /dev/sr0 has apparently dematerialised. But please
read what I wrote below this.

# using /dev/sr0 - systemd has broken the dvd symlink, this sed is based on an
# openSUSE patch
echo "adding dvd symlink for /dev/sr0" >>$KM_LOG
sed -i '/SYMLINK.*cdrom/ a\
 KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd", 
OPTIONS+="link_priority=-100"' \
  /lib/udev/rules.d/60-cdrom_id.rules

I vaguely recall (when I burned CDs rather more often) that from
time to time I've had to create a node.  For testing, I guess
that you could try mknod, a quick skim of the manual suggests the
command *might* be

# mknod /dev/sr0 b 11 0

followed by chmod and chown, and then symlink /dev/cdrom and
/dev/dvd to it.

Clearly that is just to test if it solves the problem - if it does,
the node created by mknod will need to be recreated on reboot (which
is what the full udev rule is supposed to do).

Hmm, I suppose it is possible that your /dev/ was created from the
initrd and not updated by the booted LFS - in that case you would
need to have /dev/sr0 in the initrd.  But I know next to nothing
about initrds.

ĸen
-- 
Whilst all mushrooms are edible, the trick is to eat only those which
will prove to be edible more than once. The Celebrated Discworld Almanak
recommends you play safe and eat beans on toast.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to