Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-25-2005, 11:14 AM
|
#1
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Rep:
|
CLI copy is greater than GUI copy ?? 0_o
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.
|
|
|
12-25-2005, 11:20 AM
|
#2
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
nevermind -_-
disregard that last post... im an idiot, ill just leave it at that. 
|
|
|
12-25-2005, 03:03 PM
|
#3
|
Member
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245
Rep:
|
Quote:
Originally Posted by killahsmurf
disregard that last post... im an idiot, ill just leave it at that. 
|
If you dont mind me asking, what was the problem?
|
|
|
12-25-2005, 04:09 PM
|
#4
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
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???
|
|
|
12-25-2005, 04:37 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
What are your settings for the fs options in /etc/fstab? You can give users rights with the user or users option. I have:
/dev/sda4 /mnt/iriver vfat noauto,users 0 0
The keyword user lets a user mount/unmount the drive. Users does something similar, but allows any user to unmount it.
|
|
|
12-27-2005, 01:22 AM
|
#6
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
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.
/dev/hdb2 swap swap defaults 0 0
/dev/hdb3 / reiserfs defaults 1 1
/dev/hda1 /mnt/win2k ntfs ro,user,users,exec,umask=000 1 0
/dev/hdb5 /mnt/fat32 vfat defaults,user,rw,exec,umask=000 1 0
/dev/hdd /mnt/cdrom iso9660 noauto,users,ro,umask=000 0 0
/dev/hdc /mnt/dvdrom iso9660 noauto,users,ro,umask=000 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/mp3 auto noauto,user,users,sync 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
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.
thanks again fellas.
|
|
|
12-27-2005, 01:37 AM
|
#7
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
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.
/dev/hdb2 swap swap defaults 0 0
/dev/hdb3 / reiserfs defaults 1 1
/dev/hda1 /mnt/win2k ntfs ro,user,users,exec,umask=000 1 0
/dev/hdb5 /mnt/fat32 vfat defaults,user,rw,exec,umask=000 1 0
/dev/hdd /mnt/cdrom iso9660 noauto,users,ro,umask=000 0 0
/dev/hdc /mnt/dvdrom iso9660 noauto,users,ro,umask=000 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/mp3 auto noauto,user,users,sync 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
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.
thanks again fellas.
|
|
|
12-27-2005, 01:47 AM
|
#8
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
12-27-2005, 03:38 AM
|
#9
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
The record in your fstab seems to be correct.
What error message do you get, when you do as normal user ?
Concerning unmounting by anyone, option users is there exactly for this purpose. See the manpage for mount 
Last edited by dunric; 12-27-2005 at 03:40 AM.
|
|
|
12-27-2005, 09:17 AM
|
#10
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
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
|
|
|
12-27-2005, 09:23 AM
|
#11
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
here's my entry from the /etc/fstab file, might help you as well. You won't lose anything by trying, will you?
Code:
/dev/sda1 /mnt/flash vfat noauto,user,rw,umask=0 0 0
|
|
|
12-27-2005, 02:20 PM
|
#12
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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.
|
|
|
12-27-2005, 04:23 PM
|
#13
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
Quote:
Originally Posted by gilead
Can I ask what you're typing from the command line as a normal user? It should be just `mount /mnt/mp3`...
|
yes, it's something like that; logically it just type
as that's my folder. It works like a charm so it should work with you too 
|
|
|
01-01-2006, 08:09 AM
|
#14
|
Member
Registered: Mar 2005
Distribution: Slackware
Posts: 50
Original Poster
Rep:
|
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 
|
|
|
01-04-2006, 11:53 AM
|
#15
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
it is good to know that became solved 
|
|
|
All times are GMT -5. The time now is 01:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|