LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cd rom drive not able to open up files on my cd (https://www.linuxquestions.org/questions/slackware-14/cd-rom-drive-not-able-to-open-up-files-on-my-cd-680763/)

vitalstrike82 11-03-2008 02:12 AM

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

Nylex 11-03-2008 02:43 AM

Quote:

Originally Posted by vitalstrike82 (Post 3329793)
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.

tommcd 11-03-2008 05:26 AM

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.

vitalstrike82 11-03-2008 08:35 AM

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

onebuck 11-03-2008 10:39 AM

Hi,

You need to add your user to the 'plugdev' group.

allend 11-04-2008 06:30 AM

Are you sure that the CD drive is /dev/hda? /dev/hdc would be more usual.

vitalstrike82 11-04-2008 08:16 AM

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

vitalstrike82 11-04-2008 08:29 AM

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

dugan 11-04-2008 09:08 AM

Code:

cat /etc/mtab
should show you your mounted drives, including the CD-Rom.

onebuck 11-04-2008 09:12 AM

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.



All times are GMT -5. The time now is 01:06 PM.