Results 1 to 7 of 7
First off, it does mount, occasionally. Which is completely bizarre...
I'm running Debian Sarge with the 2.6.8 kernel.
Results from ls -al /dev/cd*
... /dev/cdrom -> hdc
... /dev/cdrom1 -> ...
- 08-21-2006 #1Just Joined!
- Join Date
- Aug 2006
- Location
- Oregon
- Posts
- 5
can't mount cdrom SOMETIMES
First off, it does mount, occasionally. Which is completely bizarre...
I'm running Debian Sarge with the 2.6.8 kernel.
Results from ls -al /dev/cd*
... /dev/cdrom -> hdc
... /dev/cdrom1 -> hdd
... /dev/cdrw -> hdc
----------------------------------
Results from trying to mount all of the above (yes, there was a cd in the drive):
mount: No medium found
------------------------------
Results from trying to mount /mnt/cdrom:
mount: can't find /mnt/cdrom in /etc/fstab or /etc/mtab
---------------------------
Contents of /etc/mtab:
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /dev tmpfs rw,size=10M,mode=0755 0 0
-----------------
Contents of /etc/fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
none /sys sysfs defaults 0 0
-----------
My suspicion is that the names of the hardware don't match up somewhere, but I don't know where all to look... Please help...
- 08-21-2006 #2
I dont like to mount symlinks.. why not mount the real device?
Looks like you have two.. /dev/hdc and /dev/hdd same as I do.
FYI - incease you didnt know you cant mount audio CD's
So with that said you can have them automount if you want..
ivman and pmount will do that. Or just mount them manually.
mount /dev/hdc/dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
mount /dev/hdd
there in your fstab .. unless you wanna change the fstab to say
/dev/cdrom1 /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/cdrom /media/cdrom iso9660 ro,user,noauto 0 0
then you can mount them by
mount /mnt/cdrom
mount /mnt/cdrom0
hope that help you
- 08-21-2006 #3Just Joined!
- Join Date
- Aug 2006
- Location
- Oregon
- Posts
- 5
Kind of. I still can't access audio cds from external players. It is really irritating me.
- 08-22-2006 #4
ok whats the permissions on the /dev/hdc and /dev/hdd ?
ls -la /dev/hdc
ls -la /dev/hdd
please tell me what that says..
and what app are u using?
- 08-23-2006 #5Just Joined!
- Join Date
- Aug 2006
- Location
- Oregon
- Posts
- 5
brw-rw---- 1 root cdrom 22, 0 2006-08-22 11:06 /dev/hdc
brw-rw---- 1 root cdrom 22, 64 2006-08-22 11:06 /dev/hdd
Depends. I can't burn, and I can't just play cds half of the time, sometimes XMMS works, sometimes it doesn't. K3B creates lots of lag, and I can't use nautilus for burning.
- 12-27-2006 #6Just Joined!
- Join Date
- Dec 2006
- Posts
- 73
This happens to me alot!
As you can see everyone has all permissions to the drive but look closer! They are links!Code:[root@localhost zakaqere]# ls -al /dev/cd* lrwxrwxrwx 1 root root 3 Dec 27 06:33 /dev/cdrom -> sr0 lrwxrwxrwx 1 root root 3 Dec 27 06:33 /dev/cdrom0 -> sr0 lrwxrwxrwx 1 root root 3 Dec 27 06:33 /dev/cdrw -> sr0 lrwxrwxrwx 1 root root 3 Dec 27 06:33 /dev/cdrw0 -> sr0
Further investigation:
I'm not allowed to read or write something I OWN! so...Code:[root@localhost zakaqere]# ls -al /dev/sr* brw------- 1 zakaqere cdrom 11, 0 Dec 27 06:33 /dev/sr0 brw------- 1 root root 11, 1 Dec 27 06:33 /dev/sr1
A simple chmod fixes it but there are two catches:Code:[root@localhost zakaqere]# chmod o+rw /dev/sr* [root@localhost zakaqere]# ls -al /dev/sr* brw----rw- 1 zakaqere cdrom 11, 0 Dec 27 06:33 /dev/sr0 brw------- 1 root root 11, 1 Dec 27 06:33 /dev/sr1
1) Since you own the cd/dvd or w/e on the terminal you are logged in as you dont have to be root, you can be yourself to chmod it.
2)You have to do this EVERY time you restart the machine.
So if you could make a program run every time you log in: use this sell script
That will enable you to read from the cdrom but! The there are different devices for the cd burner even though thay are the same physical one.(If you have a SCSI emulated drive. /dev/sg*Code:#!/bin/bash chmod o+rw /dev/sr*;
so add this line too to the shell script
To put it all together:Code:chmod a+rw /dev/sg*;
Ok I tested it and it works but for CD-Burning (sg*) they are owned by root. So you must run it as root.Code:#!/bin/bash chmod o+rw /dev/sr*; chmod a+rw /dev/sg*;
This however would open a security hole as anyone could rsh to your terminal as nobody and read what's in the drive!
To run it as root first:
now anyone can run that and it will change the permissions.Code:[zakaqere@localhost ~]$su password: [root@localhost ~]#cp cdperm-sh /bin [root@localhost ~]#chown root /bin/cdperm-sh [root@localhost ~]#chmod u+sx /bin/cdperm-sh [root@localhost ~]#exit exit [zakaqere@localhost ~]cdperm-sh
Unfortunately this is the best i can come up with. Sorry :\
- 12-27-2006 #7Linux User
- Join Date
- Feb 2006
- Posts
- 484
spockette:
1.
there is the problem you tried mount the cdrom using the mount point as identifier but you wrote to the fstab /media/cdrom and tried mount /mnt/cdrom , naturally it cause faultResults from trying to mount /mnt/cdrom:
mount: can't find /mnt/cdrom in /etc/fstab or /etc/mtab
/dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
2.
add yourself to the cdrom group and set the permissions rw for the group
3.usermod -G cdrom your_user_name
chmod 660 /dev/hdc /dev/hdd
add udf file system to known filesystems , edit your fstab entry,
4./dev/hdc /media/cdrom iso9660,udf ro,user,noauto 0 0
you can't mount an audio cd and it unnecessary


Reply With Quote
