Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am just now trying to mount and access files from a DVD in my drive and can't seem to understand why nothing is detected.
Code:
root@slackbox:~# mount -t /dev/cdrom
root@slackbox:~# cd /dev/cdrom
-bash: cd: /dev/cdrom: Not a directory
root@slackbox:~# cd /mnt/cdrom/
root@slackbox:/mnt/cdrom# ls
root@slackbox:/mnt/cdrom#
Here is a copy of my FSTAB...
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 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
/dev/sdb /mnt/usbkey vfat gid=100,mode=777,defaults,auto,rw$
none /sys sysfs defaults 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,commen$
Originally posted by carlwill I am just now trying to mount and access files from a DVD in my drive and can't seem to understand why nothing is detected.
Code:
root@slackbox:~# mount -t /dev/cdrom
root@slackbox:~# cd /dev/cdrom
-bash: cd: /dev/cdrom: Not a directory
root@slackbox:~# cd /mnt/cdrom/
root@slackbox:/mnt/cdrom# ls
root@slackbox:/mnt/cdrom#
Here is a copy of my FSTAB...
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/sda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 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
/dev/sdb /mnt/usbkey vfat gid=100,mode=777,defaults,auto,rw$
none /sys sysfs defaults 0 0
/dev/hdc /media/cdrecorder auto user,exec,noauto,commen$
The correct syntax would be mount [device] [mount directory]
that is, if your device is /dev/cdrom and the directory you want to mount it to is /mnt/cdrom, you'd type mount /dev/cdrom /mnt/cdrom
That's not necessary for items in the fstab - you only need to specify one of the two, mount point or dev node, and it will use the fstab entry to work out the other.
Sorry, I made a typo. Try 'ls -al /dev/cdrom' to see where it links to. You should see something like '-> /dev/hdc' in the ouptut. Or, if you have two optical drives, it could be /dev/hdd. On the other hand, if you have only one, I don't see why would you specify in fstab both /dev/cdrom and /dev/hdc.
If /dev/cdrom is indeed your only drive, see if this works:
Code:
mount -t iso9660 /dev/hdc /mnt/cdrecorder
ls -al /mnt/cdrecorder
And if you want to see which drive is mounted where, simply type 'mount'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.