Koozali.org: home of the SME Server

USB Mount Manager?

Offline judgej

  • *
  • 375
  • +0/-0
USB Mount Manager?
« on: July 14, 2007, 11:42:49 AM »
Does anyone know of a USB disk mount manager for SME Server? I am trying to make plugging in hard drives less of a 'keep your fingers crossed that it mounts in the right place' affair.

What I find, is that some disks will mount to /media/usbdisk. But then if I unmount, unplug, and plug in another drive, it gets mounted to /media/usbdisk1. Sometimes. When it feels like it. Being able to swap over hard drives for backup is not very reliable, because the backup (DAR2) never knows where the hard drive may end up.

Now, I know the OS has features to allow you to specify exactly where eahc disk is mounted, according to the serial number of the disk or the volume label of the FS on the disk. Setting this up is notoriously difficult, and decent documentation is nigh-on impossible to find.

So, I'm hoping there is some simple tool I can use to set these things configured - either an admin panel plugin or a comment-line tool. Anyone know of one?

USB disk mounting is described as 'it should just work', and to a point it does. However, 'just works' and 'does the right/expected thing' can be worlds apart :-)

-- Jason
-- Jason

Offline mmccarn

  • *
  • 2,651
  • +10/-0
USB Mount Manager?
« Reply #1 on: July 14, 2007, 01:00:27 PM »
I'm having the same issue w/ USB drives; this is all I've found: http://forums.contribs.org/index.php?topic=35466.0, but I've been afraid to install it.

Offline judgej

  • *
  • 375
  • +0/-0
USB Mount Manager?
« Reply #2 on: July 14, 2007, 01:12:43 PM »
Quote from: "mmccarn"
I'm having the same issue w/ USB drives; this is all I've found: http://forums.contribs.org/index.php?topic=35466.0, but I've been afraid to install it.


Thanks - I'll take a look. If I can get my hands on the source RPM, then it should be easy enough to check what it does. Like you, I'm a bit wary of any contrib that messes around with the OS at such a low level (and we are probably talking HAL level here).

USB disk mounting is not just for backups. Another use could be to mount specific disks onto i-bays to extend storage capacity.

-- JJ
-- Jason

Offline byte

  • *
  • 2,183
  • +2/-0
USB Mount Manager?
« Reply #3 on: July 14, 2007, 01:13:58 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
Re: USB Mount Manager?
« Reply #4 on: July 15, 2007, 10:29:35 PM »
Quote from: "judgej"
Being able to swap over hard drives for backup is not very reliable, because the backup (DAR2) never knows where the hard drive may end up.

What I have done to solve this problem is label my backup partitions to 'backup2' like this
Code: [Select]
/sbin/e2label /dev/sda1 backup2
I then adjust the fstab entry to look like this
Code: [Select]
LABEL=backup2  /media/backup  auto  noauto,defaults  0  0
Note that I did not use the standard /media/usbdisk as the mount point.

Hope that helps a little.

John
...

Offline judgej

  • *
  • 375
  • +0/-0
Re: USB Mount Manager?
« Reply #5 on: July 19, 2007, 12:24:50 AM »
Quote from: "wjhobbs"

What I have done to solve this problem is label my backup partitions to 'backup2' like this
Code: [Select]
/sbin/e2label /dev/sda1 backup2
I then adjust the fstab entry to look like this
Code: [Select]
LABEL=backup2  /media/backup  auto  noauto,defaults  0  0
Note that I did not use the standard /media/usbdisk as the mount point.


Does fstab actually stay set like that? I got the impression the HAL daemon (or something like that) updated the file automatically as drives were plugged in and removed, and that manual changes were not permanent.

If it is that simple though, I'll give it a try. Thanks!

-- JJ
-- Jason

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
USB Mount Manager?
« Reply #6 on: July 29, 2007, 02:20:08 AM »
I have done a contrib few month ago to manage usb disk and auto mount :

http://forums.contribs.org/index.php?topic=35466.0