Find the answer to your Linux question:
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 -> ...
  1. #1
    Just 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...

  2. #2
    Just Joined! richiefrich's Avatar
    Join Date
    May 2006
    Location
    Houston
    Posts
    88
    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.

    /dev/hdd /media/cdrom0 iso9660 ro,user,noauto 0 0
    /dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0
    mount /dev/hdc
    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

  3. #3
    Just 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.

  4. #4
    Just Joined! richiefrich's Avatar
    Join Date
    May 2006
    Location
    Houston
    Posts
    88
    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?


  5. #5
    Just 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.

  6. #6
    Just Joined!
    Join Date
    Dec 2006
    Posts
    73
    This happens to me alot!
    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
    As you can see everyone has all permissions to the drive but look closer! They are links!
    Further investigation:
    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
    I'm not allowed to read or write something I OWN! so...
    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
    A simple chmod fixes it but there are two catches:
    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
    Code:
    #!/bin/bash
    chmod o+rw /dev/sr*;
    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*
    so add this line too to the shell script
    Code:
    chmod a+rw /dev/sg*;
    To put it all together:
    Code:
    #!/bin/bash
    chmod o+rw /dev/sr*;
    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.
    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:
    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
    now anyone can run that and it will change the permissions.
    Unfortunately this is the best i can come up with. Sorry :\

  7. #7
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    spockette:

    1.
    Results 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
    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 fault

    2.
    add yourself to the cdrom group and set the permissions rw for the group
    usermod -G cdrom your_user_name
    chmod 660 /dev/hdc /dev/hdd
    3.
    add udf file system to known filesystems , edit your fstab entry,
    /dev/hdc /media/cdrom iso9660,udf ro,user,noauto 0 0
    4.
    you can't mount an audio cd and it unnecessary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •