LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 09-06-2005, 09:11 PM   #1
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
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.
 
Old 09-06-2005, 09:32 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
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.
 
Old 09-06-2005, 09:34 PM   #3
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Ah...with more than 500 points, I knew there'd be something fishy going on...let me read you last post!
 
Old 09-06-2005, 11:07 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
d'oh..
its not working anymore!
lol.
 
Old 09-06-2005, 11:53 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
well, after checking the stick in M$ it turns out its fried...
 
Old 09-07-2005, 02:35 AM   #6
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Ouch! Poor memstick... - Unlucky, dude!

J_K9

*offers new memstick* Would you like one?
 
Old 09-07-2005, 03:36 PM   #7
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
(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.
 
Old 09-07-2005, 07:27 PM   #8
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
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!
 
Old 10-12-2005, 10:02 PM   #9
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
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.
 
Old 10-12-2005, 10:06 PM   #10
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
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
 
Old 10-12-2005, 10:09 PM   #11
den15
Member
 
Registered: Oct 2005
Distribution: zenwalk
Posts: 88

Rep: Reputation: 15
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.
 
  


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
Bootable USB memstick... Bigun Linux - Hardware 2 08-30-2004 02:06 PM
Printing in Slack 9.1-HowTo jymbo Slackware 5 07-07-2004 01:28 PM
Howto connect USB floppy drive - Slack/Gnome jhecht Linux - Software 4 07-06-2004 05:21 PM
Unable to mount USB memstick in RHL9 j_harishankar Linux - Hardware 4 05-23-2004 07:55 AM
Looking for simple font howto, slack 9 itsjustme Slackware 12 05-24-2003 03:11 AM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration