How would I comment out a line inetc/fstab?
John Lamb wrote:
Matthew Dunaway wrote:
OK, we might be getting somewhere. On my desktop, I have an icon for the MuVo. It has a little green arrow on it and it says it is mounted. :-)) When Iclicked on it to open it, I got the following message:
could not enter folder /media/usb-storage-odd-CreativeTech-NOMADMuVo:0:0:0p1
If the line in /etc/fstab identifying the muvo is something like:
/dev/sda1 /media/muvo auto noauto,user,exec,sync 0 0
then right-click the muvo icon and select properties. Under the device tag, select /dev/sda1 and it should list the mount point correctly, in my case as /media/muvo.
This is the traditional approach to mounting devices in GNU/Linux. It has the advantage of being fairly robust. The disadvantage is that you couldn't plug in a device without first telling the OS what it was, hence 'hotplug' (correctly 'plug and play').
IIRC, under SuSE 8.2, if you plugged in a USB memory stick, the USB hotplug system would put an entry in /etc/fstab for you, something like /media/usb-storage-odd-CreativeTech-NOMADMuVo:0:0:0p1. This isn't happening to me now and doesn't matter to me. I don't have any other USB devices that could use /dev/sda* and I want to mount the device with the sync option.
I haven't used suseplugger (the 'hardware' icon) much; so I don't know what it should do. It doesn't list the MuVo for me. If you find a MuVo listed, it may be that hotplugging is trying to mount the device automatically. In that case, you could try commenting out the line for /dev/sda1 in /etc/fstab and see what happens. Probably you will find the device under the /media subdirectory. OTOH, leaving a line for /dev/sda1 in /etc/fstab should not be a problem.
I guess this is an issue that will get sorted out in the next year or so. IMHO it's not an easy issue because there's no one right way to solve it. I think some devices are automatically detected others not. Some devices can be hotplugged, others not; some devices should be automounted, others not; some devices should be mounted 'sync', others not. Trying to get one system that works for everything is tough.