On Tuesday 07 March 2006 13:09, Carlos E. R. wrote:
The Tuesday 2006-03-07 at 01:39 -0500, Bob S wrote:
Use traditional lines, no subfs - because subfs is trying to automount, and hald is trying to automount also (so my crystal ball tells me ;-)
Hello Carlos, Back to the beginning. Aren't automount and hal the same thing? More or less? (sorry to interrupt. And you continue)
). For example:
/dev/hdc /media/dvdrecorder auto noauto,ro,nosuid,nodev,exec 0 0 /dev/hdd /media/cdrecorder auto noauto,ro,nosuid,nodev,exec 0 0 /dev/fd0 /media/floppy auto noauto,user 0 0
OK.... Cut and pasted those lines into my fstab. Same exact situation as before. Won't work. Now I get this message:
Could not mount device. The reported error was: [mntent]: line 18 in /etc/fstab is bad [mntent]: line 19 in /etc/fstab is bad [mntent]: line 20 in /etc/fstab is bad mount: according to mtab, /dev/fd0 is already mounted on /media/floppy mount failed
(those are the three lines I pasted into fstab)
You have inserted extra chars somewhere. The line has to start with /dev..with no white space before, no extra symbols like ">". What I have is:
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
OK, but it is not a white space problem. I brought up the fstab and patiently tabbed through all of those lines with the "arrow" key. I note that as long as the line has the "subfs" in it I do not get the error message. If I change it to "auto" I do. I know that is crazy but I have gone back and forth with fstab and that is what happens.
but first correct your symlinks (keep reading).
OK, you too please.
Here are some odd things that I have found: In Yast> Hardware> CD Roms, Yast posts two each of the devices. The NEC dvd device and the LiteOn cd device. They all show as non-configured. I edit them to show the mount point etc. and click "finish" Yast says OK. Reopen the dialogue and they are not configured. The settings do not stick.
Could be because the links are wrong. You can try what Darryl said, or (see below)
Yes, that is correct. The links were wrong, as you point out below but I don't think that is the problem. I will explain. I have determined something though. As I stated when using Yast to configure the cdrecorder and the dvdrecorder the settings did not "stick" because the next time you opened it the mount points....did not appear. Yast does, however make the changes in fstab. (Even though they are incorrect until I changed the links)
Now, when I look at /dev it shows 3 devices for each unit. For the cdrecorder it shows cdrom which is linked to /dev/hdc (incorrect - should be /dev/hdd) then cdrecorder, which is correctly linked to hdd, and cdrecorder2 which is linked to /dev/fd0 (really wrong)
Ok, so you have wrong links. The place to modify the links manually in 9.3 and probably in 10.0 is in "/etc/udev/rules.d/20-cdrom.rules". Yast created these two lines for me:
Same location but called 55-cdrom.rules. Aieeeee !!!!! There are 64 lines in that file!!!! Mostly all the same, but included are the cdrecorder2 and dvdrecorder2. (Most likely created when I was in Yast and configured the duplicate and original devices, the NEC DVD recorder and the Lite-On cdrecorder. Sooooo...I took a deep breath and deleted everything but two lines for both the cdrecorder and the dvdrecorder which I edited, and then saved it. (I guess that file is created everytime you try to configure the cdrecorder/dvdrecorder with Yast) Rebooted and lo & behold the links in /dev were correct. And as you stated, your lines are:
BUS="ide", ID="1.0", SYSFS{removable}="1", SYMLINK="dvdram cdrom " BUS="ide", ID="1.1", SYSFS{removable}="1", SYMLINK="dvd"
whereas the correct lines for me are:
BUS="ide", ID="1.0", SYSFS{removable}="1", SYMLINK="dvdrecorder dvdram dvd" BUS="ide", ID="1.1", SYSFS{removable}="1", SYMLINK="cdrecorder cdrom"
My lines are significantly different from yours but I assume that is because you disabled hal/automount or whatever. Here are mine: (wrapped of course) SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:0f.0-ide-1:0", SYSFS{removable}=="1", SYMLINK+="dvdrecorder dvd" SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:0f.0-ide-1:1", SYSFS{removable}=="1", SYMLINK+="cdrecorder cdrom"
If you don't do it there, the changes will not stick. The location may be slightly diferent in 10.0. Take the basis of the lines Yast created, then modify them to suit your situation.
As above.... shown modified and correct. (I think)
But, the problem remains. If I leave the fstab entry as "subfs" I get the message that it can't mount because mtab already has it mounted. If I change it to "auto" I get the fstab message about the incorrect lines and it says it cannot mount it. It will mount though, but only on the dvdrecorder. The data disk will eventually show up in media:/ (My Computer) Or, in the real /media/dvdrecorder directory where I can open either manually and read it. Now, let's muddy the waters even further. (If it doesn't boggle your mind that is - It certainly boggles mine) The Floppy !!! (in relation to the cdrecorder and the dvdrecorder) First, It shows up in fstab in basically the same format as the cdrecorder and the dvdrecorder. It is shown in media:/ (My Computer) (God I hate that name) Yet the cdrecorder and the dvdrecorder do not. Hmmmm...They all appear to have the same format. Why is that one shows up and the others do not?? Here are the pertinent lines from my fstab which illustrate that: (Wrapped again, of course)(and separated by a blank line to see them more easily) /dev/fd0 /media/floppy auto noauto,user 0 0 none /subdomain subdomainfs noauto 0 0 /dev/dvdrecorder /media/dvdrecorder auto noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/cdrecorder /media/cdrecorder auto noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 (PS What is that "none thing anyway??) OK, that explained, let's go on to mtab. Normal operating mtab shows this about the floppy but nothing about cdrecorder and dvdrecorder: (Last few lines shown) usbfs /proc/bus/usb usbfs rw 0 0 /dev/fd0 /media/floppy subfs rw,nosuid,nodev,noatime,fs=floppyfss,procuid 0 0 (Note: that in fstab it shows it as "auto" and in mtab it shows it as "subfs" and the attributes are quite different. (See above fstab) OK, so the floppy is always there. Why aren't cdrecorder and dvdrecorder there also when they belong to the same subset of mountable devices? I can watch mtab as I put a data dvd into the dvdrecorder and see it appear in mtab (with a reload of the file, of course) and I can see it unload when I take the data dvd out. I can see the contents of the floppy when I go to /media/floppy and open it. (although I cannot do it from media:/ (My Computer) because it tells me it is altready mounted in mtab) I can do the same for the data dvd (after it mounts) by going to /media/dvdrecorder and opening it or as opposed to or different from the floppy by going to media:/ (My Computer) when it brings up the mounted directory. None of this makes any sense to me. They should all behave in a similar manner. I am not a trained programmer or even a system administrator, but I am a very experienced logical person. None of this is logical to me unless this behavior can be explained. I really suspect that many others may have this same problem but are either "living with it", "getting around it", or "ignoring it" Sorry if I got into a little bit of a "rant". Didn't mean to. (and this is not directed at you Carlos, or anyone else in particular) Just very frustrating that at this point in development this stuff should "just work properly". Guess we have a long ways to go yet. Bob S.