Hello,
i have 4 Harddisk-Boxes in my computer. In /etc/udev/rules.d/10-local.rules i put
SUBSYSTEMS==“scsi”, KERNEL==“sd?”, MODE=“0666”, KERNELS==“3:0:0:0”, NAME=“sdB”
SUBSYSTEMS==“scsi”, KERNEL==“sd?[0-9]", MODE=“0666”, KERNELS==“3:0:0:0”, NAME=“sdB%n”, SYMLINK+=“ftp1”
SUBSYSTEMS==“scsi”, KERNEL==“sd?”, KERNELS==“4:0:0:0”, NAME=“sdC”
SUBSYSTEMS==“scsi”, KERNEL=="sd?[0-9]”, KERNELS==“4:0:0:0”, NAME=“sdC%n”, SYMLINK+=“ftp2”
SUBSYSTEMS==“scsi”, KERNEL==“sd?”, KERNELS==“6:0:0:0”, NAME=“sdD”
SUBSYSTEMS==“scsi”, KERNEL==“sd?[0-9]", KERNELS==“6:0:0:0”, NAME=“sdD%n”, SYMLINK+=“ftp3”
SUBSYSTEMS==“scsi”, KERNEL==“sd?”, KERNELS==“5:0:0:0”, NAME=“sdE”
SUBSYSTEMS==“scsi”, KERNEL=="sd?[0-9]”, KERNELS==“5:0:0:0”, NAME=“sdE%n”, SYMLINK+=“ftp4”, GROUP=“ftpgroup”
and in /etc/fstab
/dev/ftp1 /home/ftp1 ntfs-3g defaults,users,rw 0 0
/dev/ftp2 /home/ftp2 ntfs-3g defaults,users,rw 0 0
/dev/ftp3 /home/ftp3 ntfs-3g defaults,users,rw 0 0
/dev/ftp4 /home/ftp4 ntfs-3g defaults,users,rw 0 0
So, when i put a disk into the first box, i only have to wait a littel an then simply tipping “mount /mnt/ftp1”.
That works fine, for a half year (or a little bit longer, i’m not shure).
Normaly, when i umount a disk an then get it out, the device will disapear.
But since some days, in some cases it will not. That means i have /dev/sdE and /dev/sdE1 (or /dev/sdB and sdB1), but there is no disk! What is going wrong there?
(After an reboot, the device disapears.)
At the Moment, i have no disk in the Box ftp4, but i have /dev/sdE (and /dev/sdE1).
“udevadm info --export-db” says:
P: /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sdb
N: sdE
S: disk/by-path/pci-0000:00:1f.2-scsi-3:0:0:0
E: ID_VENDOR=ATA
E: ID_MODEL=WDC_WD5000YS-01M
E: ID_REVISION=09.0
E: ID_SERIAL=
E: ID_SERIAL_SHORT=
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_PATH=pci-0000:00:1f.2-scsi-3:0:0:0P: /devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0/block/sdb/sdb1
N: sdE1
S: ftp4
S: disk/by-path/pci-0000:00:1f.2-scsi-3:0:0:0-part1
E: ID_VENDOR=ATA
E: ID_MODEL=WDC_WD5000YS-01M
E: ID_REVISION=09.0
E: ID_SERIAL=
E: ID_SERIAL_SHORT=
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_PATH=pci-0000:00:1f.2-scsi-3:0:0:0
At the moment, i have no idea, why this is happening and i can’t reproduce the failure.
If you’ve an suggestion, i’m greatful.
Thanks
joe