Koozali.org: home of the SME Server

Can't mount USB disk

Offline alext

  • ***
  • 91
  • +0/-0
Can't mount USB disk
« on: July 23, 2014, 04:33:12 PM »
I've just installed and configured a fresh copy of SME 9.0 on to a secondary server.

Prior to the installation the server had SME 8.1 and I backed up a bunch of files onto a USB disk.

When I plugged in the USB disk to the new server it did not appear to auto-mount so, following the advice in the "USBDisks - How-to", (as I had also done on the 8.1 installation), I executed the mount command to see if I could see reference to the USB drive.

I could see nothing related to USB so then I used the following suggested command to search the message file:
   egrep "(kernel|fstab|scsi).*(usb|USB)" /var/log/messages

I scanned through the output but couldn't find any reference such as:
   ...added mount point /media/usbdisk1 for /dev/sdd1

Have I missed something out on my installation or is this "How-to" only related to pre-9.0 installations?

Thanks in advance for any help.
...

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Can't mount USB disk
« Reply #1 on: July 23, 2014, 05:41:59 PM »
connect as root

Code: [Select]
tail -f /var/log/messages

plug in the usb disk and see if something appears.. if so, report here, thank you
btw, what kind of usb disk are we talking about? some external enclosures (3.3") sometimes are problematic

Offline alext

  • ***
  • 91
  • +0/-0
Re: Can't mount USB disk
« Reply #2 on: July 24, 2014, 09:17:53 AM »
Hi Stefano,
I ran the "tail" command, connected the USB disk as requested and watched: nothing changed.

Output is as follows:

Code: [Select]
[root@gandalf ~]# tail -f /var/log/messages
tail: inotify cannot be used, reverting to polling
Jul 24 07:57:22 gandalf squid[1868]: Squid plugin modules loaded: 0
Jul 24 07:57:22 gandalf squid[1868]: Adaptation support is off.
Jul 24 07:57:22 gandalf squid[1868]: Ready to serve requests.
Jul 24 07:57:23 gandalf squid[1868]: storeLateRelease: released 0 objects
Jul 24 07:57:24 gandalf ntpd[1668]: ntpd 4.2.6p5@1.2349-o Sat Nov 23 18:21:48 UTC 2013 (1)
Jul 24 07:57:24 gandalf ntpd[1668]: logging to file /dev/stdout
Jul 24 07:57:26 gandalf smbd[1893]: [2014/07/24 07:57:26.491374,  0] smbd/server.c:1082(main)
Jul 24 07:57:26 gandalf smbd[1893]:   standard input is not a socket, assuming -D option
Jul 24 07:57:28 gandalf acpid: client connected from 2002[68:68]
Jul 24 07:57:28 gandalf acpid: 1 client rule loaded


I then ran the "tail" command again, (after I had plugged in the USB disk), but the output was the same.

The physical disk is an ExcelStor J240, (not a very big disk as it only needs to bakup my ibays).

The USB connection is a temporary unit that I use to connect any IDE or SATA device via USB for inspection/maintenance/recovery etc. The unit is a USB 2.0 to SATA/IDE Cable manufactured by Maxxtro.
I use this device on many systems, (Linux and Windows), including this SME box.
In fact I used exactly the same setup on the V8.1 system that was installed previously on this server in order to create the backup on the ExelStor disk.

Thanks for your help and I hope you can spread some more light on the problem.

Cheers
« Last Edit: July 24, 2014, 09:21:24 AM by alext »
...

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Can't mount USB disk
« Reply #3 on: July 24, 2014, 10:03:58 AM »
IMO your sata to usb cable has a problem.. repeat what I suggested you using, for example, an usb key..

if it works, the issue is with your adapter, if not, the problem is with your (server) HW

Offline alext

  • ***
  • 91
  • +0/-0
Re: Can't mount USB disk
« Reply #4 on: July 24, 2014, 10:20:41 AM »
Thanks Stefano.
I was coming to the same conclusion so I plugged in another external HDD, (Maxtor OneTouch), which has partitions formatted in NTFS and FAT32.

This time I got a result on the "tail" command:

Code: [Select]

Jul 24 10:10:57 gandalf kernel: usb 1-5: new high speed USB device number 2 using ehci_hcd
Jul 24 10:10:57 gandalf kernel: usb 1-5: New USB device found, idVendor=0d49, idProduct=7010
Jul 24 10:10:57 gandalf kernel: usb 1-5: New USB device strings: Mfr=1, Product=3, SerialNumber=2
Jul 24 10:10:57 gandalf kernel: usb 1-5: Product: OneTouch
Jul 24 10:10:57 gandalf kernel: usb 1-5: Manufacturer: Maxtor
Jul 24 10:10:57 gandalf kernel: usb 1-5: SerialNumber: Y478Z49E
Jul 24 10:10:57 gandalf kernel: usb 1-5: configuration #1 chosen from 1 choice
Jul 24 10:10:57 gandalf kernel: Initializing USB Mass Storage driver...
Jul 24 10:10:57 gandalf kernel: usbcore: registered new interface driver usb-storage
Jul 24 10:10:57 gandalf kernel: USB Mass Storage support registered.
Jul 24 10:10:57 gandalf kernel: input: Maxtor OneTouch as /devices/pci0000:00/0000:00:1d.7/usb1/1-5/input/input5
Jul 24 10:10:57 gandalf kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Jul 24 10:10:57 gandalf kernel: usbcore: registered new interface driver ums-onetouch
Jul 24 10:10:58 gandalf kernel: scsi 4:0:0:0: Direct-Access     Maxtor   OneTouch         0201 PQ: 0 ANSI: 0 CCS
Jul 24 10:10:58 gandalf kernel: sd 4:0:0:0: Attached scsi generic sg2 type 0
Jul 24 10:10:58 gandalf kernel: sd 4:0:0:0: [sdb] 320171008 512-byte logical blocks: (163 GB/152 GiB)
Jul 24 10:10:58 gandalf kernel: sd 4:0:0:0: [sdb] Write Protect is off
Jul 24 10:10:58 gandalf kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write through
Jul 24 10:10:59 gandalf kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write through
Jul 24 10:10:59 gandalf kernel: sdb: sdb1
Jul 24 10:10:59 gandalf kernel: sd 4:0:0:0: [sdb] Assuming drive cache: write through
Jul 24 10:10:59 gandalf kernel: sd 4:0:0:0: [sdb] Attached SCSI disk

If I am correct, this USB disk now shows up as sdb1

I just have to find a new way to attach my physical backup disk.

Many thanks for your help.
Alex
...