LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting a DVD-RW drive to create an ISO image (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-dvd-rw-drive-to-create-an-iso-image-4175486936/)

crazymonkie 12-05-2013 03:06 AM

Mounting a DVD-RW drive to create an ISO image
 
Hello everyone! I'm a VERY new user to Linux and all *nix systems. I chose Slackware and it runs great, but I have stumbling blocks like the subject line here.

I apologize in advance; I know this question has been asked A LOT, but my aim is to mount my Lenovo IdeaCentre B-series internal DVD-RW drive so I can write ISOs to multi-session DVDs. I'm running Slackware 14.1, which I upgraded twice- the first time I'd picked an SMP kernel, didn't properly blacklist some things and relied too much on slackpkg, causing my Lilo config to get messed up and having an unbootable portion to my computer (I've got a dual-boot Win 7/Slack system.... I like to keep what little I need in Windows separate from Linux). Second time I simply kept the default kernel and updated with slackpkg....that worked fine. That's kind of incidental, more explaining where I am right now. New, basically. Very new.

Ok, so, what I've done so far: I've been using cdrecord because the second time I installed Slackware, I didn't put in any of the KDE-related packages. So no k3d for me. I'm PRETTY sure I have blanked the DVD-RW because it doesn't show up automatically anymore. Either that or I've messed up my /etc/fstab file. Also a possibility.

For reference, my /etc/fstab looks like this:

Code:

/dev/sda7        swap            swap        defaults        0  0
/dev/sda5        /                ext4        defaults        1  1
/dev/sda6        /home            ext4        defaults        1  2
/dev/sda1        /fat-c          ntfs-3g    fmask=177,dmask=077 1  0
/dev/sda2        /fat-d          ntfs-3g    fmask=177,dmask=077 1  0
/dev/cdrom      /mnt/cdrom      iso9660      user,auto,exec  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0

I've searched high and low for the solution to my problem, but I keep getting stuck in one spot. What I thought I was supposed to do was type
# mount /dev/cdrom /mnt/cdrom
but when I do, I get the error
Code:

mount: /dev/sr0: can't read superblock
And then, of course, I run dmesg | tail, which comes up with this:
Code:

[  514.606336] EXT4-fs (sr0): unable to read superblock
[  514.718081] sr 0:0:0:0: [sr0]
[  514.718086] Result: hostbyte=0x00 driverbyte=0x08
[  514.718087] sr 0:0:0:0: [sr0]
[  514.718088] Sense Key : 0x5 [current]
[  514.718091] sr 0:0:0:0: [sr0]
[  514.718092] ASC=0x21 ASCQ=0x0
[  514.718093] sr 0:0:0:0: [sr0] CDB:
[  514.718094] cdb[0]=0x28: 28 00 00 00 00 00 00 00 01 00
[  514.718124] FAT-fs (sr0): unable to read boot sector

At this point, I'm stumped (again- newbie!) I'd really appreciate some help. Oh, and I do also apologize for the fact that I didn't post the specific technical specs on my computer. I wrote the information down somewhere, but lost the paper. I'm constantly drowning in paper, so that's my little personal problem. Thanks to everyone ahead of time!

astrogeek 12-05-2013 03:19 AM

If you are trying to write a CD/DVD then you do not mount it - there is no filesystem on it to mount.

If you are writing a multi-session CD from ISOs then try something like this (But see the man page first...)

Find the device with cdrecord -scanbus, then:

First session...

cdrecord -dev=0,2,0 -data -multi speed=2 -dummy iso-filename
(remove -dummy to write it)

Second session.....

cdrecord -msinfo dev=0,2,0... returns something like....
0,26138

mkisofs -C 0,26138 -M 2,0 -o iso-image-filename.iso -r directory-list

cdrecord -multi -data dev=0,2,0 -dummy iso-image-filename.iso

For a DVD use growisofs instead of cd record (again see man page), something like...

growisofs -dvd-compat -Z /dev/sr0=name-of-iso.iso

crazymonkie 12-05-2013 05:47 PM

Thanks for the reply! I'm basically trying to write ISOs (specifically slacko puppy and tinycore, maybe more later) TO the blank DVDs I have so I can test run them and use them like they're intended to be used- as mobile and very small operating systems. I want the DVDs to be multi session so I can save the state of the OSes.

I'll try out what you suggested and tell you how it goes.


All times are GMT -5. The time now is 05:15 AM.