Koozali.org: home of the SME Server

PCI USB card installation

Offline motor2000

  • *
  • 15
  • +0/-0
PCI USB card installation
« on: May 01, 2008, 04:49:54 PM »
Hi,

I am new linux admin, so be easy on me :)
Here is my problem, I added PCI USB 2.0 - Via VT6212L card to my SME 7.3 server.  It shows up under PCI devices if I run lspci, but if attach an external USB drive SME does not mount it automatically under /media and I don't see any /dev/sd* devices.  I am sure I doing something wrong.  Can someone help me out?

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0b.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
00:0c.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 08)
00:0d.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 08)
01:03.0 VGA compatible controller: Chips and Technologies F69000 HiQVideo (rev 64)
02:0e.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
02:0e.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
02:0e.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)

Thanks!

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: PCI USB card installation
« Reply #1 on: May 01, 2008, 05:04:52 PM »
there are some good USB troubleshooting tips in this howto.
http://wiki.contribs.org/USBDisks#USB_Disks

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #2 on: May 01, 2008, 05:29:38 PM »
Thanks mercyh.  This guide assumes that USB drive auto-mounts to /media/usbdisk1 or /dev/sdd1

In my case I don't get to this step.  I think I am having a problem with PCI USB card.

in the logs I see the following error:

May  1 10:27:11 fs01 kernel: usb 2-2: device not accepting address 2, error -71
May  1 10:27:11 fs01 kernel: usb 2-2: new full speed USB device using address 3
May  1 10:27:11 fs01 kernel: usb 2-2: control timeout on ep0out
May  1 10:27:11 fs01 kernel: usb 2-2: control timeout on ep0out
May  1 10:27:11 fs01 kernel: usb 2-2: device not accepting address 3, error -110
« Last Edit: May 01, 2008, 05:36:56 PM by motor2000 »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: PCI USB card installation
« Reply #3 on: May 01, 2008, 05:46:51 PM »
motor2000

Perhaps your card is a problem, but that Howto does give you instructions re how to determine where your USB drive is mounted, so read it all.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: PCI USB card installation
« Reply #4 on: May 01, 2008, 05:50:05 PM »
Google turns up a host of hits with the above error messages. Here is one of the better possibilities I found.

http://www.linux-usb.org/FAQ.html#ts6

One more thing, What is that drive formated too (Surely not NTFS)
« Last Edit: May 01, 2008, 05:53:40 PM by mercyh »

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #5 on: May 01, 2008, 06:14:28 PM »
It is NTFS :(  and I have to keep this way.  I tested Fat32 drive, it auto-mounts as it should, so PCI card works fine.

I thought is it should show up as /dev/sdd1, then I could
#mount -t nfts /dev/sdd1 /mnt/USB_drive

Is there workaround for NTFS drives?

« Last Edit: May 01, 2008, 06:24:16 PM by motor2000 »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: PCI USB card installation
« Reply #6 on: May 01, 2008, 07:14:51 PM »
motor2000

If you read all of the Howto it says to type:
mount

to determine where it has been mounted.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #7 on: May 01, 2008, 07:49:50 PM »
mount returns the following:


/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

I suppose usbfs on /proc/bus/usb type usbfs (rw) is my USB drive.

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #8 on: May 01, 2008, 07:58:10 PM »
I replugged the drive and it showed up under /media/WD-500Gb

Though I cannot see its contents.  Probably SME mounted it as FAT by default.

when I try to remount it as NTFS:

#mount -t ntfs /dev/sda1 /media/UBSDrive

I get the following self explanatory error:

#mount: fs type ntfs not supported by kernel

Honestly, I don't feel like recompiling the kernel on production system to support NTFS.
The solution to this issue is to get another 500gb drive dump the contents of original drive and reformat it to crappy fat32 (that should be long gone by now). 

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PCI USB card installation
« Reply #9 on: May 01, 2008, 07:58:43 PM »
Is there workaround for NTFS drives?

No, SME server has no support for NTFS file systems.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PCI USB card installation
« Reply #10 on: May 01, 2008, 07:59:41 PM »
The solution to this issue is to get another 500gb drive dump the contents of original drive and reformat it to crappy fat32 (that should be long gone by now). 

I'd recommend that you format it ext3.

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #11 on: May 01, 2008, 08:52:46 PM »
I'd recommend that you format it ext3.

This drive will be occasionally connected to Windows server.

Offline motor2000

  • *
  • 15
  • +0/-0
Re: PCI USB card installation
« Reply #12 on: May 01, 2008, 09:30:36 PM »
No, SME server has no support for NTFS file systems.

Will is be supported in SME 8?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PCI USB card installation
« Reply #13 on: May 01, 2008, 09:38:20 PM »
Will is be supported in SME 8?

No. Red Hat Enterprise Linux 5 does not support ntfs file systems. Therfore CentOS 5 does not. Therfore SME 8 will not.

You can partition the drive, and make some of it NTFS and some of it EXT3.

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Re: PCI USB card installation
« Reply #14 on: May 02, 2008, 11:35:00 AM »
Quote from: motor2000
This drive will be occasionally connected to Windows server.

http://howtoforge.com/access-linux-partitions-from-windows

It's as easy as:
"To copy a file/directory from a Linux partition to your Windows partition, right-click on the file/directory and select Save:"

...works for years for me now...
(and imho is much safer in this direction since ext3 is open knowledge no need to hack a thing)

Regards
reinhold
............