The company I am at was having trouble with mounting their archive drives (USB External G-Drives) and being able to write to them. The design stations that will be writing to the drives are Red Hat Enterprise. The rest of the computers that will be accessing these files for housekeeping will be OSX machines. I have decided on using hfsplus which was recomended by Design Station Developer) as the file system with a single partition named "Archive." Now there will be multiple archive drives being plugged into these systems. But only 1 at a time. Basically a 2 terabyte drive will be plugged in, archived to and then removed. Next time we need to archive there will be a new 2 terabyte drive plugged in. rinse repeat. I will maintain the process of formatting them and labeling them all "Archive."
Ok now that that is out of the way, here are the issues.
I edited fstab to mount the drive to /mnt/Archive:
/dev/sdd3 /mnt/Archive hfsplus user,rw,noauto,noexec 0 0
I also wrote to very basic shell scripts to simply mount and unmount the drives for the user.
Now I ran multiple tests and all worked. Not an issue.
But to hedge my bets I decided to change the fstab to use LABEL instead of /dev/sdd3 just incase the system decided to use another sdd(1-4). Plus since all archive drives will be named Archive, wouldn't going by label be better than device or UUID which could change? After changing to LABEL, every time I would plug in the drive, it would mount it to /mnt/Archive1 instead of the previous /mnt/Archive. In addition, none of the settings I had established in fstab were being applied. Specifically rw access to the mount. In fact, I could tell my line in fstab wasn't being referenced since it was creating it's own "managed" entry via fstab-sync.
Ok so that was a no-go so I decided to go back to what was originally working. Well no luck there either. Even though it was working perfectly before, it doesn't want to set the mount when it is plugged in. All i want is for it to set /dev/sdd3 to /mnt/Archive and allow rw access without having to sudo chmod the directory every time. Then once the user clicks the shell script it mounts for them and they can access the drive and archive. Keep in mind this was working before.
When I tail /messages I see that it hangs:
Code:
kernel: usb 1-7: new high speed USB device using address 3
kernel: Initializing USB Mass Storage driver...
kernel: scsi7 : SCSI emulation for USB Mass Storage devices
kernel: Vendor: Ext Hard Model: Disk Rev:
kernel: Type: Direct-Access ANSI SCSI revision: 02
kernel: SCSI device sdd: 3907029168 512-byte hdwr sectors (2000399 MB)
kernel: sdd: assuming drive cache: write through
kernel: SCSI device sdd: 3907029168 512-byte hdwr sectors (2000399 MB)
kernel: sdd: assuming drive cache: write through
kernel: sdd: [mac] sdd1 sdd2 sdd3 sdd4
kernel: Attached scsi disk sdd at scsi7, channel 0, id 0, lun 0
kernel: Attached scsi generic sg7 at scsi7, channel 0, id 0, lun 0, type 0
kernel: usbcore: registered new driver usb-storage
kernel: USB Mass Storage support registered.
scsi.agent[6908]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7:1.0/host7/target7:0:0/7:0:0:0
Then it just hangs indefinitely. Before it would always say "fstab-sync[12415]: added mount point /mnt/Archive for /dev/sdd3" right after the scsi.agent listed above.
It's like it sees the drive being attached and it goes through the process... it just stops before the last, most important part of adding the mount point.
Any idea why this is happening and how I can fix this?
Thanks and sorry for the long post