Linux - HardwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..
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.
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.
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!
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.