-
mounting hell
Ok... long story short im new to linux and having problems mounting the cdrom drive
dev/hda2 /ext3 defaults 0 1
proc /proc proc defaults 0 0
/dev/fdo/floppy auto user,noauto 00
/dev/cdrom/cdrom auto ro,user,noauto 00
Thats the result of doing a
I was told this doesnt have any mountpoints? (no real understanding of what this means :confused: )
Now when I do a
it says special device does not exist :rolleyes:
So I tried to create the dir /mnt/cdrom and then do it, it said the device was allready mounted or in use. When I deleted the (still empty) dir and tried to mount it again I got the 'special device does not exist'
Thanks in advance for any suggestions.
-
First, make sure that the file /dev/cdrom exists.
Code:
rcgreen@blue:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 2005-10-24 11:35 /dev/cdrom -> /dev/hdc
On my system, it is a symbolic link pointing to the actual device file /dev/hdc.
Sometimes, your install process won't set up this link for you.
Do man ln to get the command for creating the link.
Code:
rcgreen@blue:~$ cat /etc/fstab
/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
/dev/dvd /mnt/dvd auto noauto,user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
The left entry /dev/cdrom is the device.
The next entry /mnt/cdrom is the mount point.
:cool:
-
Thats the best answer ive got from all of four forums Ive tried.
Thanks alot and ill be swapping over to linux partition now...
-
Right a step in the right direction I think...
I did a
Code:
ln -s /mnt/cdrom /dev/cdrom
(I wasnt sure if this was right)
/mnt/cdrom was still empty so i tried to mount it again
This time it said '/dev/cdrom/ is not a block device'
I did a and the cdrom part now shows
'/dev/cdrom /cdrom auto ro etc...
so there is now a mount point but I dont think its quite right? Oh well looks like a step in the right direction.
-
what distro are you using man? Most don't make you mount it by itself anymore.
Reply with the distro you're using as a much easier way usually exists depending on what you're using.
-
its phlak
www.phlak.org if that helps at all
-
OK, mounting always seems strange to new people, but take the advice already given, and try this too:
man mount
Read the man page for it as that's going to really help you. On most boxes I have here, if it's not mounted already, I usually just type:
mount /dev/cdrom
Sometimes it's /dev/hdc though too.
-
Well ive followed the advice and posted the results from them, simple mount /dev/cdrom gives the error message 'special device does not exist' ill try hdc although im sure I have before...
-
hhmm...
/dev/hdc allready exits. Im not sure what this means :confused:
any more ideas about 'is not a block device' ?
-
A block device is a drive. To mount a drive, you mount the block device file
that represents that drive. The device files are all located in the /dev directory.
Obviously, you only need to concern yourself with the ones that correspond
to equipment you have installed.
- /dev/hda is the primary master ide drive
- /dev/hdb is the primary slave
- /dev/hdc is the secondary master
- /dev/hdd is the secondary slave
If your cdrom drive is like mine, master on the second ide channel, it would be
/dev/hdc. As a convenience, there is a symbolic link, also in /dev, and it points
to the device file that represents the cdrom drive.
So, if /dev/cdrom didn't exist, you would issue the command
Code:
ln -s /dev/hdc /dev/cdrom
..or hdb or hdd or whatever your drive is.
The other thing that needs to exist is a directory where it will be mounted.
/mnt/cdrom is the most common, and should already exist.
So the link you created wasn't correct.
Code:
rcgreen@blue:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 2005-10-24 11:35 /dev/cdrom -> /dev/hdc
:cool: