Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
The mount point is indeed a curious one. It implies that usb is the name of a user. If the mount point doesn't exist then it's not going to mount.
I've had similar problems when mounting a usb disk that's formatted as ext2 or ext3. Mount doesn't seem to like the umask option when applied to ext. I find umask is really only useful with FAT partitions.
Umask is an option for fat32 and ntfs filesystems. That is because the filesystems don't retain unix ownership and permissions, so these are set as options of the mount command. Different filesystems have different mount options, so refer to the man page for what the options are.
If you insert a pendrive or usb drive and you aren't sure what the filesystem is, you could run "sudo file -s /dev/sdb1" to find out.
You should not used fstab for removable mediums using USB and IEEE-1394 (aka Firewire or i.Link). I suggest using either use udev, dbus, or hal to automatically mount the drives. I just mount them manually.
It is better to mount a removable drive at any directory instead of /home. The /home directory is where users are located. IMHO, it is more convenient to mount removable drives at some directory in /mnt and setup a symbolic link from your home directory that goes to /mnt.
i did not know that.. may I ask why it is bad to use fstab? is it because init will try and mount them?
i will google/LQ search for udev/dbus/hal automounting... (feel free though to *me to any good links )
didn't you just tell me to do it automatically?
aaah...a much better idea. will do that.
again, thanks for the help!
<edit #1> small progress report..
I have moved all my mounts from /home and made symbolic links, can someone please check my syntax?
ln -s -t /media/usb1 ~/usb1
it seems to be working fine but is there a more elegant way t do this? not sure if the -t is needed... thanks!
<edit #2> pre-screwing something up question:
so I found this package of scripts, got the source and will begin playing unless I'm barking up the wrong tree...
..get it, source... tree?
USB storage devices can change from one device node and then to the next. Also can be using a different filesystem and/or different partition number. I suggest using HAL or dbus to automatically mount them. If that is too hard, manually mount them yourself. I prefer manually mount them because I have a few drives that uses different fileystems that needs different mount options.