Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-06-2005, 09:11 PM
|
#1
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
slack: usb memstick howto?
first day of classes today (  ) of my last year.. and i will be needing to use my memory stick now.
just wondering what device file i should look for to mount a memory stick i put in the usb port?
when i do toss in the stick i see the I/O light go nuts for afew seconds, but it doesnt automount or autodetect..
thanks for any hints
Last edited by nadroj; 09-06-2005 at 09:13 PM.
|
|
|
|
09-06-2005, 09:32 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Original Poster
Rep:
|
ok well i got it
i had to 'modprobe usb-storage' module for usb mass storage support then i could mount the device.. it was /dev/sda.
ill need to add the command to a startup script so its accessable each time.. which script would be most appropriate? if none then i guess just /etc/rc.d/rc.local.. should be easy.
the problem now though, it seems that it displays the dos names of folders etc, ie 'semest~1' for the folder 'semester 5'.. hopefully the mount manual says why.
thanks.
Last edited by nadroj; 09-06-2005 at 09:33 PM.
|
|
|
|
09-06-2005, 09:34 PM
|
#3
|
|
Member
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700
Rep:
|
Ah...with more than 500 points, I knew there'd be something fishy going on...let me read you last post! 
|
|
|
|
09-06-2005, 11:07 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Original Poster
Rep:
|
d'oh..
its not working anymore!
lol.
|
|
|
|
09-06-2005, 11:53 PM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Original Poster
Rep:
|
well, after checking the stick in M$ it turns out its fried...
|
|
|
|
09-07-2005, 02:35 AM
|
#6
|
|
Member
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700
Rep:
|
Ouch! Poor memstick... - Unlucky, dude!
J_K9
*offers new memstick* Would you like one? 
|
|
|
|
09-07-2005, 03:36 PM
|
#7
|
|
Member
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186
Rep:
|
(Aside from fried USB sticks
Quote:
Originally posted by nadroj
i had to 'modprobe usb-storage' module for usb mass storage support then i could mount the device.. it was /dev/sda.
ill need to add the command to a startup script so its accessable each time.. which script would be most appropriate? if none then i guess just /etc/rc.d/rc.local.. should be easy.
|
Firstly, in Slack you will find the commented line '/sbin/modprobe usb-storage' in /etc/rc.d/rc.modules. Simply uncomment that line.
And as for mounting the stick... and avoiding legacy dos filenames)
1. Add an extra line to the /etc/fstab file. For instance: (I use /mnt/usb)
/dev/sda /mnt/usb vfat defaults,sync,rw,user,noauto 0 0
2. Log in as root and type: mkdir /mnt/usb
You can then 'mount /mnt/usb' as much as you want
Note that the vfat option (as opposed to auto or msdos) allows normal filenames instead of dos filenames; 'semester 5' vs 'semest~1'.
Bear in mind that many USB sticks allocate themselves to /dev/sda1.
|
|
|
|
09-07-2005, 07:27 PM
|
#8
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Original Poster
Rep:
|
yes, please K9!
lol.. it was an older, i think from last December, memstick.. 32mb. i was planning on getting another, this is an excuse to now!  still.. i lost data..
at school today i tried the drive and it worked on one computer then stopped randomly afew minutes later and i havent been able to get it going agan
db
thanks for the info...
when i mounted it i did have the vfat filesystem type set, and it still displayed the 8.3 filenames.. if i recall, this is what i had: /dev/sda /mnt/usb vfat user,noauto,rw 0 0
oh well, no way of checking now that its junk!
|
|
|
|
10-12-2005, 10:02 PM
|
#9
|
|
Member
Registered: Oct 2005
Distribution: zenwalk
Posts: 88
Rep:
|
Hi!
I have the same problem. whn i try to mount /mnt/usb i get a message:
root@myhost:/etc# mount /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
root@myhost:/etc# dmesg | tail
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00
SCSI device sdc: 254720 512-byte hdwr sectors (130 MB)
sdc: Write Protect is off
sdc: sdc1 sdc2 sdc3 sdc4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
FAT: bogus logical sector size 60165
VFS: Can't find a valid FAT filesystem on dev 08:00.
FAT: bogus logical sector size 60165
VFS: Can't find a valid FAT filesystem on dev 08:00.
|
|
|
|
10-12-2005, 10:06 PM
|
#10
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Original Poster
Rep:
|
is the stick formatted? do you have an entry for /mnt/usb in /etc/fstab? if not then you will have to specify the full mount command when mounting the stick, ie 'mount /dev/name /path/toMount -t autofs -o rw'
or change the autofs to vfat
|
|
|
|
10-12-2005, 10:09 PM
|
#11
|
|
Member
Registered: Oct 2005
Distribution: zenwalk
Posts: 88
Rep:
|
I should wrote sdc instad of sda. it works now. sda is my hard disk,
but thanx
Last edited by den15; 10-12-2005 at 10:11 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:03 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|