Device confusion understanding help meeded
I have a SuSE 9.2 system and have been a Linux user for some time, however I have not managed to understand te below scenario. On this system I have 2 IDE drives, a 1.44" stiffy drive, a read only CDROM and a dual layer DVD R/RW drive. My two HDDs are specified as hda and hdb however my optical drives are not labeled with /dev/xxx names, in the /etc/fstab file ie as /dev/hdc and /dev/hdd? Why are they, and should they be, that way? BIOS wise hda is my primary master with hdb as the primary slave. My CDROM, which came with the machine and was Secondary master is now Secondary slave, The DVD R/RW is the Secondary Master. Hda is the Primary Master. My fstab is below although I am sure I'll be cating files and posting them here from a console, from within KDE of course. Sorry for the word wrap. /dev/hda1 / ext3 acl,user_xattr 1 1 /dev/hda6 /boot ext3 acl,user_xattr 1 2 /dev/hda9 /home ext3 acl,user_xattr 1 2 /dev/hda8 /opt ext3 acl,user_xattr 1 2 /dev/hda11 /srv ext3 acl,user_xattr 1 2 /dev/hda12 /tmp ext3 acl,user_xattr 1 2 /dev/hda5 /usr ext3 acl,user_xattr 1 2 /dev/hda7 /var ext3 acl,user_xattr 1 2 /dev/hda13 /wintemp vfat defaults 0 0 /dev/hda10 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0 /dev/hdb1 /media/backup ext3 acl,user_xattr 1 2 /dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 If I browse into /dev with konqi I can see a dvdrecorder entry but not a cdrom one. Howcome? Should entry only appear if there is something in the drive or the contents are mounted?
On Sunday 07 May 2006 20:30, Hylton Conacher (ZR1HPC) wrote:
I have a SuSE 9.2 system and have been a Linux user for some time, however I have not managed to understand te below scenario.
On this system I have 2 IDE drives, a 1.44" stiffy drive, a read only CDROM and a dual layer DVD R/RW drive.
My two HDDs are specified as hda and hdb however my optical drives are not labeled with /dev/xxx names, in the /etc/fstab file ie as /dev/hdc and /dev/hdd?
Why are they, and should they be, that way?
/dev/cdrom and /dev/dvdrecorder are simply links to /dev/hd? as appropriate - it is set up that way so that programs which need to refer to them don't need to know which physical device is which. In view of your other post, you might want to check that /dev/dvdrecorder does actually point to the correct device (from info below, /dev/hdd) and has the correct permissions.
BIOS wise hda is my primary master with hdb as the primary slave. My CDROM, which came with the machine and was Secondary master is now Secondary slave, The DVD R/RW is the Secondary Master. Hda is the Primary Master.
<SNIP>
If I browse into /dev with konqi I can see a dvdrecorder entry but not a cdrom one. Howcome? Should entry only appear if there is something in the drive or the contents are mounted?
It should be there if the drive is in the machine, SFAIK. Dylan -- "The man who strikes first admits that his ideas have given out." (Chinese Proverb)
On 07/05/06 13:30, Hylton Conacher (ZR1HPC) wrote:
<snip> BIOS wise hda is my primary master with hdb as the primary slave. My CDROM, which came with the machine and was Secondary master is now Secondary slave, The DVD R/RW is the Secondary Master. Hda is the Primary Master. As Dylan mentioned, /dev/cdrom and /dev/dvdrecorder are only soft links to (in your case) /dev/hdc and /dev/hdd.
When you moved the CD from master to slave, it is possible that the old link (/dev/cdrom --> /dev/hdc) was not changed. This has happened to me in the past, when I have just installed the new device without modifying the old one's data. If you had deleted and reinstalled the CDRom in Yast (maybe you can also do an edit, I don't recall), the correct link should have been created. For your configuration, you should have the following soft links in /dev: /dev/dvdrecorder --> /dev/hdc /dev/cdrom --> /dev/hdd
Darryl Gregorash wrote:
On 07/05/06 13:30, Hylton Conacher (ZR1HPC) wrote:
<snip> BIOS wise hda is my primary master with hdb as the primary slave. My CDROM, which came with the machine and was Secondary master is now Secondary slave, The DVD R/RW is the Secondary Master. Hda is the Primary Master.
As Dylan mentioned,.. Thanks Dylan ../dev/cdrom and /dev/dvdrecorder are only soft links to (in your case) /dev/hdc and /dev/hdd.
When you moved the CD from master to slave, it is possible that the old link (/dev/cdrom --> /dev/hdc) was not changed. This has happened to me in the past, when I have just installed the new device without modifying the old one's data. If you had deleted and reinstalled the CDRom in Yast (maybe you can also do an edit, I don't recall), the correct link should have been created. For your configuration, you should have the following soft links in /dev:
/dev/dvdrecorder --> /dev/hdc /dev/cdrom --> /dev/hdd OK, went into Yast-> hardware->CD-ROM and saw that the links to hdc and hdd were correct ie the DVD is /dev/hdc and the CDROM is /dev/hdd.
Problem solved thanks. It was just knowing where to look, thanks to me. Out of interest which file would hold these links? I would assume somewhere in /etc/systemconfig/xxxxxx.
On 10/05/06 08:30, Hylton Conacher (ZR1HPC) wrote:
<snip>
soft links in /dev:
/dev/dvdrecorder --> /dev/hdc /dev/cdrom --> /dev/hdd
OK, went into Yast-> hardware->CD-ROM and saw that the links to hdc and hdd were correct ie the DVD is /dev/hdc and the CDROM is /dev/hdd.
Problem solved thanks. It was just knowing where to look, thanks to me.
Out of interest which file would hold these links? I would assume somewhere in /etc/systemconfig/xxxxxx.
They aren't stored in a file, they are created in the directory where they exist. They are special files that just point to some other file.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2006-05-10 at 12:58 -0600, Darryl Gregorash wrote:
On 10/05/06 08:30, Hylton Conacher (ZR1HPC) wrote:
Out of interest which file would hold these links? I would assume somewhere in /etc/systemconfig/xxxxxx.
They aren't stored in a file, they are created in the directory where they exist. They are special files that just point to some other file.
That's true, but under 9.3 and probably later the symlinks are created during every boot, according to what it finds in '/etc/udev/rules.d/20-cdrom.rules'. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEYw/ltTMYHG2NR9URAmQrAKCQAwV7OAVj2m73foAqPSlR2a6tjwCghXpE OSToiEnPwVHAt6m/bfSgiFI= =pSYa -----END PGP SIGNATURE-----
participants (4)
-
Carlos E. R.
-
Darryl Gregorash
-
Dylan
-
Hylton Conacher (ZR1HPC)