LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-03-2008, 02:12 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
cd rom drive not able to open up files on my cd


Hi,
after installing slackware 12.1, i not able to access my files on my cd from my cd rom drive.

My question is what can i do to access the files on my cd?
My cd rom drive after input the fdisk command show /dev/hda.

I try to use the terminal to manually mount, but it say not able to mount a drive to file.

Mmm.. how to i tackle this cd rom drive problem?

thanks
 
Old 11-03-2008, 02:43 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by vitalstrike82 View Post
I try to use the terminal to manually mount, but it say not able to mount a drive to file.
Please post the exact command you're using and the exact error message.
 
Old 11-03-2008, 05:26 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Make sure your user name is a member of the plugdev and cdrom groups. To find out if you are, run the command groups as a normal user. It will output the groups you are a member of.
 
Old 11-03-2008, 08:35 AM   #4
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
This is the output when i type in : groups

chongming@linux:~$ groups
users floppy audio video cdrom


I type mount -0 uid=snoopy dev/hda /media/dvd

It output that /dev/hda is a device and not able to mount to file.

Thanks
 
Old 11-03-2008, 10:39 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,922
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

You need to add your user to the 'plugdev' group.
 
Old 11-04-2008, 06:30 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
Are you sure that the CD drive is /dev/hda? /dev/hdc would be more usual.
 
Old 11-04-2008, 08:16 AM   #7
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
How do i add me into the plugdev group?

i use usermod -g plugdev chongming

Next i type in groups and these are the results

Quote:
chongming@linux:~$ groups
users floppy audio video cdrom
However when i key in these commands and these are the output:

Quote:
root@linux:/home/chongming# groups chongming
plugdev
Quote:
oot@linux:/home/chongming# id chongming
uid=1000(chongming) gid=83(plugdev) groups=83(plugdev)
Am i under the plugdev group?

Thanks
 
Old 11-04-2008, 08:29 AM   #8
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Actually when i insert in my disc into the cd rom, kde will open up a new window with the path as /dev/hda.

When i manually mount using this command, mount -o uid=chongming /dev/hda /media/dvd,
i'm able to file the files in the disc at /media/dvd.

Please do let me know if my system has something wrong.

I try to see my mounted drives but i can only see the mount hard disk partitions when i use this command:
Quote:
root@linux:/home/chongming# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3932 31583758+ 7 HPFS/NTFS
/dev/sda2 3933 4063 1052257+ 82 Linux swap
/dev/sda3 4064 6674 20972857+ 83 Linux
/dev/sda4 6675 9729 24539287+ 83 Linux
What commands can i use to see if my cd rom is mounted?

Thanks
 
Old 11-04-2008, 09:08 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Code:
cat /etc/mtab
should show you your mounted drives, including the CD-Rom.

Last edited by dugan; 11-04-2008 at 09:10 AM.
 
Old 11-04-2008, 09:12 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,922
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

You should read the 'man usermod';

Code:
excerpt from 'man usermod';

 -g initial_group
              The group name or number of the user's new initial login  group.
              The  group  name  must  exist.   A group number must refer to an
              already existing group.  The default group number is 1.

       -G group,[...]
              A list of supplementary groups which the user is also  a  member
              of.   Each  group is separated from the next by a comma, with no
              intervening whitespace.  The groups  are  subject  to  the  same
              restrictions as the group given with the -g option.  If the user
              is currently a member of a group which is not listed,  the  user
              will be removed from the group
Code:
excerpt from 'man groups';
NAME
       groups - display current group names

SYNOPSIS
       groups [user]

DESCRIPTION
       groups displays the current group names or ID values. If the value does
       not have a corresponding entry in /etc/group, the value  will  be  dis-
       played  as  the numerical group value. The optional user parameter will
       display the groups for the named user.

NOTE
       Systems which do not support concurrent group sets will have the infor-
       mation  from  /etc/group  reported.   The user must use newgrp or sg to
       change their current real and effective group ID.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CD-Rom drive won't open any more when logged into FC6 ttnunam Linux - Hardware 8 05-27-2007 07:11 AM
dvd-rom drive malfunction. cdrom: open failed jgams Linux - Hardware 6 12-28-2005 01:45 AM
can't open files inside mounted usb drive NanoFxJ Linux - Hardware 2 05-19-2005 07:59 AM
It is impossible to open the zip files from floppy disk or cd rom jjay02 Linux - Distributions 1 08-11-2002 05:52 PM

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

All times are GMT -5. The time now is 05:56 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