Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: AlexG on November 12, 2007, 09:40:12 AM

Title: Mounting USB Disk
Post by: AlexG 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?
Title: Re: Mounting USB Disk
Post by: cactus 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?
Title: Re: Mounting USB Disk
Post by: AlexG 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
Title: Re: Mounting USB Disk
Post by: akhilmathema 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
Title: Re: Mounting USB Disk
Post by: AlexG 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

Title: Re: Mounting USB Disk
Post by: mmccarn 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 (http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=8gy&q=kernel%3A+Buffer+I%2FO+error+on+device&btnG=Search) 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.
Title: Re: Mounting USB Disk
Post by: paul_NZ 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.
Title: Re: Mounting USB Disk
Post by: AlexG 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
Title: Re: Mounting USB Disk
Post by: mmccarn 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.
Title: Re: Mounting USB Disk
Post by: byte on November 15, 2007, 11:21:55 PM
Moving this topic to the General Discussion forum, it is more appropriate there. Thanks!
Title: Mounting USB Disk - system sees it but can't list any files
Post by: pcowley 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