MDK 10.x - Mount USB Pen OK, But no permission to write
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
MDK 10.x - Mount USB Pen OK, But no permission to write
Good day everyone. been a while since I last visited.
What i'm here for.. and forgive me if it's too long a read.
a little background info;
At work I have a nice P4/2.8Ghz Intel Desktop board workstation I can use and abuse as I see fit. Last time Windows XP crashed (it would keep spawning svchost.exe >200 times) I reinstalled it as a dual boot machine with XP and Mandrake 10. I could happily plug in an USB pen drive and work with it (read and write) without having to alter settings. icon would appear when plugged, and disappear when unplugged. Then I had the brilliant idea to install Gvim, since I like having a GUI to work with. perhaps a bad choice, because when I started to use Split-open to have two files open in Gvim, the trouble started. Gvim would complain about '.filesomething.php.swp already exists!, and promted me with some options among which were to edit anyway, read only, recover or cancel. Either would give the same result, The file I was editing would be corrupted, would disappear off my USB pen, and hence forth Gvim would always complain about existing swapfiles that I can't see anywhere on my system!. If I take the USB pen drive to a Windoze machine after that, I can still read/write the drive, but files would be missing, and Scandisk would barf out the usual found.000 files with garbled leftovers of my precious php files.
Kind of out of annoyance, I wiped out MDK 10 and reinstalled from scratch with MDK 10.1, assuming that something newer would perhaps fix my problems.
The Gvim problem persists. still invisible, pre-existing swapfiles on my USB pen.. corrupting files.. buuut.. ls- al doesn't show any hidden files.. yet when you try rm .something.php.swp it asks to delete? yes, then it deletes. if you repeat it will just ask you again, since the file is still there.. shredding doesn't help either. edited file gone, ghost swapfiles everywhere. basicly my favorite tool Gvim has become.. unreliable. or maybe I should employ a different strategy, copy files off the pen into home dir, edit, then copy back? but then I need.. yes, you guessed it: write permission.
To the real problem now however; what I really want to solve first is: Why can MDK 10 dynamically mount an USB pen drive with read/write permissions for normal users, and MDK 10.1 cannot? my USB pen drive is still dynamically mounted, gets a desktop icon, but I don't get write permission because the object is owned by Root. on MDK 10, the object would be owned by the user that plugged it. I don't understand such changes in new releases of distros, but I gather there is some technical reason.
Once I get to work, I will post more relevant information.. since I guess someone would want to see the fstab file from my workstation.
Tailing some stuff from dmesg when the USB Pen is inserted, in case it helps:
usb 3-1: new full speed USB device using address 8
scsi6 : SCSI emulation for USB Mass Storage devices
Vendor: GENERIC Model: USB FLASH DISK Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 64000 512-byte hdwr sectors (33 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0
USB Mass Storage device found at 8
Now after plugging I see /dev/sda1 mounted on /mnt/removable.. owned by Root. as a normal user I get read permission, nothing else.
Please correct me if i wrong, but if the fstab entries are created and subsequently removed when I plug/unplug the pen, how am I supposed to remedy the situation? from what I see now I would expect that anything I do to the line for /dev/sda1 will get wiped out as soon as I unplug the device?
By mere chance I come across this post where Lord Zoltar has cdrw permission problems.. digging through /etc/udev/permissions.d, I do find a section for several types of USB storage devices, but I am unsure which I should change (or if I should change all of them) and to what? they all contain the user and group Root.