[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [2.4.0] migration to devfs



>>>>> "Andreas" == Andreas Jellinghaus <aj@dungeon.inka.de> writes:

    Andreas> 2.) boot. fsck will fail. do manual fsck, remount / rw,
    Andreas> edit /etc/fstab: /dev/ide/host0/bus0/target0/lun0/part1
    Andreas> /boot ext2 defaults 0 2
    Andreas> /dev/ide/host0/bus0/target0/lun0/part2 none swap sw 0 0
    Andreas> /dev/ide/host0/bus0/target0/lun0/part5 / ext2 defaults 0
    Andreas> 1 /dev/ide/host0/bus0/target0/lun0/part6 /local ext2
    Andreas> defaults 0 2 /dev/ide/host0/bus0/tagret1/lun0/cd /cdrom
    Andreas> iso9660 ro,user,noauto

This seems to be overly complex, even for devfs. Or is the
documentation found in
linux-2.4.0-test10/Documentation/filesystems/devfs/README out-of-date
or wrong?

Disc Devices

All discs, whether SCSI, IDE or whatever, are placed under the
/dev/discs hierarchy:

        /dev/discs/disc0        first disc
        /dev/discs/disc1        second disc


Each of these entries is a symbolic link to the directory for that
device. The device directory contains:

        disc    for the whole disc
        part*   for individual partitions


CD-ROM Devices

All CD-ROMs, whether SCSI, IDE or whatever, are placed under the
/dev/cdroms hierarchy:

        /dev/cdroms/cdrom0      first CD-ROM
        /dev/cdroms/cdrom1      second CD-ROM


Each of these entries is a symbolic link to the real device entry for
that device.

So, on my system, I have:

lr-xr-xr-x    1 root     root           33 Jan  1  1970 /dev/cdroms/cdrom0 -> ../ide/host0/bus1/target1/lun0/cd
lr-xr-xr-x    1 root     root           30 Jan  1  1970 /dev/discs/disc0 -> ../ide/host0/bus0/target0/lun0/
lr-xr-xr-x    1 root     root           30 Jan  1  1970 /dev/discs/disc1 -> ../ide/host0/bus0/target1/lun0/
lr-xr-xr-x    1 root     root           30 Jan  1  1970 /dev/discs/disc2 -> ../ide/host0/bus1/target0/lun0/

IMHO using the value on the left is much more straight forward then
using the value on the right.
-- 
Brian May <bam@debian.org>



Reply to: