On Срд, 2002-01-23 at 08:33, Richard Gooch wrote:
> I'd first like to establish that this will actually work. Someone
> please try this and let me know.
>
Tested once more and it works with supermount as well, media is
correctly revalidated on media change:
ppa: Version 2.07 (for Linux 2.4.x)
ppa: Found device at ID 4, Attempting to use EPP 32 bit
ppa: Communication established with ID 4 using EPP 32 bit
scsi0 : Iomega VPI0 (ppa) interface
Vendor: iomega Model: jaz 2GB Rev: E.17
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 4, lun 0
SCSI device sda: 3915600 512-byte hdwr sectors (2005 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target4/lun0: p4
Unable to identify CD-ROM format.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
SCSI device sda: 2091050 512-byte hdwr sectors (1071 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target4/lun0: p4
Unable to identify CD-ROM format.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:04.
Here is current devfsd.conf addition I am using:
# When removable media is (programmatically) ejected nodes for
# individual partitions are unregistered and if you have enabled
# RM(OLD|NEW)COMPAT actions links that point to them are removed.
# Unfortunately when you insert media and try to access it using
# any of these links there is nothing that tells the kernel to refresh
# partition table. To force refresh you may use something like this:
# SCSI NEWCOMPAT
LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd
if=$mntpnt/\1 of=/dev/null count=1
# SCSI OLDCOMPAT
LOOKUP ^(sd[a-z]+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1
of=/dev/null count=1
# IDE NEWCOMPAT
LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd
if=$mntpnt/\1 of=/dev/null count=1
# IDE OLDCOMPAT
LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1
of=/dev/null count=1
regards
-andrej
|