View Full Version : fstab line for SATA CD / DVD
algarues
01-12-2008, 07:30 PM
Could anybody please give me the line for /etc/fstab in order to be able to use a sata cd / dvd burner?
i am using pcbsd 1.4.1
thank you very much for your help
TerryP
01-12-2008, 08:41 PM
Personally I would suggest an IDE based CD/DVD drive atm. I would expect it to be either /dev/cdN or /dev/acdN where N is the device number; e.g. /dev/acd0 and /dev/acd1 is my Desktops IDE DVD Burner and IDE DVD-ROM.
Depending on which driver the device gets attached to. The acd driver is marked for generic ATA/ATAPI disk controllers and the cd driver for SCSI CD-ROM's in their manual pages.
algarues
02-01-2008, 07:18 PM
Please help me!
I have both a SATA and a IDE cd/dvd burner installed. The IDE drive was recognized during installation. However, after the system was installed, it was not recognized anymore.
my dmesg section is as follows
ad0: 78167MB <Maxtor 6Y080L0 YAR41BW0> at ata4-master UDMA100
acd0: DVDR <DVDRW IDE 16X/VER A079> at ata4-slave UDMA66
ad1: 238417MB <SAMSUNG SP2504C VT100-52> at ata5-master SATA300
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00
SMP: AP CPU #1 Launched!
cd0 at ata4 bus 0 target 1 lun 0
cd0: <DVDRW USB 16X A079> Removable CD-ROM SCSI-0 device
cd0: 66.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
I still do not have any fstab line for either device.
So it might depend on that.
If I put a cd / dvd in the sata drive, KDE does nothing, whereas if I put a cd / dvd in the IDE drive, everything hangs.
even if i try to mount with a command line i always get an input/output error for either device plus a temporary system hang when I use the IDE drive.
I also have added atapicam_load="YES" to the loader.conf file
Both drives are recognized and work flawlessly in OSX and linux that I have installed in a separate hard drive.
If I give the command ls -a /dev, both acd0 and cd0 appear, so it seems that system is detecting them and properly as well, but I can't use them.
I have updated PCBSD up to version 1.4.1.2, but did not recompile kernel or anything like that.
Could you please help me out?
it is really the only thing that is not working. All the rest is quite fine with me.
Regards
TerryP
02-01-2008, 09:01 PM
it would probably be some thing like this:
# DVD-ROM
/dev/acd0 /where/you/want/to/mount/it1 auto ro,noauto 0 0
# DVD Burner
/dev/cd0 /where/you/want/to/mount/it2 auto ro,noauto 0 0
note that the noauto option says not to mount it at boot-time, which is preferable so you can boot PC-BSD without having a cdrom in each drive.
I don't think I've never actually needed them in fstab to mount from the command line...
If the system hangs when trying to mount a CD-ROM using the mount* commands there might be a problem with hardware support / acpi.
algarues
02-01-2008, 11:27 PM
OK thanks now it works,and it does not hang anymore, however i still have a couple of little problems:
1) only root can mount the drives. I am logging in as a normal user. Now KDE detects the disc automatically and tries to mount it. The disc icon appears on the desktop and in storage media as well. However I cannot see the content of the disc as I get the message : Insufficient permissions, unknown filesystem, or media not inserted
but then if i become superuser and mount everything is ok.
2) If i add the option "user" in the 4th column of fstab, then I get an error message and neither root, nor the user can mount the drive. How can I make it mountable by anyuser?
I thought these fstab options were universal. Can you please let me know the right option?
That would make everything in kde run smoothly.
1) the SATA drive is still completely inert, but that' s ok, I can use the other one.
Please let me know this last detail.
Regards
TerryP
02-01-2008, 11:48 PM
the options must be supported by the mount program, e.g. mount -o opt1,opt2 and afaik user/nouser are not supported by FreeBSD's mount command.
this might help (http://lantech.geekvenue.net/chucktips/jason/chuck/987270955/index_html) for mounting as a normal user. Theres a devfs or some thing that is also in use, don't have my laptop handy atm so you might want to search the forums or knowledge base on the site for mounting as a normal user.
graedus
02-03-2008, 01:06 AM
Its weird, the atapi/ide drive should be recognized by default. The PCBSD installation is tweaked to allow things we normally take for granted (non-root mounting for example) happen. Once you start to tweak the fstab, you'll have to keep going down the road, for example, checking permissions at /etc/devfs.conf, for starters).
I have customized freebsd installations from scratch and getting this kind of tweaks sorted is a pain in the arse.
I suggest you unplug the sata optic drive, plug the ide drive, and reinstall. If it doesn't work out of the box it will be more than a nuissance to sort this out by hand.
algarues
02-04-2008, 02:53 PM
I think the problem was a broken kde upgrade to 3.5.8
I reinstalled the os and updated he core system without touching kde and everything works smoothly without changing any configuration files etc.
Don't even need to add fstab lines.
Thanks a lot anyway
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.