LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mounting DVD to a CDR/DVD combo drive (https://www.linuxquestions.org/questions/slackware-14/mounting-dvd-to-a-cdr-dvd-combo-drive-317055/)

f34r7h1s 04-25-2005 03:42 PM

Mounting DVD to a CDR/DVD combo drive
 
Hello
I recently made the jump from Drake10.1 to Slackware10.1. Now I have solved most of the problems, networking, scroll wheel, sound. However, i was wondering if somone could help me with this problem.

As root I can mount a cdrom in /dev/cdrom/ to /mnt/cdrom/ but i cant mount a dvd it says no median found. Now its a DVD/CDwriter Combo drive. and with other distros (FC3 and Drake10.1) It read and burned dvds with no problem... I know its probably a config file somewhere but if Anyone could help me out that would be awesome thanks.

update:

Ohh and I have a USB flash drive i want to mount too.. If anyone could help me with that too.. (BTW, the reason its kinda important is i have a lab writup thats due tomorrow on it and i have to finish it tonight its on both [newer version is on the flash card])

gbonvehi 04-25-2005 04:34 PM

For the DVD, try: mount -t udf /dev/cdrom /mnt/cdrom
For the USB Flash card, take a look at dmesg if you can spot where it's assigned when you plug it (should be /dev/sda) and then mount it.

f34r7h1s 04-25-2005 05:00 PM

USB works.. (Lab not on it :( )
This is the output for the DVD thing...

root@foo:/home/tperry# mount -t udf /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: No medium found
root@foo:/home/tperry#


# cat /etc/fstab

/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/hda6 /usr ext2 defaults 1 2
/dev/hda7 /opt ext2 defaults 1 2
/dev/hda8 /home ext2 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660,udf noauto,owner,ro 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



# dmesg | grep sd

Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 492544 512-byte hdwr sectors (252 MB)
sda: Write Protect is off
sda: sda1
SCSI device sda: 492544 512-byte hdwr sectors (252 MB)
sda: Write Protect is off
sda: sda1
VFS: Can't find ext3 filesystem on dev sd(8,0).
UMSDOS: msdos_read_super failed, mount aborted.



# dmesg | greb hd


bash: greb: command not found
root@foo:/mnt# dmesg | grep hd
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
SCSI device sda: 492544 512-byte hdwr sectors (252 MB)
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
SCSI device sda: 492544 512-byte hdwr sectors (252 MB)
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
ATAPI device hdb:
ATAPI device hdb:
ATAPI device hdb:



# dmesg | grep cdrom


SJCD: Sanyo CDR-H94A cdrom driver version 1.7.
cm206 cdrom driver $Revision: 1.5 $ can't find adapter!
SJCD: Sanyo CDR-H94A cdrom driver version 1.7.
cm206 cdrom driver $Revision: 1.5 $ can't find adapter!
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.



that is the output of some of the comands i learned today
thank you again to anyone else who responds...


detpenguin 04-25-2005 10:54 PM

for the cdrom/dvd, edit the fstab line
Code:

/dev/cdrom /mnt/cdrom iso9660,udf noauto,owner,ro 0 0
from owner to user, like this...
Code:

/dev/cdrom /mnt/cdrom iso9660,udf noauto,user,ro 0 0
reboot and by doing that it will give you access as a user....

then open a terminal, su to root and create this link:

ln -sf /dev/cdrom /dev/dvd

that should get you up and accessing your dvd


Berto 04-26-2005 11:12 AM

Beware! When mounting a USB drive MAKE SURE to mount it with the -t vfat option or else you'll mount it as an msdos partition and fck up your files by truncating them.

f34r7h1s 04-26-2005 11:44 AM

I added this to my fstab:


/dev/sda1 /home/tperry/Desktop/Flash_Drive/ auto noauto,user,rw 0 0

and it seams to mount fine.. i did take it out and put it back into a windows acomputer (havent configured cups yet to print) and the windows
computer read the file with out problem.. I guess i dont know what trunkating is, and where would i put that command? in fstab our would i have to do it every time i mounted?


as far as the dvd thing goes. Still no luck.

I did the ln -sf /dev/cdrom /dev/dvd and it seemed to work
Changed the fstab as instructed but when i mount /dev/cdrom i get the same error and when i mount /dev/dvd it says:

mount: can't find /dev/hdb in /etc/fstab or /etc/mtab


and to to further clarify im only trying to access a data dvd, (can access a data cd) havent tried movie dvd or music cd.

thank you again

f34r7h1s 04-26-2005 11:51 AM

Oh and while im talking to such smart people reall quick questions: How do i shut down? Log out of x, logout as user login as root and "Shutdown -h now" is what i have been doing. is there an easier way?

keefaz 04-26-2005 11:57 AM

what is the output with :
ls -l /dev/cdrom

Did you try add ide-cd in kernel parameter line in lilo.conf ?
(I know it is setting for burning but in case...)

f34r7h1s 04-26-2005 02:03 PM

Quote:

Originally posted by keefaz
what is the output with :
ls -l /dev/cdrom

# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 2005-04-25 12:29 /dev/cdrom -> /dev/hdb


this is my lilo.conf file ... where do i put that?

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 30
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
# Linux bootable partition config ends
root@foo:/home/tperry#

keefaz 04-26-2005 02:09 PM

I don't know well lilo but you could add :
append="hdb=ide-cd"

Just after the line "read-only" but this is for 2.6 kernels (type uname -r)
if you have a 2.4 kernel, add instead :
append="hdb=ide-scsi"

run /sbin/lilo to take the change in account

f34r7h1s 04-26-2005 02:28 PM

I changed Lilo to look like this
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
append="hdb=ide-cd" <<< adding that
# Linux bootable partition config ends



so ran lilo.....
# lilo
Added Linux *
#

restarted (Im getting a message when i shut down saying something like "Inturupt handler not syncing" or something like that and it kinda hangs there (after it does the shutdown sequence ) i use " Shudown -h now" to restart... donno

this is what happens if i try to mount now
using the default kernel from slackware 10.1 (pretty sure its 2.4)

Could not mount device.
The reported error was:
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


ProtoformX 04-26-2005 03:44 PM

Change your fstab to read /dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0

This allows mount to deside what is it is, do not do this for your USB device.

f34r7h1s 04-26-2005 04:05 PM

Sorry did that and same thing ... "No Medium found" I have no clue.. I can mount cds fine...

And any reason as to why not do that for the USB? device?

buaku 04-26-2005 06:26 PM

Quote:

Originally posted by f34r7h1s
Oh and while im talking to such smart people reall quick questions: How do i shut down? Log out of x, logout as user login as root and "Shutdown -h now" is what i have been doing. is there an easier way?
To shutdown the machine, su to root and do an "init 0". Do an "init 6" to reboot.

f34r7h1s 04-26-2005 07:12 PM

Ok... Well I have tried all the steps above, reported (im pretty sure at least) all of the outcomes. Still back where I started...


Again the problem is as follows:
I can read cds, but when I try to mount dvd it says "No medium found"

Donno what else to do...
Thank you all who have helped sofar and all who will respond further


All times are GMT -5. The time now is 12:56 AM.