Re: [Nolug] Flash memory access, lack thereof

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Sun, 30 May 2004 18:58:49 -0500
Message-Id: <1085961529.3272.31.camel@haggis.homelan>

On Sun, 2004-05-30 at 17:49 -0500, John D. Tiedeman wrote:
> I'm just getting around to re-installing flash memory (digital camera)
> support since upgrading RH 9 to FC 1. On both machines I have added to
> /etc/fstab:
> /dev/sda1 /mnt/flash vfat user,noauto,umask=0 0 0
> and have created a directory /mnt/flash.
>
> When I type "mount /mnt/flash" on computer "A" I get "/dev/sda1 is not a
> valid block device." On "B" I get "mount point /mnt/flash does not exist."
>
> I have made sure that modules sr_mod, ide-scsi, vfat, fat, sg, sd_mod,
> usb-storage, scsi_mod, usb-uhci, and usbcore are installed in both
> machines.

Maybe it's not on sda1. dmesg & especially /var/log/syslog
are your friends in this regard.

Unplug the reader, do a "tail -n 30 /var/log/syslog", note
the timestamp, plug it back in, and tail it again. This is
what I get (with the unneeded stuff snipped out):

Unplugged:
18:53:28 kernel: usb 2-2.2: USB disconnect, address 7

Plugged in:
18:53:48 kernel: usb 2-2.2: new full speed USB device using address 8
18:53:49 usb.agent[4776]: usb-storage: already loaded
18:53:49 kernel: scsi3 : SCSI emulation for USB Mass Storage devices
18:53:51 kernel: Vendor: Model: Rev:
18:53:51 kernel: Type: Direct-Access ANSI SCSI
revision: 02
18:53:51 kernel: Attached scsi removable disk sda at scsi3, channel 0,
id 0, lun 0
                                               ^^^
18:53:51 kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0,
lun 0, type 0
18:53:52 kernel: Vendor: Model: Rev:
18:53:52 kernel: Type: Direct-Access ANSI SCSI
revision: 02
18:53:52 scsi.agent[4813]: disk
at /devices/pci0000:00/0000:00:10.1/usb2/2-2/2-2.2/2-2.2:1.0/host3/3:0:0:0
18:53:52 kernel: SCSI device sdb: 246016 512-byte hdwr sectors (126 MB)
                              ^^^
18:53:52 kernel: sdb: assuming Write Enabled
18:53:52 kernel: sdb: assuming drive cache: write through
18:53:52 kernel: sdb: sdb1
18:53:52 kernel: Attached scsi removable disk sdb at scsi3, channel 0,
id 0, lun 1
18:53:52 kernel: Attached scsi generic sg1 at scsi3, channel 0, id 0,
lun 1, type 0
18:53:52 kernel: WARNING: USB Mass Storage data integrity not assured
18:53:52 kernel: USB Mass Storage device found at 8

> Running df doesn't show anything but hda(s) and none for /dev/shm,
> whatever that is.

shm == 'shared memory', an in memory, temporary/scratch
filesystem. Data goes away after you umount it. Great
for really temporary, relatively small scratch files .

# mkdir /mnt/temp

# mount -v -t tmpfs /dev/shm /mnt/temp
/dev/shm on /mnt/temp type tmpfs (rw)

# cp /root/packet.cap.eth0 /mnt/temp
`/root/packet.cap.eth0' -> `/mnt/temp/packet.cap.eth0'

# dir /mnt/temp
total 3920
drwxrwxrwt 2 root root 60 2004-05-30 18:41 .
drwxr-xr-x 3 root root 4096 2004-05-30 18:39 ..
-rw-r--r-- 1 root root 4000059 2004-05-30 18:41 packet.cap.eth0

# umount -v /mnt/temp
/dev/shm umounted

# mount -v -t tmpfs /dev/shm /mnt/temp
/dev/shm on /mnt/temp type tmpfs (rw)

dir /mnt/temp
total 4
drwxrwxrwt 2 root root 40 2004-05-30 18:43 .
drwxr-xr-x 3 root root 4096 2004-05-30 18:39 ..

-- 
Ron Johnson <ron.l.johnson@cox.net>
___________________
Nolug mailing list
nolug@nolug.org
Received on 05/30/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST