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.
hi there all - have installed etch base plus file and printer server meta-packages on headless server. webmin installed for server control. using samba to share external usb drive on home network. fstab mount external drive by by-id nodes. everything works except that i have to manually command 'mount -a' on every reboot. i have tried to install usbmount but it did not help (not sure if i need to configure it somehow)
is anyone here able to help?
i would probably need a script at the end of the boot process to do 'mount -a' but i'm quite a newbie so not sure how to go about it
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675
Rep:
Can you post your /etc/fstab for us ? And the results of the command "lsusb" while the thumb drive is plugged in and mounted, just so we know what your computer is calling the usb drive.
Bus 006 Device 002: ID 0471:0829 Philips
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 003: ID 04b8:0005 Seiko Epson Corp. Stylus Printer
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 003: ID 054c:0069 Sony Corp. Memorystick MSC-U03 Reader
Bus 003 Device 002: ID 054c:0096 Sony Corp.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:092b Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 10b8:0bb9 DiBcom DiBcom USB DVB-T reference design (MOD300) (warm)
Bus 001 Device 001: ID 0000:0000
this is a file z90.rules i added to /etc/udev/rules.d
mount-a works fine and mounts the external disk every time so its not an fstab issue - it is a way to automount external usb disks ...
usbmount didnt work, not sure if pmount is installed and how to set it up if it going to help
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675
Rep:
Hi, the reason I asked for the whole /etc/fstab is that those disks can be auto mounted every time they are detected at boot by having the correct options set in /etc/fstab. If you'll post the rest of the fsab I can tweak them for you. If you want to do it yourself you can google it. You don't need a script to do it, you just need the right options in the right place in /etc/fstab.
auto is allready there but i think the problem is that the mounting fstab stage in the boot process comes earlier than usb device recognition so when mounting the disks are not yet registered in the system
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675
Rep:
Hi, you need to add a file to your /etc/udev/rules.d directory. Name the file something like "99-rules-to-mount-my-usb-drive" The only important part is the 99 in the begining. In that file put the following code :
#run mount -a everytime a block device is added/removed
SUBSYSTEM=="block", run+="/bin/mount -a"
To activate the new rule do an “/etc/init.d/boot.udev restart” (or “rcudev restart” where it exists).
Just to be fair, I'm not smart enough to come up with all that off the top of my head, so to give credit where credit is due, I found that here.....
common people there must be a way...
since my last post been chatin to some on irc and followed their advice - create a new init script:
nano /etc/init.d/mount-usb
#!/bin/sh
$mount-util = `which mount`
$mount-util -a
save and exit
update-rc.d mount-usb defaults
that didnt seem to work
also installed pmount and hal and still no automounting
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.