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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I used the udevinfo output to find the UUID number for the filesystem. You mount the partition and not the entire disk. Using a device name like /dev/sda1 in fstab for a removable disk is a bad idea. Next time a different device like /dev/sdb1 might be used instead. You can use "UUID=" or "LABEL=" instead. You may want to use other options like iocharset if you need them.
Please read through the info manual for coreutils. It covers the commands like ls, cat and many others that are the most common you will use. Also read through the man page for the mount command. I'm sure that your slackware distro includes documentation as well.
I hope slackware uses udev, otherwise I might have made some bad assumptions.
Mounting your USB drive should be pretty simple. First, decide where you want to access the files from, or create a directory for that purpose. For example
Now just use the mount command, giving it the location of your drive and the location you want to mount it to as parameters. Going with the previous example, we have
mount /dev/sda /mnt/memstick
If that gives you an error, I would verify your device is actually at /dev/sda. You can do that by unplugging it, plugging it back in, and running "dmesg". If it doesn't mention /dev/sda, it will probably be /dev/sdb1 or something similar.
Now for the process of writing files back and forth. If you are using the terminal exclusively, just use the "cp" command to copy files to or from /mnt/memstick (or wherever you mounted the device). If you are using a graphical desktop environment, you can access it just like any other folder through your file manager. To unmount, simply use the "umount" command.
And finally, you can always find more information on any of these commands with good 'ole "man". Try
Cheers, and good luck!
PS - In case you're not aware of this, I'll give you a little incentive to research these topics on the web - it is possible (and fairly simple) to set the system up to automatically mount these devices to a predefined mount point, so you just have to plug it in. Your friendly local search engine will be able to tell you how.
im up for mounting it after each boot i need the practice xD thats why i got slackware. it was a distro that practicaly REQUIRES usage of the unix-like thing. if i get good at that, i can learn to take full advantage of linux, eh? i hear its reeeeally cool when you know how to use those unix commands
Seriously, some believe that "real operating sytems" started with Unix. The folklore is that DOS was based on Unix. Then DOS begat Windows, and the rest is history....
Yup, the history continues with a new monster entering the arena, called Windows NT. After that...headache was invented. Soon it became the must-have problem of everyone, but still it's most often met among Windows users.
mkdir -p /mnt/flash
mount -t vfat -o rw,users /dev/sda1 /mnt/flash
mount | grep sda1
that's what's described above. The '-p' with mkdir means that if neither 'flash' or '/mnt' exist, create both instead of crying out loud that '/mnt' doesn't exist so 'flash' can't be created. Just a step to make sure you get no whining when creating subdirectories. The options and fs type aren't necessarily needed with 'mount', but just as an example, that's how you give them. Fs type, '-t', is by default 'auto' which means it tries to figure it out itself. Options are usually 'defaults' which do include rw, but it doesn't harm to see how you can put them. After mounting the flash drive, see what the difference is between these commands: