[opensuse] Problem with mount via device notifier
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file. I seem to own the file and directory and have owner write permission, according to LS. Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either. The entry in the mount table reads /dev/sdb1 on /media/STORIES type vfat (rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush) Do I need some kind of magic in fstab or some hal entry? -- Vizzini: INCONCEIVABLE! Inigo: You keep using that word. I do not think it means what you think it means. - The Princess Bride -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 08:02 AM, Anton Aylward wrote:
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file.
I seem to own the file and directory and have owner write permission, according to LS.
Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either.
The entry in the mount table reads
/dev/sdb1 on /media/STORIES type vfat (rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
Do I need some kind of magic in fstab or some hal entry?
Mounting one of my Thumb drives (a patriot 16gig) I see the following: /dev/sdb1 /media/PATRIOT vfat rw,nosuid,nodev,uid=1000,utf8,shortname=mixed,flush 0 0 which looks like yours other than the uid. For any recent version of opensuse uids tend to start at 1000, so unless you migrated this system from the Pleistocene that might be a tad suspect. Just gotta ask: Are you sure there is no physical switch on this device for write protection that you forgot about? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 08:02 AM, Anton Aylward wrote:
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file.
I seem to own the file and directory and have owner write permission, according to LS.
Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either.
The entry in the mount table reads
/dev/sdb1 on /media/STORIES type vfat (rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
Do I need some kind of magic in fstab or some hal entry?
Also why are the mount options in parentheses? I've not seen that before. -- Explain again the part about rm -rf / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 18 September 2010, jsa wrote:
/dev/sdb1 on /media/STORIES type vfat
(rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
Do I need some kind of magic in fstab or some hal entry?
Also why are the mount options in parentheses? I've not seen that before.
I guess it is the output from running the "mount" command without parameters. It always formats things like that Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 12:58 PM, Anders Johansson wrote:
On Saturday 18 September 2010, jsa wrote:
/dev/sdb1 on /media/STORIES type vfat
(rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
Do I need some kind of magic in fstab or some hal entry?
Also why are the mount options in parentheses? I've not seen that before.
I guess it is the output from running the "mount" command without parameters. It always formats things like that
Anders
I took him at his word that it was from his mount table and leaped to the conclusion he meant /etc/mtab or /proc/mounts I've just never seen parens in either of those places. Further, he mounted via the Device Notifier, not a command line. Very odd. -- Explain again the part about rm -rf / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
jsa said the following on 09/18/2010 03:37 PM:
On 09/18/2010 08:02 AM, Anton Aylward wrote:
/dev/sdb1 on /media/STORIES type vfat (rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush)
Do I need some kind of magic in fstab or some hal entry?
Also why are the mount options in parentheses? I've not seen that before.
That's the output of the 'mount' command. In /etc/mtab they aren't there -- Over the last few centuries, mathematicians have demonstrated a remarkable tendency to underestimate the cryptanalytic powers of blunt and heavy objects. -- Jamie Reid, CISSP -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 18 September 2010, Anton Aylward wrote:
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file.
I seem to own the file and directory and have owner write permission, according to LS.
Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either.
It is vfat. The vfat file system has no concept of owner of file permissions, so it is not surprising that you can't set them. This is why the ownership of the files on the partition is set with a mount option The vfat file system also doesn't support any other kinds of attributes. If that is important to you, you need to reformat your USB stick with a better file system Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 18 September 2010, Anders Johansson wrote:
It is vfat. The vfat file system has no concept of owner of file
...has no concept of owner *or* file permissions I have a spelling checker, and a grammar checker, now can I have a "make sense" checker or a "read my mind and make sure it says what I wanted it to say" checker? Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 01:00 PM, Anders Johansson wrote:
On Saturday 18 September 2010, Anders Johansson wrote:
It is vfat. The vfat file system has no concept of owner of file
...has no concept of owner *or* file permissions
I have a spelling checker, and a grammar checker, now can I have a "make sense" checker or a "read my mind and make sure it says what I wanted it to say" checker?
Anders
That's what we do. ;-) I read it the way you thought you wrote it. -- Explain again the part about rm -rf / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 03:04 PM, jsa wrote:
On 09/18/2010 01:00 PM, Anders Johansson wrote:
On Saturday 18 September 2010, Anders Johansson wrote:
It is vfat. The vfat file system has no concept of owner of file
...has no concept of owner *or* file permissions
I have a spelling checker, and a grammar checker, now can I have a "make sense" checker or a "read my mind and make sure it says what I wanted it to say" checker?
Anders
That's what we do. ;-)
I read it the way you thought you wrote it.
Whew Anders and jsa are both -- on FIRE today (smokin...) :p p.s. - the mount command added the parentheses above :) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/18/2010 12:56 PM, Anders Johansson wrote:
On Saturday 18 September 2010, Anton Aylward wrote:
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file.
I seem to own the file and directory and have owner write permission, according to LS.
Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either.
It is vfat. The vfat file system has no concept of owner of file permissions, so it is not surprising that you can't set them. This is why the ownership of the files on the partition is set with a mount option
The vfat file system also doesn't support any other kinds of attributes. If that is important to you, you need to reformat your USB stick with a better file system
Anders
But he also said "Not only can I not modify the file" which I took to mean he could not write to the files. Maybe I attributed too much meaning to a casual phrase. -- Explain again the part about rm -rf / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 18 September 2010, jsa wrote:
But he also said "Not only can I not modify the file" which I took to mean he could not write to the files. Maybe I attributed too much meaning to a casual phrase.
Perhaps. Anton will need to clarify. I understood it to be about file attributes, ownership and permissions, not about the files themselves. If it is, then something deeper is wrong. Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson said the following on 09/18/2010 04:05 PM:
On Saturday 18 September 2010, jsa wrote:
But he also said "Not only can I not modify the file" which I took to mean he could not write to the files. Maybe I attributed too much meaning to a casual phrase.
Perhaps. Anton will need to clarify. I understood it to be about file attributes, ownership and permissions, not about the files themselves. If it is, then something deeper is wrong.
As in "something deeper is wrong" when one can't edit a file and write it back. Plenty of free space. -- An awesome response to XYZZY is available with the full registered version of Revenge of the Killer Surf Nazi Robot Babes from Hell. Type REGISTER for additional information. — -- Revenge of the Killer Surf Nazi Robot Babes from Hell (Demo Version) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson said the following on 09/18/2010 03:56 PM:
On Saturday 18 September 2010, Anton Aylward wrote:
When I mount a USB stick via the device notifier, I can't edit or change attributes of any file.
I seem to own the file and directory and have owner write permission, according to LS.
Not only can I not modify the file, but I can't chmod or chow/chgrp it as root either.
It is vfat. The vfat file system has no concept of owner of file permissions, so it is not surprising that you can't set them. This is why the ownership of the files on the partition is set with a mount option
The vfat file system also doesn't support any other kinds of attributes. If that is important to you, you need to reformat your USB stick with a better file system
Granted, but that doesn't address the real issue. I'm trying to edit the file. I can't; it won't let me save. I can't write back to the device. I can't see any reason why I can't write back to the device. I own the files and its mounted rw and all the rest. -- The future, according to some scientists, will be exactly like the past, only far more expensive. -- John Sladek -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 18 September 2010, Anton Aylward wrote:
Granted, but that doesn't address the real issue. I'm trying to edit the file. I can't; it won't let me save. I can't write back to the device. I can't see any reason why I can't write back to the device. I own the files and its mounted rw and all the rest.
In that case I guess John's suggestion that you look for a write protection switch on that stick is the best. Apart from that, I can't think of anything Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anders Johansson
-
Anton Aylward
-
David C. Rankin
-
jsa