On Mar 1, 2009, at 10:19 PM, Darrick Hartman wrote:

> David Kerr wrote:
>> How would I go about mounting a USB attached disk drive or memory  
>> stick
>> in Astlinux? I tried mount /dev/sda1 <mount-point> but get no such  
>> file
>> or directory error.  This would not be for use as kd but for general
>> purpose use (like drive for an ftp server).
>>
>> Thanks
>> David
>
> When you insert the usb device, type dmesg on the command line.  You
> should see something like:
>
> SCSI device sda: 16041613 512-byte hdwr sectors (8213 MB)
> sda: Write Protect is off
> sda: Mode Sense: 03 00 00 00
> sda: assuming drive cache: write through
> SCSI device sda: 16041613 512-byte hdwr sectors (8213 MB)
> sda: Write Protect is off
> sda: Mode Sense: 03 00 00 00
> sda: assuming drive cache: write through
>  sda: sda1
> sd 0:0:0:0: Attached scsi removable disk sda
> scsi 0:0:0:1: CD-ROM            SanDisk  U3 Cruzer Micro  4.05 PQ: 0  
> ANSI: 2
>
>
> mkdir /tmp/foo
> mount -t vfat /dev/sda1 /tmp/foo
>
> If you don't see anything when you insert the usb device, let me know
> what hardware you're using and what version of Astlinux.
>
> Darrick

I tested mounting a USB drive using trunk, on a net5501 before  
Darrick's r2541, and it worked fine.

Mar  2 09:03:57 pbx user.info kernel: usb 1-1: new high speed USB  
device using ehci_hcd and address 4
Mar  2 09:03:57 pbx user.info kernel: usb 1-1: configuration #1 chosen  
from 1 choice
Mar  2 09:03:57 pbx user.info kernel: scsi0 : SCSI emulation for USB  
Mass Storage devices
Mar  2 09:03:57 pbx user.debug kernel: usb-storage: device found at 4
Mar  2 09:03:57 pbx user.debug kernel: usb-storage: waiting for device  
to settle before scanning
Mar  2 09:04:02 pbx user.notice kernel: scsi 0:0:0:0: Direct- 
Access     SanDisk  Cruzer Mini      0.2  PQ: 0 ANSI: 2
Mar  2 09:04:02 pbx user.notice kernel: sd 0:0:0:0: [sda] 1000944 512- 
byte hardware sectors (512 MB)
Mar  2 09:04:02 pbx user.notice kernel: sd 0:0:0:0: [sda] Write  
Protect is off
Mar  2 09:04:02 pbx user.debug kernel: sd 0:0:0:0: [sda] Mode Sense:  
03 00 00 00
Mar  2 09:04:02 pbx user.err kernel: sd 0:0:0:0: [sda] Assuming drive  
cache: write through
Mar  2 09:04:02 pbx user.notice kernel: sd 0:0:0:0: [sda] 1000944 512- 
byte hardware sectors (512 MB)
Mar  2 09:04:02 pbx user.notice kernel: sd 0:0:0:0: [sda] Write  
Protect is off
Mar  2 09:04:02 pbx user.debug kernel: sd 0:0:0:0: [sda] Mode Sense:  
03 00 00 00
Mar  2 09:04:02 pbx user.err kernel: sd 0:0:0:0: [sda] Assuming drive  
cache: write through
Mar  2 09:04:02 pbx user.info kernel:  sda:
Mar  2 09:04:02 pbx user.info kernel:  sda1
Mar  2 09:04:02 pbx user.notice kernel: sd 0:0:0:0: [sda] Attached  
SCSI removable disk
Mar  2 09:04:02 pbx user.debug kernel: usb-storage: device scan complete
---
mkdir /tmp/foo
mount -t vfat /dev/sda1 /tmp/foo
---

worked as expected.

Lonnie



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to