Koozali.org: home of the SME Server

/media directory

Offline motor2000

  • 15
  • +0/-0
/media directory
« on: May 14, 2008, 05:16:05 PM »
I plugged in new USB external HD and SME created local directory with drive's name in /media directory.  Now when I fill up new USB drive, system reports that I am out of free space.  When i issue a mount command I don't see anything mounted in /media.  Does anyone know why SME create local directory instead of mounting it?

Thanks.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: /media directory
« Reply #1 on: May 14, 2008, 05:23:05 PM »
I think you need to read this: http://wiki.contribs.org/USBDisks
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #2 on: May 14, 2008, 06:23:35 PM »
First sentence in this guide say: "SME will automatically mount connected USB disk drives into the /media folder".  The problem is that SME did not mount USB drive, instead it created a local folder in /media on /dev/hda1.   

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: /media directory
« Reply #3 on: May 14, 2008, 06:28:02 PM »
First sentence in this guide say: "SME will automatically mount connected USB disk drives into the /media folder".  The problem is that SME did not mount USB drive, instead it created a local folder in /media on /dev/hda1.   
It seems it failed some where half-way, do you have a FS in the USB drive that is supported by linux? Does the /var/log/messages hold any clue(s)?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #4 on: May 14, 2008, 06:33:26 PM »
I am using ext3. I deleted automatically created folder and remounted USB drive manually.  My concern is that SME will try to do the same thing on the next reboot.

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #5 on: May 14, 2008, 06:35:03 PM »
Code: [Select]
May 12 17:19:19 fs01 kernel: usb 3-1: new full speed USB device using address 2
May 12 17:19:21 fs01 kernel: input: USB HID v1.11 Device [Western Digital My Book] on usb-0000:02:0e.0-1
May 12 17:19:22 fs01 kernel: Initializing USB Mass Storage driver...
May 12 17:19:22 fs01 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 12 17:19:29 fs01 kernel: USB Mass Storage device found at 2
May 12 17:19:29 fs01 kernel: usbcore: registered new driver usb-storage
May 12 17:19:29 fs01 kernel: USB Mass Storage support registered.
May 12 17:19:29 fs01 scsi.agent[4247]: disk at /devices/pci0000:00/0000:00:0b.0/0000:02:0e.0/usb3/3-1/3-1:1.0/host0/target0:0:0/0:0:0:0

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #6 on: May 14, 2008, 06:38:02 PM »
I just remembered that I disabled ehci_hcd module, because it was causing timeout errors.  Not sure if it has anything to do with mounting problem.

Offline toothandnail

  • ***
  • 133
  • +0/-0
Re: /media directory
« Reply #7 on: June 02, 2008, 02:20:24 AM »
This is interesting. I'm currently looking after 4 SME Server machines, on a wide range of different hardware. I've not ever seen SME mount a USB disk.

When I plug a USB mass storage device (be it hard drive or flash drive), SME creates a /media/<diskvolume-name> directory. I then mount it manually, and unmount it manually when I've finished with it.

 :cool: Never having read the section on USBdisks, I thought this was design behavior. Its worked ok for me, though in one instance, a server box became confused and would not create the necessary directory until I bounced it.

If it really is supposed to automount, I guess I'd better report it as a bug, since it never has for me...

paul.

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #8 on: June 02, 2008, 06:43:34 AM »
toothandnail, if I understand correctly you don't need to mount /media/<diskvolume-name> again. This is your automatically mounted directory.

Offline motor2000

  • 15
  • +0/-0
Re: /media directory
« Reply #9 on: June 02, 2008, 06:50:55 AM »
I guess I'd better report it as a bug, since it never has for me...


It works on my other servers.  I think the problem in my case is the old hardware and the fact that I added PCI USB card.  I should upgrade the server box.

Offline toothandnail

  • ***
  • 133
  • +0/-0
Re: /media directory
« Reply #10 on: June 02, 2008, 07:39:00 AM »
toothandnail, if I understand correctly you don't need to mount /media/<diskvolume-name> again. This is your automatically mounted directory.

Not here - the directory is created, but I have to mount the device under it. If I check the directory without mounting, there is nothing in it...

paul.

Offline toothandnail

  • ***
  • 133
  • +0/-0
Re: /media directory
« Reply #11 on: June 02, 2008, 07:40:45 AM »
It works on my other servers.  I think the problem in my case is the old hardware and the fact that I added PCI USB card.  I should upgrade the server box.

Strange. My test box is quite old (AOpen mb with a PIII 1.2GHz CPU, only USB 1.1), but the other machines are all more modern, including two dual Zeon IBM rackmount servers. No automount on any of them.

paul.

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: /media directory
« Reply #12 on: June 04, 2008, 07:25:27 AM »
The beginning part of http://wiki.contribs.org/USBDisks is misleading.  SME (by default) will not "automount" an attached USB drive upon boot or when plugged in.  That how-to needs to be corrected to state the SME automatically creates mount points and not that it automatically mounts the drive.

SME (by default) will only *create* the mount point similar to "/media/usbdisk".  You can however create custom mount points.

If you want drive to automount you need to look further down the page:

To automount upon boot up - http://wiki.contribs.org/USBDisks#Mount_your_disk_automatically_at_boot-up

To automount upon plugging in - http://wiki.contribs.org/USBDisks#Mount_your_disks_automatically_when_connected
« Last Edit: June 04, 2008, 07:27:10 AM by pfloor »
In life, you must either "Push, Pull or Get out of the way!"