Having difficulty mounting devices in Slackware 12.1
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Having difficulty mounting devices in Slackware 12.1
Hi! I thought I was starting to get the hang of Linux but it seems I may have been a little too eager to take off my "Linux Noob" nametag.
I've used SuSE before, and played around with Knoppix for a while, but eventually I discovered Zenwalk and really fell in love with Linux after that.
So... for my brand new computer, I was eager to have Linux up and running, and so after doing a little research, I thought I was ready for Slackware 12.1. Famous last words, right?
Actually installing went fairly smoothly. Slackware didn't have any problem finding my DVD-RW during installation, but I am at a loss as to how to manage to mount the device, either from the console OR while in XFCE. I've tried Googling for info, which seemed pretty straight forward, even editing the /etc/fstab didn't sound like too difficult of a job, but I'm just having no luck.
Slackware called my DVD-RW /dev/sr0 during the install. Does this mean anything specific?
If you run `dmesg | less` you should be able to find a line for your DVD-RW drive and see what it is recognized as. For example, mine shows up as the following:
Code:
hda: Optiarc DVD RW AD-7170A, ATAPI CD/DVD-ROM drive
From that line I can see that it is recognized as hda -- and therefore to mount it I would need to specify /dev/hda. If you want to list almost all possible locations for CD/DVD/hard drives, you could always use `ls /dev/hd* /dev/sd* /dev/sr*`, but that's more difficult to interpret than dmesg output. To mount the drive, try the following in a terminal, as root:
Code:
# mkdir /mnt/dvd
# mount /dev/hda /mnt/dvd
# cd /mnt/dvd
That should allow you to browse the contents of the DVD (note that you should replace /dev/hda with whatever your drive is recognized as). Type `umount /dev/hda` as root to unmount the drive. XFCE also includes an automounting utility that makes use of HAL. To use that (so you can mount the drive as a normal user instead of root, and so you can mount it graphically instead of using the above command), you need to be part of the cdrom and plugdev groups (you should also be a member of the audio and video groups for other reasons). To add yourself to those groups, use the following command as root for each group listed above:
Code:
# gpasswd -a username groupname
You may have to restart for the changes to take effect (or at least log out and log back in). Then try using XFCE's automounting tools to mount the drive as a normal user, and without the need for the command-line.
Note that you don't have to specify the DVD drive in /etc/fstab, but you can if you want the drive to be mounted consistently in the same spot. The permissions must be set properly if you specify the drive in fstab, or else HAL will not let your normal user mount the drive (HAL respects the information in /etc/fstab).
also, you can mount easily from the console using pmount. It comes with pmount-hal, which will basically do the same thing from the command line that using HAL with KDE's/Xfce's automount from the GUI will do. This also requires you to be a part of the plugdev group.
if you have time, onebuck's answer may need sticky status?
When a new user is added, if the box admin is paying any attention and reads the note that comes up, all they have to do is arrow down to populate these additional groups.
T3slider's advice was right on. After a few minutes of careful tweaking, I am able to mount both my dvd-rw and my floppy drive from both the command line and from XFCE. Yay!
However, I did run into a couple of snags:
* I am having no trouble viewing the contents of data cds, but audio CDs seem to be a different story. When I attempt to mount with an audio disc I get
Quote:
mount: /dev/sr0: can't read superblock
*EDIT* Whoops! Just figured out you don't actually mount audio CDs Looks like this problem can be fixed with a little Audacious tweaking.
* The other quirk I seem to find is that while automounting seems to run smoothly, if I hit the eject button on the drive, it pops up an error saying it "failed to eject" due to not being a volume or drive. Weird. I am able to manually umount from terminal, which isn't so bad.
Looks OK to me, but you could just test it out using a CD (and/or DVD) to make sure it mounts to the correct place when you pop in a CD/DVD. I don't know if the symlinks in /dev will last a reboot or not -- that is something you'd have to figure out (or wait for someone else to answer). You could always just use the real device names in fstab instead of symlinking if they don't survive a reboot. If you *really* want them to work but they don't survive a reboot (again, not sure if they do or don't), you'd have to add a rule in /etc/udev/rules.d/.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.