Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Mucker on April 19, 2004, 08:56:19 PM
-
How the hell do you get linux to recognise a cd in the drive.
I`ve followed the easy guide, open a shell, the type, mount/cdrom
But all it says back to me is... no such file or directory.
Both cd & dvd roms are recognised on boot up, as are all other peripherals and ports..
Roll on O.S.4.0 :pissed:
-
I haven't a clue myself, but the folks over at the A1 dev lists can probably help you.
Have you specified a mount point? Something in /mnt/cdrom ?
Not sure what I'm talking about here...
Also, what Linux distro are you using? I was ready to utterly destroy Debian until I switched to YDL, which I merely strongly dislike.
And yes, roll on OS4. Linux will not be staying on my hard drive 10 minutes beyond the arrival of the prerelease CD. The only reason I'd consider keeping it would be for MOL - Hopefully someone can put together an install CD with a base Linux install that boots straight into MOL. Or better yet, turn it into MOA.
-
To use mount /cdrom, a proper entry must be in fstab. If it's not there, or points to the wrong device, it won't work.
Try something like:
mount -t iso9660 /dev/hdb /cdrom
(where hdb is the 2nd channel of the first ide slot, change if necessary)
If that works, then you can permenently add it to dfstab and even set it to auto mount.
Edit: Some corrections.
And "mkdir /cdrom" if this path doesn't exist!
-
the command has to be mount /cdrom, make sure there is a space between mount and /cdrom. Also make sure that the cdrom is pointing to the cdrom device in /etc/fstab
-
this is the exact line in my fstab (i've added the "..." to keep the parts separated in this post):
/dev/cdrom..../mnt/cdrom....iso9660 noauto,owner,kudzu,ro 0 0
mnt/ is where I keep my mount points.
I am using red hat8. my friend did this so i can't say for sure what all that stuff means (and it was a year ago so i forget the details now).
-
Firstly there is the device the kernel recognises the CDROM as, which will depend on where it is on the IDE cables, e.g. as said if it is 2nd on the 1st cable it will be /dev/hdb, if it is 1st on the 2nd cable /dev/hdc and so on. To find out you can check the output of dmesg to see what devices have been picked up at boot time:
dmesg | grep -i CD
should show you how the CDROM was picked up in amongst the lines returned. Note - if it is a CD writer rather than a CDROM drive and you use hdx=ide-scsi as a kernel parameter, the IDE device, say /dev/hdc will map to a "pretend" SCSI device like /dev/sr0 so the latter is the one you should use (this should have shown up in the output above too).
I don't know whether the link is /cdrom or /dev/cdrom on AmigaOne but in Redhat and Suse there are symbolic links setup to give "friendlier" names to the devices above, so if you do
ls -l /dev/cdrom or
ls -l /cdrom
depending on which one relates to AmigaOnes you will see if this actually points to the device name found at boot time.
So there needs to be a line in /etc/fstab that tells linux how to mount either the real device name or (more usually) the friendlier symlink named device, such as
/dev/cdrom /mnt/cdrom auto ro,noauto,user,exec 0 0
The first part is the real device name, or name of the link to it, the second part is a directory somewhere (usually in /mnt but not necessarily, Suse uses /media) where the filesystem of the CD can be "attached" so this folder has to exist too.
If the actual device found in the first part is attached to an actual folder that exists, it should work. If there are problems from the actual device being picked up to the mounting, these will usually be (a) you have used a symlink name in fstab which currently points to the WRONG real device (or wrong name of it) or you are specifying a mount point (folder) that does not exist.
Once it all is set up so the real device is known, a symlink if used points to the right one, and the line in fstab associates this real device or symlink to an existing folder, it should work so you can set up a CD icon to your desktop which you can just click to open like any other device.
-
Just try typing in mount -o /dev/cdrom /mnt/cdrom
Usally linux will sort itself out