Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Could somebody please take a look at this fstab and tell if it looks out of sorts?. I think I have something wrong here. I have a Plextor CD/RW, which I believe is cdrom1 below, and a Pioneer DVD which I believe is cdrom0 below.
/dev/dvd (Points to /dev/cdrom) Note: I put this one in to make DVD's play in Ogle. Everything else here was done by Mandrake install routines)
/dev/cdrom (Points to cdroms/cdrom0)
/dev/cdrom0 (Points to cdroms/cdrom0)
/dev/cdrom1 (Points to cdroms/cdrom1)
/dev/cdroms/cdrom0 (Points to ../IDE/host2/bus1/target1/lun0/cd)
/dev/cdroms/cdrom1 (Points to ../SCSI/host0/bus0/target6/lun0/cd)
The other oddity I can see is in hardware associations for the DVD drive (/dev/hdh)
new devfs device (ide/host0/bus3/target1/lun0/cd
This is odd to me because that is not the same association as cdrom0 above in /dev/cdroms/cdrom0
Honestly, a few words on what these associations do, how they work, how to test them, and what to change, delete, or fix here would also be appreciated. The distro is Mandrake 9.0
To me it looks like Linux thinks my DVD (hdh) is a floppy drive. .
Why? I'm not too sure what'd lead you to believe linux thinks your DVD is a floppy? Anyway, onto a bit of an explaination..
Even if linux thought your DVD was a floppy, it really wouldn't matter. Your DVD drive could be /dev/scanner for all linux cares, as long as it's pointing to the correct hardware, you can have whatever /dev entry you want.
As for what your DVD drive in your fstab is (assuming it's /dev/hdh):
I wouldn't go around deleting any /dev entries though, unless you created them and wish to change where they point to.
Your plextor is going to be /dev/scd0
At least this is the case according to your fstab
And it will mount at /mnt/cdrom
The mount point is also, not something to stress on. You can mount anything with a filesystem, anywhere you want. If you wanted to mount your CDRW (/dev/scd0) at /some/location/ then all you'd have to do is have that directory exist:
mkdir -p /some/location
Then you can mount it there instead of /mnt/cdrom
Anyway, so I hope this helps you out
If you don't understand my babbling, let me know, I will be glad to clarify anything, or give a better explaination.
First we have /mnt/cdrom tied to /dev/scd0, but the corresponding /dev association that I see for the Plextor is /dev/cdrom1, which points to cdroms/cdrom1. I would have thought the /dev entry would have been something like - /dev/cdrom which points to cdroms/cdrom. Or perhaps I am viewing these associations and their function incorrectly?
Also, /mnt/cdrom2 tied to /dev/hdh, but the corresponding /dev entry is /dev/cdrom0, which points to cdroms/cdrom0. Why not /dev/cdrom2, cdroms/cdrom2.
Basically, I don't see any /dev entry for cdrom2, why not and should there be one?
Should there be one, no not unless you want one. Again, the only important /dev entry is for the actual device itself, from there you can symlink any /dev entry you want the actual device. So let's say you want your CDRW to be your /dev/cdrom45 No problem, symlink it:
ln -s /dev/scd0 /dev/cdrom45
The actual device is the most important, from there it's just a symlink to the actual device and linux doesn't care.
As far as which directory is tied to which device, you can change that to your likings as well. If you wanted your DVD to me mounted at /mnt/cdrom6988 Then all you'd have to do is create the mount point:
Then mount the device to that directory. If you wanted this to happen everytime, you'd edit fstab to show the desired mount point.
Basically, a mount point and a device are completely seperate and have little to no relation in terms of naming. If you want though, you can easily fix that. To have your DVD (/dev/hdh) be /dev/cdrom do this:
ln -sf /dev/hdh /dev/cdrom
And you want this dev to mount at /mnt/cdrom each time, edit your /etc/fstab like so:
The main thing to see here is the /dev entries have nothing to do with the mount points on your hard drive. A mount point is any given directory, usually you would want this directory to be empty.
The /dev entries are created during bootup with DevFS On other systems not using DevFS these entries are created during the initial install with a script called MAKEDEV which creates almost every device a normal user would use, and then some.
Some distros will attempt to make the /dev entries and their corresponding mount points match up, but really this is un-necessary and is up to you if you want it that way or not since it's not required.
So, from what I gather, you'd like to have some sort of naming scheme setup like that. So here's pretty much something to sort of follow:
First, decide which device you want to be your primary cdrom, I'll show it to be your DVD drive. So:
ln -sf /dev/hdh /dev/cdrom /dev/dvd
(The /dev/dvd is required by some programs, so we will just take care of that right here for ya)
Ok, so now let's edit your /etc/fstab to have it mount at /mnt/cdrom:
Alright, now let's setup the scsi to be your secondary:
ln -sf /dev/scd0 /dev/cdrom2 /dev/cdrw /dev/cdburner
(The /dev/cdrw and /dev/cdburner are also entries that some (maybe none, but I use em ) programs use to identify your burning drive, we will just make em here for ease later on)
Now we need to edit /etc/fstab to have it mount at /mnt/cdrom2:
MasterC, thanks for taking the time to explain this to me. In reading your explanation and looking in the /mnt directory, I think the light went on . I had never looked at it before. Basically it is up to me on how I want to link.