LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-23-2003, 02:10 AM   #1
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Rep: Reputation: 15
Angry mounting a flash disk


I have a USB flash disk (32mb) which is recognised fine by rh 7.3.
mount -l shows it mounted as usbdevfs /proc/bus/usb.
On further investigation usbmodules gives me that it is on /proc/bus/usb/001/002 as usb storage.

But when i go to this directory, i can't see my data.

I tried to set it up as a loop device as follows:

insmod loop.o
dd if=/proc/bus/usb/001/002 of=/file bs=1k count=32M
losetup /dev/loop0 /file 32M
mkfs -t ext3 /dev/loop0

The last step tells me that my file system is larger than the size specified and prompts me whether i want to proceed which goes ahead and makes my file system with some warnings about super blockk amongst other things.
i give the following commands:

mount -t ext3 /dev/loop0 /mnt/flashdisk

I get an error message that it can't get the superblock or something and fails.

How can i get my data from the flash disk? Is my approach wrong?

Koome
----------------------------------------------------------
it is better to ask stupid questions than correct stupid mistakes!
 
Old 09-23-2003, 08:43 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Whoa there! Stop what you're doing!

Boot into RedHat.

Insert flash drive.

Type cdrecord -scanbus.

Check to see if there's any mention of a removable drive there.

Look to see if the usb-storage module has been loaded by typing lsmod (that was a little L) as root.

If so, then check to see if you have any scsi drives listed in /dev:
ls /dev/sd*

If you have, then mount that as your drive. You shouldn't have to be playing around with looped filesystems at all!

mount -t vfat /dev/sda1 /mnt/flash

Of course, the directory /mnt/flash needs to be made first.
 
Old 09-24-2003, 01:34 AM   #3
ekoome
Member
 
Registered: Sep 2003
Posts: 52

Original Poster
Rep: Reputation: 15
I noticed i was going about it the wrong way. This is what i did:
cat /proc/scsi/scsi to check whether my flash disk was recognised as a scsi drive. True it was.
Then i just mount -t vfat /dev/sda1 /mnt/flash and there i was. I could now see my data.

thanks all
Koome
--------------------------------
how do you print voice mail?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting compact flash Jeebizz Slackware 5 03-19-2005 03:09 AM
Flash Drive Mounting sutho1 Linux - Newbie 6 09-23-2003 08:34 AM
mounting disk-on-chip flash memory SirRobbin Linux - Hardware 0 08-20-2003 08:07 AM
PCMCIA flash disk and mounting kronchev Linux - Hardware 3 07-30-2003 12:11 PM
Help! linux freezes for a while after mounting flash disk themuppeteer Linux - General 0 12-03-2002 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration