LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab, /dev, dvd, writer (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-dev-dvd-writer-51439/)

Vincentius 03-24-2003 05:42 AM

fstab, /dev, dvd, writer
 
I'm not stupid, I suppose...
But I don't understand the following.
I mainly use SuSE 8.1, with 1. a dvd-rom and 2. a cd/rw -rom drive
hdc: ATAPI 48X DVD-ROM drive, 512kB Cache
hdd: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache

My /etc/fstab file looks like this:
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
/dev/cdrom1 /media/cdrom1 auto ro,noauto,user,exec 0 0
/dev/cdrom2 /media/cdrom2 auto ro,noauto,user,exec 0 0

When I want to play an audio cd, I configure the player (KsCD) with /dev/hdc or /dec/hdd as drive. This works without any problem. Also cd-roms and dvd's are mounted just as it had to be done, I suppose because it works..
But I can't find /dev/hdd and /dev/hdc in fstab, why?? :confused:
When I use Konqueror to browse the directory /dev, I get to see the links of the devices, this I really don't understand:
/dev/cdrom1 and /dev/cdrom2 are linked to hdd, but
/dev/dvd doesn't have a link and
/dev/cdrom isn't even there!!!
:eek:
By the way, but that's a question for after this tread, my writer cannot be found bij writing programs...
Can someone please explain me what is goning on here? I you can, can you please tell me what to do, to have this as it should be? I'd rather not re-install SuSE AGAIN...

thanks!
Vincentius

unSpawn 03-24-2003 10:45 AM

But I can't find /dev/hdd and /dev/hdc in fstab, why??
"/dev/hdd" is one example of a representation of an (E)IDE harddisk in Linux. It's contents are partitions, which in Linux are marked with from #1 up, like the first one, "/dev/hdd1", or the 3rd one on the 1st SCSI disk: "/dev/sda3".

/dev/cdrom1 and /dev/cdrom2 are linked to hdd, but
/dev/dvd doesn't have a link and /dev/cdrom isn't even there!!!

Links can be built during install of the OS, automagically by any app that has/needs access, or during install of some app, or whatever else. In your case something() has linked /dev/cdrom1 and /dev/cdrom2 to hdd, so I spose you don't need a /dev/cdrom link.
If you need one I'm sure an app will complain :-]

my writer cannot be found bij writing programs
Try posting the output of "cdrecord -scanbus" and I'm sure someone will help.

markgdiesel 03-25-2003 01:19 PM

Probably /dev/hdc and /dev/hdd are hardlinked to /dev/cdrom and /dev/dvd. At least that is how i dit it.

You can't write maybe because all these programs only work with a SCSI-drive. You can emulate a scsi-drive but it is a long story. See the CD-writing how to how to fix this problem. After you have read that everything will be clear an you will be able to use Ccrecord. But remember if you emulate a SCSI-drive you need to make new hardlinks for your cd and dvd-drives because the they are /dev/scdx instead of /dev/hddx now.


All times are GMT -5. The time now is 06:02 AM.