LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-21-2008, 06:14 PM   #1
Trystan28
LQ Newbie
 
Registered: May 2008
Location: Massachusetts
Distribution: Slackware 12.1
Posts: 2

Rep: Reputation: 0
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?
 
Old 05-21-2008, 07:51 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
being creative I think it means scsi recording device....I have the same style of hw and device.

It appears slackware does not automatically add your local user names to groups like audio plugdev video etc so add those groups to your local name.

2) I always like to amend /etc/fstab to show users in lieu of user as well
 
Old 05-21-2008, 07:57 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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).
 
Old 05-21-2008, 09:04 PM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
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.
 
Old 05-22-2008, 07:58 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

When you 'adduser' then I like to add the user to the following groups;
Code:
floppy audio video cdrom plugdev
BTW, Welcome to LQ and Slackware.
 
Old 05-22-2008, 08:50 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Mods,

if you have time, onebuck's answer may need sticky status?
 
Old 05-22-2008, 12:24 PM   #7
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by onebuck View Post
Hi,

When you 'adduser' then I like to add the user to the following groups;
Code:
floppy audio video cdrom plugdev
BTW, Welcome to LQ and Slackware.
lp group is important for Slackware 12.1 as well (see CHANGES_AND_HINTS.TXT).

I tend to be old fashioned with su as well, so I add my admin users to group wheel and modify
/etc/suauth
Code:
root:ALL EXCEPT GROUP wheel:DENY
so that only members or group wheel can su to root.

games group is still used by some games as well.
 
Old 05-22-2008, 12:41 PM   #8
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by aus9 View Post
Mods,

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.
 
Old 05-22-2008, 01:49 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Problem is that a lot of people don't read the presentation screen. They just press enter!

Another thing is that most people don't even read the documentation that PV has provided; Announce 12.1, Slackware-Howto, CHANGES_AND_HINTS.TXT, UPGRADE.TXT. Plus the other text files relevant to their needs.

If they read the above then a lot of the issues would be minimal.
 
Old 05-22-2008, 02:05 PM   #10
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
Lightbulb

Quote:
Originally Posted by onebuck View Post
Hi,

Problem is that a lot of people don't read the presentation screen. They just press enter!

Another thing is that most people don't even read the documentation that PV has provided; Announce 12.1, Slackware-Howto, CHANGES_AND_HINTS.TXT, UPGRADE.TXT. Plus the other text files relevant to their needs.

If they read the above then a lot of the issues would be minimal.
You can lead a horse to water but you can't make it drink..........
 
Old 05-22-2008, 04:53 PM   #11
Trystan28
LQ Newbie
 
Registered: May 2008
Location: Massachusetts
Distribution: Slackware 12.1
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the responses!

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.

Last edited by Trystan28; 05-22-2008 at 05:21 PM.
 
Old 05-22-2008, 08:06 PM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
when you run strings /usr/bin/eject you will see eject works on fstab entries and in particular /dev/cdrom

so with root powers symbolic link your currect device (say) /dev/hdc (if atapi dvd)
ln -s /dev/hdc /dev/cdrom

pls check your links first tho
 
Old 06-02-2008, 09:50 PM   #13
AlphaSigmaOne
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 118

Rep: Reputation: 16
Instead of making a new thread, I figured I'd just post my question here.

I'm trying to set up my mount points and want to make sure I did it right.

I have three optical drives: DVD-RW, DVD-ROM, and a USB CD-RW.

I ran dmesg | less and found them listed as hdc, hdd, and sr0.

Then I ran a ln -s for /dev/dvd-rw, /dvd-rom, and /cd-rw respectively.

Then I mkdir for /mnt/dvd-rw etc.

Finally I edited my fstab as such:

Code:
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                ext3        defaults         1   1
/dev/hda3        /home            ext3        defaults         1   2
/dev/hdb1        /user/local      ext3        defaults         1   2
/dev/dvd-rw      /mnt/dvd-rw      iso9660     noauto,user,ro   0   0
/dev/dvd-rom     /mnt/dvd         iso9660     noauto,user,ro   0   0
/dev/cd-rw       /mnt/cd-rw       iso9660     noauto,user,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
tmpfs            /dev/shm         tmpfs       defaults         0   0
How'd I do?
 
Old 06-02-2008, 09:57 PM   #14
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by AlphaSigmaOne
How'd I do?
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/.

Last edited by T3slider; 06-02-2008 at 09:59 PM.
 
Old 06-03-2008, 07:19 AM   #15
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
This is not related to your cd/dvd, but...

Quote:
/dev/hdb1 /user/local ext3 defaults 1 2
Did you really intend that name or should that be /usr/local?


Apologies if I'm second guessing you, but it looked sort of odd and jumped out at me.

Last edited by GazL; 06-12-2011 at 04:55 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty Mounting USB Floppy Drive JasonC10203 Linux - Newbie 7 09-12-2007 09:42 PM
(auto)mounting devices in slackware w/ (or w/o) KDE crisostomo_enrico Slackware 1 08-04-2006 11:59 PM
mounting devices LQ496873 Linux From Scratch 1 03-13-2006 06:51 AM
Difficulty setting up BT Voyager 2000 Wireless on Slackware 10.0 Apocalypse King Linux - Hardware 0 09-21-2004 12:57 PM
Mounting CD-Devices evilmonkey Linux - Newbie 10 06-16-2003 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration