[26723] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 9.4.14: attach-usb

daemon@ATHENA.MIT.EDU (Daniel Jared Dominguez)
Thu Jan 26 10:16:04 2006

Message-Id: <200601261515.k0QFFMiY006326@gaston.mit.edu>
To: bugs@mit.edu
Date: Thu, 26 Jan 2006 10:15:22 -0500
From: Daniel Jared Dominguez <danjared@mit.edu>
X-Spam-Score: 1.217
X-Spam-Level: * (1.217)
X-Spam-Flag: NO
Errors-To: bugs-bounces@mit.edu

System name:		cheshire-cat.mit.edu
Type and version:	Athena 9.4.22; Linux 2.6.9-22.0.1.EL on i686; HP workstation
Display type:		Intel Corporation 82915G/GV/910GL Express Chipset Family Graphics Controller (rev 04)

Shell:			/bin/athena/tcsh
Window manager:		Metacity

What were you trying to do?

	User reported the following to OLC:

***********************

From: jacohen@MIT.EDU
To: olc-workstations@MIT.EDU
Errors-To: consult-www@MIT.EDU
Subject: Web Form Question from Joel Cohen
X-Spam-Score: -1.638
X-Spam-Flag: NO
X-Scanned-By: MIMEDefang 2.42

Hi,  I am trying to mount a usb flash drive on Athena. Specifically, I'm trying 
right now on one of the hp machines. When I tried to attach consult and run atta
ch-usb, I got the error that no usb's were recently connected to the computer. I
s there something else I can try?  Thank you, Joel


Web form sent from IP address: 18.187.0.79

*********************************************************************

What's wrong:
	attach-usb does not seem to work on HP workstations. I only checked using the top USB port immediately to the right of the Ethernet interface (while the back is facing you), but doubt that the choice of port matters. Here are my notes:

***********************

    [Thu 26-Jan-06  9:43am]
I logged in to cheshire-cat, plugged in a USB stick (PNY Attache'), and, after w
aiting about a minute, tried "add consult; attach-usb". Here is what I then got:
  athena% attach-usb
  Alert: attach-usb needs to run as root.  Either "su" to root
   before running attach-usb, or type the root password now:
  Password:
  Error: could not find any recently inserted usb drives.
  athena%

However, dmesg clearly lists the following output:
  <snip>
  usb 4-1: new full speed USB device using address 2
  Initializing USB Mass Storage driver...
  scsi2 : SCSI emulation for USB Mass Storage devices
    Vendor: UFD       Model:                   Rev: 7.77
    Type:   Direct-Access                      ANSI SCSI revision: 02
  SCSI device sdb: 128000 512-byte hdwr sectors (66 MB)
  sdb: assuming drive cache: write through
   sdb: sdb1
  Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
  USB Mass Storage device found at 2
  usbcore: registered new driver usb-storage
  USB Mass Storage support registered.

However, the following works:
  athena% su
  Password:
  cheshire-cat.mit.edu# mount -t vfat /dev/sdb1 /mnt/usb
  cheshire-cat.mit.edu# mount
  /dev/sda7 on / type ext3 (rw)
  none on /proc type proc (rw)
  none on /dev/pts type devpts (rw,gid=5,mode=620)
  usbfs on /proc/bus/usb type usbfs (rw)
  /dev/sda1 on /boot type ext3 (rw)
  /dev/sda6 on /usr/vice/cache type ext2 (rw)
  none on /dev/shm type tmpfs (rw)
  none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  AFS on /afs type afs (rw)
  /dev/sdb1 on /mnt/usb type vfat (rw)
  cheshire-cat.mit.edu# umount /mnt/usb/
  cheshire-cat.mit.edu#

*********************************************************************

What should have happened:
	The USB stick partition /dev/sdb1 should have mounted.

In the meantime, I suggested the following as a work-around:

***********************

    [Thu 26-Jan-06  9:56am]
To: "Joel A Cohen"  <jacohen@mit.edu>
cc: 
Reply-to: "Athena On-Line Consulting"  <olc@mit.edu>
Subject: Your OLC question about "workstations"
--------

Hi Joel,

I was able to reproduce the error you gave on an HP workstation in N42. We will 
report the bug for you. For the interim, you may also try the following on a pub
lic HP workstation:

        athena% tellme root               (Tells you the root password.)
        athena% su

Then, assuming that there are no other USB drives attached ("mount" with no argu
ments will tell you),

        athena# mount -t vfat /dev/sdb1 /mnt/usb

When you are done, you should run

        athena$ su
        athena# umount /mnt/usb

Let us know if this does not work.

--Jared
Athena Consulting

*********************************************************************

Please describe any relevant documentation references:
	N/A


--Jared
Athena Consulting
danjared@mit.edu
69 Chestnut Street (pika)
Cambridge, MA 02139

home help back first fref pref prev next nref lref last post