LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount cdrom (https://www.linuxquestions.org/questions/linux-newbie-8/mount-cdrom-390558/)

Br0eTcHeN 12-08-2005 11:22 AM

mount cdrom
 
hey
i have a problem with my cdrom:
Primary Master: HDA ( Maxtor HDD )
Primary Slave: none
Secondary Master: CD-Drive
Secondary Slave: DVD-Drive (CD/DVD Burner)

i installed from the CD-ROM on Secondary Master (hdc ?)
after installing i placed another cd into the CD-ROM, and was unable to access it, it seems it like it is not mounted.

i would like to mount my cd and dvd drive automaticly but i dont know how as i am unable to mount my cd drive with "mount -t iso9660 /dev/cdrom /mnt/cdrom"
so here is my fstab file:

/dev/hda2 swap swap defaults 0 0
/dev/hda1 / ext3 defaults 1 1
/dev/hda3 /home ext3 defaults 1 2
/dev/hda4 /tmp ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto 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

i googled but i dont get it what i have to do...

( btw sry for bad english )

mfg Br0eTcHeN

anti.corp 12-08-2005 11:46 AM

Hi,

You tryed to just...

Code:

mount /dev/cdrom
That should just mount it.

Besides that...what distribution are you using?

Br0eTcHeN 12-08-2005 12:02 PM

i tried "mount /dev/cdrom" and got this :
"mount: you must specify the filesystem type"

and i am using slackware 10.2

anti.corp 12-08-2005 12:12 PM

Hi,

Try typing:

Code:

ls -l /dev/cdrom
Then post the output here.

Br0eTcHeN 12-08-2005 12:15 PM

lrwxrwxrwx 1 root root 8 2005-12-08 13:31 /dev/cdrom -> /dev/hdc

anti.corp 12-08-2005 12:19 PM

sorry i forgot...

also post the output from typing

Code:

ls -l /dev/cdrom
Then:

Code:

id

MasterC 12-08-2005 12:26 PM

Ok, seems that there are some basic mount understanding issues here, let me try to explain:

/dev/cdrom (as noted) is a symlink to /dev/hdc, your secondary master. That's great, your symlink is fine. You want to have this automatically mounted, you'll have to use something like autofs or supermount (though I am not sure supermount still exists, I think it was used on Mandrake a while back, but autofs is preferred??? ) or something along those lines. I personally am not a fan of automount, especially on Slack or something so straight forward as Slack is. I will do my commands myself instead.

So, to get to my point:
You need to either change your fstab entry for your cdrom from 'auto' in the filesystem column to 'iso9660' or you need to put that in by hand when typing it on the command line:
mount -t iso9660 /dev/cdrom /mnt/cdrom
If it's in fstab you can put it:
mount /mnt/cdrom
And it will use the iso9660 as specified in /etc/fstab

mount can guess with some discs, but since pretty much any CD you put in there (obviously not all, but it's much more common to have iso9660 on a CD) will have the iso filesystem, that's the best choice IMO to put in that space.

Good Luck!

Cool

Br0eTcHeN 12-08-2005 12:29 PM

Quote:

Originally Posted by Br0eTcHeN
lrwxrwxrwx 1 root root 8 2005-12-08 13:31 /dev/cdrom -> /dev/hdc

uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)

anti.corp 12-08-2005 12:35 PM

Quote:

Originally Posted by Br0eTcHeN
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)


'EDIT'MAsterC was clearing it out very well...

You can also use

Code:

chmod 660 /dev/hdc
To change the permissions,

Then just add your user in the diskgroup /etc/group

Then logout/login :)


All times are GMT -5. The time now is 05:26 AM.