NTAdmin
13-07-2005, 17:21
Hi, I have added post-mount to /usr/local/sbin, made it executable + commited everything to flash and done all required things(post boot works in my case).
But when I mount the drive it doesn't get executed. The log says:
Jul 13 20:18:52 kernel: Vendor: Maxtor 6 Model: Y120P0 Rev: YAR4
Jul 13 20:18:52 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 13 20:18:52 kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Jul 13 20:18:52 kernel: SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB)
Jul 13 20:18:52 kernel: p1
Jul 13 20:18:59 kernel: kjournald starting. Commit interval 5 seconds
Jul 13 20:18:59 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,17), internal journal
Jul 13 20:18:59 kernel: EXT3-fs: recovery complete.
Jul 13 20:18:59 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jul 13 20:18:59 USB storage: ext3 fs mounted to /tmp/harddisk
here is the content of post mount:
#!/bin/bash
umount /tmp/harddisk
mount /dev/scsi/host1/bus0/target0/lun0/part1 /home/maxtor -t ext3
touch asd.txt
logger post-mount
And it doesn't work. Any Ideas?
But when I mount the drive it doesn't get executed. The log says:
Jul 13 20:18:52 kernel: Vendor: Maxtor 6 Model: Y120P0 Rev: YAR4
Jul 13 20:18:52 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 13 20:18:52 kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Jul 13 20:18:52 kernel: SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB)
Jul 13 20:18:52 kernel: p1
Jul 13 20:18:59 kernel: kjournald starting. Commit interval 5 seconds
Jul 13 20:18:59 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,17), internal journal
Jul 13 20:18:59 kernel: EXT3-fs: recovery complete.
Jul 13 20:18:59 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jul 13 20:18:59 USB storage: ext3 fs mounted to /tmp/harddisk
here is the content of post mount:
#!/bin/bash
umount /tmp/harddisk
mount /dev/scsi/host1/bus0/target0/lun0/part1 /home/maxtor -t ext3
touch asd.txt
logger post-mount
And it doesn't work. Any Ideas?