SlackwareThis Forum is for the discussion of Slackware 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.
so the lady friend blesses me with a cool mp3 player on this lovely xmas morning... great! now all i have to do is 'mount /dev/sda1 /mnt/mp3 and copy n paste my heart away! . i couldnt be any more wrong. for some strange reason when it mounts fine. but when i go to to take a song from my song dir and place it in the mounted dir. it get an access denied error. however when i copy something from the command line to the mounted dir, all is well.
why would copying from konqueror be so different from the cli? and how to i get around that. i certainly dont remember having a problem like this in the past.
not only that though, but when i chown the mounted dir. it doesnt stick, it changes back to root . theres gotta be a reason for this. any help here would be greatly appreciated as usual. its probably something really small that im missing. thanks anyway fellas.
nope, dont mind the asking at all. the prollem is a permissions deal. i mount the mp3 player, but only root can write to it. originally when i first tried to do it from the command line, i was already doing everything as root, therefore causing me to believe that the cp command would only work from cli.
however this problem is still going on, and i really cant figure out why i cant get users to write to this drive. and theres something else goin on too. i have an ntfs partition on my other harddrive. everything works fine with it. however, i just noticed that when i umount and and remount it, that now im locked out of that partition as a user. only root is allowed in.. how the hell did that happen
going back to the mp3 player issue. i added a line in my fstab to tell slack how to mount sda1 when i do. however it made absolutely no difference. what else do i have to do here???
ok, this is officially making no sense to me as of yet. according to the fstab man pages. having the 'user' option set in the file is supposed make it so that normal users can mount that partition... absolutely not! only root can mount it, yet it can be umounted by anyone 0_o . not only that, after root mounts it, only root can write to it. i spent all of yesterday rackin my brain over this. however i did find a way to mount it so that user can write to it as well. the command
mount /dev/sda1 /mnt/mp3 -o uid=[username]
allows for a particular user to write to the mp3 player cause then that user is acting as the owner of this. this is a pain in the ass to do everytime though, i shouldnt have to do that. bottom line is, i want to be able to mount it from user and write to it. the 'user' option in fstab is supposed to work that out for me, but im receiving no lovin. observe my fstab file and please please tell me where i might have errors in it.
you might ask why i have 'user' and 'users' in the same line. thats cause i was trying something out, and wanted to see how that would affect how i can mount/umount certain things.
also, riddle me this. why is it that when i umount my win2k partition, then remount it, that im then locked out of that partition (folder) as user guys, i can really use any input here, im really going crazy.
ok, this is officially making no sense to me as of yet. according to the fstab man pages. having the 'user' option set in the file is supposed make it so that normal users can mount that partition... absolutely not! only root can mount it, yet it can be umounted by anyone 0_o . not only that, after root mounts it, only root can write to it. i spent all of yesterday rackin my brain over this. however i did find a way to mount it so that user can write to it as well. the command
mount /dev/sda1 /mnt/mp3 -o uid=[username]
allows for a particular user to write to the mp3 player cause then that user is acting as the owner of this. this is a pain in the ass to do everytime though, i shouldnt have to do that. bottom line is, i want to be able to mount it from user and write to it. the 'user' option in fstab is supposed to work that out for me, but im receiving no lovin. observe my fstab file and please please tell me where i might have errors in it.
you might ask why i have 'user' and 'users' in the same line. thats cause i was trying something out, and wanted to see how that would affect how i can mount/umount certain things.
also, riddle me this. why is it that when i umount my win2k partition, then remount it, that im then locked out of that partition (folder) as user guys, i can really use any input here, im really going crazy.
Have you tried the uid or gid options yet? According to the man page for mount, under mount options for ntfs, unless you set the uid and/or gid when mounting the file system the files are owned by root and not readable by somebody else.
the error i get when i try to mount anything as user is "mount: only root can do that". but isnt that what the user option is for?? ans as far as my ntfs partition goes. from fstab it mounts just fine, anyone can access it. and yes, if i use uid options, then im not locked out. the confusion as far as that comes from the fact that i never put any uid option in my fstab file, so why does it work just fine from there?
i guess the main concern/confusion at this point would be the fact that the user option has yet to work for me, and i need to know why. cause i can take that option out, and absolutely nothing changes. bah... thanks again guys
Can I ask what you're typing from the command line as a normal user? It should be just `mount /mnt/mp3`. Don't put anything else because if you do, mount won't use the info in /etc/fstab it will use just your command line and you won't have permission because you're not root.
quite simply, thanks guys, everything worked out. i never knew you could mount with just using the mount dir. so. im normal again. till next time fellas
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.