LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2002, 04:18 PM   #1
uttamsaxena
Member
 
Registered: Jul 2001
Location: india
Distribution: Red hat 7.2
Posts: 33

Rep: Reputation: 15
USB storage device


I have a small USB storage device. How can I mount this drive and see the content stored on this device. The device is known as pen drive.

manual says add following line in usbmgr.conf (in /etc/usbmgr):

vendor 0xd7d product 0x 100 module scsi_mod, usb-storage.

But I am unable to find the file usbmgr.conf. Please help.
 
Old 06-19-2002, 06:29 PM   #2
wincen
Member
 
Registered: Jun 2002
Posts: 33

Rep: Reputation: 15
is that a pen drive / keychain drive?
 
Old 06-20-2002, 04:21 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
do you have USB support enabled in your kernel??
 
Old 06-20-2002, 02:07 PM   #4
uttamsaxena
Member
 
Registered: Jul 2001
Location: india
Distribution: Red hat 7.2
Posts: 33

Original Poster
Rep: Reputation: 15
Yes it is a pen drive. and my kernal supports USB drive but I dont no how to mount it by editing fstab file so that I could see the contents of the drive. Can any one tell what line should be added to fstab file for the USB pendrive
 
Old 06-20-2002, 02:11 PM   #5
progster
Member
 
Registered: Feb 2002
Distribution: ubuntu
Posts: 76

Rep: Reputation: 15
mount /dev/input/devicehere bla users bla rw

something like that

~Progster
 
Old 03-18-2003, 11:28 AM   #6
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
If anyone wouldn't mind posting some real information on what to enter into /etc/fstab, that would be great! I am in the same boat, I have a 128mb USB pen drive that would be wonderful to have access to and *maybe* even boot from (that would be awesome if anyone has any suggestions!)

Is there a good resource that lists the fstab entries for some of the manufacturers?
 
Old 03-18-2003, 12:09 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,013

Rep: Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877
With RH 8.0 you should be able to mount it as such assuming no other SCSI hard drives:
Manually:
mount -t vfat /dev/sda1 /mnt/<mount point>

For the fstab it should be like any other vfat partition. I would add the noauto options so its not automounted on bootup.

I don't use RH 8.0 but the drive should also show up in your hardware info.

I don't know how USB system works with RH 7.2 but try it using the same method.

Last edited by michaelk; 03-18-2003 at 12:10 PM.
 
Old 03-18-2003, 04:29 PM   #8
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by michaelk
With RH 8.0 you should be able to mount it as such assuming no other SCSI hard drives:
Manually:
mount -t vfat /dev/sda1 /mnt/<mount point>

For the fstab it should be like any other vfat partition. I would add the noauto options so its not automounted on bootup.

I don't use RH 8.0 but the drive should also show up in your hardware info.

I don't know how USB system works with RH 7.2 but try it using the same method.
The above should work.

I get pictures off of my Sony DCR-PC110 like this. And Redhat added the /dev/sda1 entry in fstab under mount point /mnt/camera as soon as I plugged it in. Boy, was I impressed!!

If it doesn't work for some reason or if you're using another/older distro, you can download the SG3 Utils package , install it and run sg_scan. It will scan and report your scsi drives including usb mass storage devices.

HTH

Last edited by nxny; 03-18-2003 at 04:31 PM.
 
Old 03-18-2003, 06:08 PM   #9
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
1st try /proc/scsi/scsi - if u c a device, try michaelk's mount.
if no /proc/scsi/scsi ,
insmod scsi_mod
insmod usbcore
insmod usb-storage
insmod usb-uhci
insmod sg

then mount
 
Old 03-19-2003, 11:13 AM   #10
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
Wow, tons of great ideas already! Thanks guys. I am going to try all of these and get this thing working, but let me pose a slightly more complicated question while we're on this topic, since a few of you really seem to know what you're talking about with these things!...

I have a 128mb CigarPro brand USB mass storage device... My mainboard, a Biostar M7VIG pro *seems* to support booting from a USB device (I haven't verified how well that would work yet, but seems possible.) I've got an idea that would be wonderful to see in action... Imagine with me if you will...

We're standing in a computer classroom environment, and a user wants to start up one of the computers (a thin client with no HD, floppy, CD... just a nic, vid and proc.) In order to boot this computer, he/she needs to insert their "key" (the pen drive) into a front USB port, and then turn on the computer. This way, the computer is only accessible by legit users, the small nic module/driver can be loaded along with a DHCP request to trigger a normal NFS and TFTP request boot over the ether-segment.

Sorry, that was a long story, but integral for getting some real feedback on how I might be able to flash a small boot rom to this device, get it to read itself on startup and send out the DHCP request. Anyone done this ever, anyone want to help a brotha out?

Thanks, and feel free to steal the idea for yourself if ya like it, I personally think it's got some potent potential.


 
Old 03-19-2003, 11:43 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,013

Rep: Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877
Awhile ago I looked into trying to build a bootrom for my NICs. I saw it on linuxapps site where you could build and test your ethernet boot rom using a floppy disk. It would still be basically a boot floppy that would be on your USB flash drive and not a true ethernet boot rom.

My motherboard is also capable of booting with a USB device.
I've also been meaning to see if it will really boot from my flash drive.

However, anyone (wouldn't have to be the pen drive) with a USB boot drive and suitable boot disk could still possibly use the computer and access the network. So you would have to stick some security stuff in there somewhere.
 
Old 03-19-2003, 11:52 AM   #12
lazlow69
Member
 
Registered: Jan 2003
Location: Central New Jersey
Distribution: Knoppix to play, Slack current, OpenBSD stables
Posts: 111

Rep: Reputation: 15
Yeah, I recognize the security risk with this, but there would still be a login necessary to access the system, so it's more of a conveinece than a security solution, but thanks for the heads up!

As far as the NIC boot goes, it seems as though this Biostar M7VIG pro board has a boot from LAN option potential. A rep from biostar (btw, they are pretty darn good about answering questions on all types of subjects, good company all the way around) said that you can enable it in BIOS and it seems that if there aren't any other bootable devices, it will broadcast a DHCP request...

Has anyone seen a solution this simple, or am I missing something? Would I still need specific software on the host end in order to broadcast the correct request to a ltsp server?

Boy, lots o' questions, but it's fun stuff, aint it?!
 
Old 03-19-2003, 08:41 PM   #13
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
mount /dev/sda1

it works for me but first add the line to your /etc/fstab
 
Old 09-23-2006, 06:42 PM   #14
Earl Parker II
Member
 
Registered: Jan 2002
Location: Shelby, NC, US
Distribution: Linux Mint 19.2
Posts: 130

Rep: Reputation: 17
You might look at this thread:

http://www.linuxquestions.org/questi...09#post2435009

This approach worked with Slackware 11.0 RC3.
 
Old 09-23-2006, 06:44 PM   #15
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Why on Earth did you reply to such an old thread?!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
usb storage device R++ Linux - Hardware 7 04-11-2005 03:38 PM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 04:52 AM
USB storage device TazLinux Linux - General 9 12-04-2003 01:36 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:00 AM.

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