Koozali.org: home of the SME Server

Mounting USB Disk

Offline AlexG

  • ***
  • 110
  • +0/-0
Mounting USB Disk
« on: November 12, 2007, 09:40:12 AM »
Hi

I am trying to mount a 30GB FAT32 USB Disk. But it does not work. The following error appears:

Quote
Nov 12 16:32:05 sme-1 kernel: end_request: I/O error, dev sda, sector 512
Nov 12 16:32:05 sme-1 kernel: Buffer I/O error on device sda, logical block 64
.
.
Nov 12 16:32:04 sme-1 scsi.agent[6557]: disk at /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0

In the folder /media is only /floppy and /cdrom

Is there some help please?
« Last Edit: November 12, 2007, 10:20:06 AM by AlexG »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Mounting USB Disk
« Reply #1 on: November 12, 2007, 07:29:35 PM »
Hi

I am trying to mount a 30GB FAT32 USB Disk. But it does not work. The following error appears:

In the folder /media is only /floppy and /cdrom

Is there some help please?
Are you able to mount the drive on a Windows system?
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 AlexG

  • ***
  • 110
  • +0/-0
Re: Mounting USB Disk
« Reply #2 on: November 13, 2007, 01:47:51 AM »
Yes, I am.
This Disk is partitioned and formatted with Windows. (Primary, 30 GB FAT32)

The Kernel Message on SME shows:

Nov 13 09:00:33 sme-1 kernel: usb 1-1: new high speed USB device using address 3
Nov 13 09:00:34 sme-1 kernel: Initializing USB Mass Storage driver...
Nov 13 09:00:34 sme-1 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Nov 13 09:00:34 sme-1 kernel: USB Mass Storage device found at 3
Nov 13 09:00:34 sme-1 kernel: usbcore: registered new driver usb-storage
Nov 13 09:00:34 sme-1 kernel: USB Mass Storage support registered.
Nov 13 09:00:34 sme-1 scsi.agent[13161]: disk at /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0
« Last Edit: November 13, 2007, 02:11:58 AM by AlexG »

Offline akhilmathema

  • **
  • 42
  • +0/-0
Re: Mounting USB Disk
« Reply #3 on: November 13, 2007, 07:05:56 AM »
Hi,
Run fdisk -l. It should show your external drive and type of filesystem it has.
Make sure usb disk is detected by system. Run dmesg |grep usb. It should display the information regarding your disk.
Cheers,
Akhil

Offline AlexG

  • ***
  • 110
  • +0/-0
Re: Mounting USB Disk
« Reply #4 on: November 14, 2007, 05:46:47 AM »
Hi

Thanks for help, the system has detected the USB Disk on usb 1-1:

Quote
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usb 1-1: new high speed USB device using address 2
usbcore: registered new driver usb-storage


and fdisk -l shows:

Quote
Platte /dev/hde: 250.0 GByte, 250059348992 Byte
255 Köpfe, 63 Sektoren/Spuren, 30401 Zylinder
Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes

    Gerät Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1          13      104391   fd  Linux raid autodetect
/dev/hde2              14       30401   244091610   fd  Linux raid autodetect

Platte /dev/md1: 106 MByte, 106823680 Byte
2 Köpfe, 4 Sektoren/Spuren, 26080 Zylinder
Einheiten = Zylinder von 8 * 512 = 4096 Bytes

Festplatte /dev/md1 enthält keine gültige Partitionstabelle

Platte /dev/md2: 249.9 GByte, 249949716480 Byte
2 Köpfe, 4 Sektoren/Spuren, 61022880 Zylinder
Einheiten = Zylinder von 8 * 512 = 4096 Bytes

Festplatte /dev/md2 enthält keine gültige Partitionstabelle

Platte /dev/dm-0: 247.8 GByte, 247833034752 Byte
2 Köpfe, 4 Sektoren/Spuren, 60506112 Zylinder
Einheiten = Zylinder von 8 * 512 = 4096 Bytes

Festplatte /dev/dm-0 enthält keine gültige Partitionstabelle

Platte /dev/dm-1: 2080 MByte, 2080374784 Byte
2 Köpfe, 4 Sektoren/Spuren, 507904 Zylinder
Einheiten = Zylinder von 8 * 512 = 4096 Bytes

Festplatte /dev/dm-1 enthält keine gültige Partitionstabelle


But the USB Disk is not in the /media folder.

I found this error in the var/log/messages:

Quote

Nov 14 13:07:52 sme-1 kernel: SCSI error : <2 0 0 0> return code = 0x10070000
Nov 14 13:07:52 sme-1 kernel: end_request: I/O error, dev sda, sector 512
Nov 14 13:07:52 sme-1 kernel: Buffer I/O error on device sda, logical block 64

« Last Edit: November 14, 2007, 06:10:48 AM by AlexG »

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Mounting USB Disk
« Reply #5 on: November 14, 2007, 03:45:43 PM »
Quote
Nov 14 13:07:52 sme-1 kernel: Buffer I/O error on device

I found some posts by searching google that imply that this may be a kernel bug or a problem with some usb interface chips.

I was unable to find any reference to a specific bug.

Offline paul_NZ

  • ***
  • 79
  • +0/-0
    • http://www.csssnz.com
Re: Mounting USB Disk
« Reply #6 on: November 15, 2007, 09:15:11 AM »
I had (almost) the same problem as you yesterday and followed these instructions http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/dmay/smeserver/7.x/smeserver-usb-disk-howto.htm and everything worked perfectly.

I then use a little utility that allows a linux disk to be mounted under XP and browse as per normal.

Offline AlexG

  • ***
  • 110
  • +0/-0
Re: Mounting USB Disk
« Reply #7 on: November 15, 2007, 09:53:41 AM »
I have changed the USB case - and it works. Thank you for your help!

Best regards
AlexG

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Mounting USB Disk
« Reply #8 on: November 15, 2007, 01:34:35 PM »
Quote from: AlexG
I have changed the USB case - and it works.

Please post the brand name and chipset of the case that didn't work for the benefit of other users who might run into the same problem.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Mounting USB Disk
« Reply #9 on: November 15, 2007, 11:21:55 PM »
Moving this topic to the General Discussion 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 pcowley

  • 14
  • +0/-0
Mounting USB Disk - system sees it but can't list any files
« Reply #10 on: January 12, 2008, 11:00:12 AM »
Hi

I pluged my usbstick into my sme 7.3 server to transfer OpenVPN client keys - here is what var /var/log/messages has to say:

Jan 12 22:25:45 spock kernel: usb 1-1: new full speed USB device using address 3
Jan 12 22:25:45 spock kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jan 12 22:25:45 spock kernel:   Vendor: JetFlash  Model: TS8GJFV10         Rev: 0.00
Jan 12 22:25:45 spock kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jan 12 22:25:45 spock kernel: SCSI device sda: 16121855 512-byte hdwr sectors (8254 MB)
Jan 12 22:25:46 spock kernel: sda: Write Protect is off
Jan 12 22:25:46 spock kernel: sda: Mode Sense: 00 00 00 00
Jan 12 22:25:46 spock kernel: sda: assuming drive cache: write through
Jan 12 22:25:46 spock kernel: SCSI device sda: 16121855 512-byte hdwr sectors (8254 MB)
Jan 12 22:25:46 spock kernel: sda: Write Protect is off
Jan 12 22:25:46 spock kernel: sda: Mode Sense: 00 00 00 00
Jan 12 22:25:46 spock kernel: sda: assuming drive cache: write through
Jan 12 22:25:46 spock kernel:  sda: sda1
Jan 12 22:25:46 spock kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Jan 12 22:25:46 spock kernel: USB Mass Storage device found at 3
Jan 12 22:25:47 spock scsi.agent[12466]: disk at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host1/target1:0:0/1:0:0:0
Jan 12 22:25:48 spock fstab-sync[12561]: added mount point /media/NO_NAME for /dev/sda1

However when I try and list the files on it (and there are PLENTY!) it says:

[root@spock keys]# ls -al /media/NO_NAME
total 8
drwxr-xr-x  2 root root 4096 Jan 12 22:25 .
drwxr-xr-x  5 root root 4096 Jan 12 22:25 ..
[root@spock keys]# ls -al /media/NO_NAME
total 8

So it seems doubly strange that SME thinks there are 8 files (when there are many more including directories) but displays no files at all.

Anyone have any ideas?

Cheers
Pete