Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
You'll need to mount it first. As you plug it in, run "dmesg" to see which device it's attached to. You would mount the device with something like:
# mount -t msdos /dev/sda1 /mnt/usb
The -t option specifies the filesystem type, which might be different for your drive. "msdos" works for mine.
You might need to change the device, also. This will depend on what dmesg tells you.
The last bit of that line is the mount point, you can mount your drive where you like, but just make sure that that folder exists (so, if you did want to mount to /mnt/usb and it wasn't there already, you'd just do "mkdir /mnt/usb" as root).
If it is mounted successfully, you can just go into the directory you mounted to:
if it's not automatically mounted, you can mount it manually by creating a mountpoint (a directory) under /media/ and issuing in terminal:
sudo mount -t vfat /dev/sda1 /media/usbflash
or, if 'sudo' doesn't work, then su to become root and do
mount -t vfat /dev/sda1 /media/usbflash
where 'usbflash' would be the directory you want to mount (read and write) the usb-stick into. '-t vfat' means to use FAT32 as the filesystem, because most if not all of the usb flash memory sticks use fat32 as their filesystem..in most cases it can be dropped off, though.
EDIT: if that one above won't work, then try to use sda2, sda3, sda4 or such instead of sda1. sda1 is the first device _usually_ but not _always_. I've had many flash memory sticks that must me mounted as sda4 though there is no reason why they couldn't be sda1..I don't know why exactly. but that's a clue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.