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.
And i run these commands to try and get it mounted:
# mkdir /mnt/muvo
# chmod 777 /mnt/muvo
# fdisk -l
(Find where the device thing is)
# mount -t vfat /dev/sda1 /mnt/muvo
(It is at /dev/sda1)
And then i use Konqueror to navigate to /mnt/muvo, and says "Access denied to /mnt/muvo.", so i # chmod 777 /mnt/muvo ..
And it says it again.
I even try using the Super File Manager in Konqueror [Root] to try and change the access levels and it tells me i have no access to change them - Even as Root!
Now, i can read & write to the /mnt/muvo directory as root, but i would prefer it as a normal user. My kernel is 2.6.9-gentoo-r9.
I would also like it to be auto-mounted to /mnt/muvo when i plug it in, is this possible?
It's possible to automount it if you apply the supermount patch to your kernel and recompile it, or use submount (that uses a module so you don't need to recompile your kernel). I prefer Supermount.
Otherwise, to be able to have read/write access to the partition as a normal user you will need to put umask=000 into the options on the fstab line you use to mount it.
Do you have an entry in your /etc/fstab file for this device? If so, what does it look like?
If you see a parameter called 'owner', change it to 'user' , this might do the trick for allowing non-root users access.
1) You may want to consider writing a udev rule to ensure that there is always a fixed symlink the device when you plug it in (e.g. a symlink at /dev/muvo)
2) If you're passing a mount command, unless you specify the 'users' or 'user' option, no one else but root can access it. Try:
mount -t vfat /dev/sda1 /mnt/muvo -o users,sync
Is the correct command to use to let others have access. Changing ownerships and permissions on the folder it's mounted to won't do anything.
If you want an fstab entry, make sure 'users' is also specified. (I've given 'sync' as well owing to my experiences with Linux, caching and my Muvo2. Namely, unless you give 'sync', anything you do to the Muvo isn't actually performed until the device is unmounted.).
cathectic:
# mount -t vfat /dev/sda1 /mnt/muvo -o users,sync
Gives the same problem, "Access denied.."
# mount -t vfat /dev/sda1 /mnt/muvo -o users,sync,umask=000
Works for my normal user.
So thanks to both of you for helping me with that.
Now for the automount, http://supermount-ng.sourceforge.net/
Should i be using that?
And if so, i used 'genkernel' to compile my kernel, how would i use the supermount patch?
Those supermount patches are quite old. Con Kolivas has up to date versions of the supermount patch for the current kernels. This one is for the 2.6.9 kernel. To apply a patch, cd into the kernel source then apply the patch with
patch -p1 < /path/to/supermount-ng207.diff
Change /path/to for the real path to where you saved the patch. When you configure the kernel enable supermount support on the filesystems/pseudo filesystems menu. (I'm unfamiliar with how to compile a kernel the Gentoo way with 'genkernel') If that goes OK you can use Supermount to mount removable media with a line like this in /etc/fstab
Thanks for your replies, but in fear of breaking my kernel i decided to use the 'submount' kernel module.
There is even a gentoo ebuild for it:
# ACCEPT_KEYWORDS="~x86" emerge submount
(It is masked)
And i added:
/dev/sda1 /mnt/muvo subfs users,sync,umask=000 0 0
to the fstab. Works fine now, i can access it as soon as i plug it in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.