[SOLVED]Cannot move files from mounted usb drive

When I try to move a file off of my usb drive I get the following error:
mv: cannot remove ‘homework-1.txt’: Permission denied
The usb drive is mounted to a folder that I created as a normal user in my home directory. However, when I call ls -l on my home directory it says that the directory I'm using as a mount point is owned by root:
$ ls -l | grep mnt/
drwxr-xr-x 10 root root 4096 Dec 31 1969 mnt
When I unmount the flash drive, the ownership of the mount point changes back to me:
$ ls -l | grep mnt/
drwxr-xr-x 2 hugo hugo 4096 Feb 4 16:12 mnt
When I move the file I want as a super user it works but I don't get to retain ownership of the file anymore.
How can I make it so that when I mount the usb drive I have access to it as a normal user?
Last edited by Hurricane (2014-02-05 20:19:37)

Mr.Elendig wrote:
fivedigits wrote:
Seems to me that udev is giving ownership of the device to root and no write permission to world. Try adding something like:
SUBSYSTEM=="block" ID_BUS=="usb" GROUP="users" MODE=0660
to /etc/udev/rules.d/10-locale.rules
Read up on http://www.reactivated.net/writing_udev_rules.html
no, just no.
To expand on this... the rule changes permissions on all USB block devices (and will change permissions on some sysfs nodes as well), which is dangerous and doesn't accomplish what the OP wants -- to change permissions on the filesystem. You've also given the rule an irrelevant name (locale? wat?), and then point to an incredibly outdated resource (last updated nearly 6 years ago!!!) about udev rules. udev(7) is far more relevant and up to date. It doesn't mention outdated commands which no longer exist (udev$foo were all merged into udevadm).

Similar Messages

  • Cannot emtpy trash containing a file from FAT32 USB drive

    Hi
    I had copied a .app file from another mac over a network to my FAT32 USB drive. I then deleted the file from the USB drive per normal it went to trash. The problem is that i cannot empty this one file out of trash.
    What iv tried thus far:
    - I tried restarting.
    - I tried dragging it back onto the USB and deleting again.
    - I tried dragging it onto my desktop, upon which it asked for my system password, and then deleting again.
    - I tried putting it back on the USB drive, restarting in windows XP, and tried deleting in windows.
    None of the above has worked. The file is Zero KB. Windows gave an error with something about the file is not completed...?
    Thanks in advance
    cheers

    Thanks but this did not work either. Below i have pasted the result form the terminal screen:
    rm: random.app/Contents/Resources/BrushStrokes_TextOnly.Label.pox/Contents/Material /A317E08E-39E8-11D9-8C94-000A95C37E10.: No such file or directory
    rm: random.app/Contents/Resources/BrushStrokes_TextOnly.Label.pox/Contents/Material : Directory not empty
    rm: random.app/Contents/Resources/BrushStrokes_TextOnly.Label.pox/Contents: Directory not empty
    rm: random.app/Contents/Resources/BrushStrokes_TextOnly.Label.pox: Directory not empty
    rm: random.app/Contents/Resources/Picture-in-Picture_TextOnly.Label.pox/Contents/Ma terial/AFEBFBC8-39E8-11D9-8C94-000A95C37E10.: No such file or directory
    rm: random.app/Contents/Resources/Picture-in-Picture_TextOnly.Label.pox/Contents/Ma terial: Directory not empty
    rm: random.app/Contents/Resources/Picture-in-Picture_TextOnly.Label.pox/Contents: Directory not empty
    rm: random.app/Contents/Resources/Picture-in-Picture_TextOnly.Label.pox: Directory not empty
    rm: random.app/Contents/Resources/Postcard_TextOnly.Label.pox/Contents/.de0490.002/ BBB1382E-39E8-11D9-8C94-000A95C37E10.: No such file or directory
    rm: random.app/Contents/Resources/Postcard_TextOnly.Label.pox/Contents/.de0490.002: Directory not empty
    rm: random.app/Contents/Resources/Postcard_TextOnly.Label.pox/Contents: Directory not empty
    rm: random.app/Contents/Resources/Postcard_TextOnly.Label.pox: Directory not empty
    rm: random.app/Contents/Resources: Directory not empty
    rm: random.app/Contents: Directory not empty
    rm: random.app: Directory not empty

  • Can't open office files from my usb drive

    Dear forum
    Sins a few weeks ago i am not able to open office file from my USB-drive.
    However i can copy the file to the desktop and than i can open them.
    I have this problme only (for as far i know) with office files.
    greetings Ypkoba

    If the drive is NTFS format, the Mac can read, but not write thiose drives natively.
    So the issue may be that the temp file and the output file cannot be created on the same drive.

  • Locked Windows/Folder, Cannot Move Files On External Hard Drive

    I'm running Tiger 10.4.11 on an iMac and am the only user, and therefore, administrator. I'm encountering a weird, albeit small, problem on one of my external hard drives (Seagate 320 gigs): I have boatloads of video files stored on the drive, but suddenly cannot move files into folders within the drive (I see a white "do not enter" kind of a sign over whatever icon I try to move). I can't move these files off the drive and onto my iMac's internal hard drive, either. I can only delete them. I can add new files to the drive, but then cannot move those either (can only delete them).
    The folders and drive are not locked, I have read & write access, etc., so there doesn't seem to be any reason for me to be barred from moving items. Any clues? Many thanks.

    Thank you for your reply and kind welcome.
    That's a great tip, but that box was already checked, so I'm afraid that wasn't a solution. The problem ended up "solving itself" after I left my machine off for the day while I went to work. I may never know why that error occurred, but I certainly don't care, as long as it doesn't happen again. Take care.

  • Whats the best way to move files from a hard drive that wont boot?

    I made a bootable USB disk and it appears to work fine. I can still read and open files on the old disk (admin account only) from the new USB drive the old one doesn't boot. I don't have a backup but would like to move files to the USB and then reformat the old drive. 
    Whats the best way to capture the data?
    There are four user accounts on the old drive. Only one on the new drive so far. Do I need to set up four accounts on the new drive in order to copy data from each?

    Time Machine is for making backups and restoring ones it previously created. It doesn't restore data backed up or copied in other ways. In your case, it's better to use a cloning utility or manually drag the files than it is to use Time Machine.
    (124317)

  • .DS_store won't let me move files from one external drive to another

    I am trying to move some music files from one external harddrive to another.  They are both connected to my mac mini.
    In the "from" harddrive I have a folder with a bunch of music files in it and it also has a new file in it called DS_store. When I open this folder and select all, it naturally selects all of my music files and this DS_store file.  When I try to drag all of this to the "destination" harddrive I open the folder that I want to drag them to which already has some music and it has the DS_store file too, it won't let me drag the files to it   It says something like there is already a DS_store file there.  So I tried deleting that file from each external drive and it just reappears.
    If I create an empty folder in the destination drive, I can drag all of the files to it.  The problem is I want the new files to be in the same folder with the older files.  
    In addition there are a few other ghost type files that have shown up too.
    Any suggestions would be welcome.  Thanks.

    If you're copying from a FAT-formatted volume, do as below.
    Back up all data.  
    Select the text on the line below by dragging across it. Don't include the blank space at the end of the line. Only the text should be highlighted.
    dot_clean -m
    Copy the selected text to the Clipboard by pressing the key combination command-C.  
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Now switch to the Finder and and select the icon of the FAT volume. Drag into the Terminal window. More text will be added to what you entered.
    Click in the Terminal window to activate it, then press return.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear. Then quit Terminal and try the copy again.

  • [SOLVED] Cannot move file to trash

    Hi
    When i try to delete files they are deleted but they do not appear in trash bin. So when i click on "Move to trash" the pop up window appear and say:
    Cannot move file to trash, do you want to delete immediately?
    What am i doing wrong?
    Last edited by Shark (2011-03-09 08:23:27)

    @stlarxh
    I have already got installed gvfs. Interesting thing is that the Trash folder under ~/.local/share/Trash
    have the following permission:
    drwx------ 4 root root 4096 Feb 27 21:57 Trash
    On Ubuntu it has this permissions:
    drwx------ 5 saso 1000 4096 Sep 20 10:19 Trash
    If i change permission from root to my username i can't delete files at all. Has this got something with group 1000? How can i add group 1000?
    @emk
    my fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    devpts /dev/pts devpts defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid 0 0
    /dev/sda3 / ext4 defaults 0 1
    /dev/sda1 /media/Razno ext4 users,auto,errors=remount-ro 0 1
    /dev/sda5 swap swap defaults 0 0
    /dev/sda3 is ArchLinux, /dev/sda1 is a custom partition.

  • I'm not able to move files from my mac to my hard drive, but i can move files from my hard drive to my Mac.  Would really like to make more room on my mac-any suggestions to get these files onto the hard drive?

    When i plug my external hard drive into my mac i'm able to see all the files on it and move files off the hard drive to the mac, but not the other way around.  I need to make more room on my mac and would really like these files to be on this particular external hard drive.  Any help would be great!
    Thank you
    Kris

    Thank you all.  Sounds like i might as well buy a new (mac OS supported) external hard drive.  Not worth the hassle/risk of taking all the old files off my current external HD. 
    Really appreciate all your help!
    Kris

  • Cannot delete file from external hard drive (error code 36) in Finder, but Terminal is ok

    I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport.  I've been using the passport for about a year now without any problems on older Macbooks in my house.  I used to be able to read and write to this drive no problem.  I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive.  When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem.  If I try to delete that folder I just created, I get this error:
    The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
    (Error code -36)
    The folder has nothing in it whatsoever.  I just created it.  But if I go to Terminal and I run
    rm -rf "untitled folder"
    This works fine.  Why is Terminal acting different than Finder?  This does not happen on my other Macbooks.  Thanks in advance.

    Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!

  • Running my .mp4 Movie files from an External Drive

    I have quite a few familiy movies etc that I've put together using FCP and I've sent these to itunes as .mp4 files which I then playon our TV through the apple TV module.
    However I'd really like to be able to store these home movies on an external drive to save my HD space and also keep them safe.
    Is it possible to trasfer all of these .mp4 files in my itunes movies folder onto an external drive and run them from there on my apple TV?
    Thanks,
    Steve

    No, Michael Allbritton's (MA) method just copies the files you have selected to consolidate to the location you have temporarily designated in preferences.  MA didn't mean "library" as being the library file (library.itl) but the "collection".  Your files would still all be managed from the same iTunes library file on your internal drive but the movie files you selected to consolidate would now be referenced to their new location on the external drive.
    Note the difference between these two methods:
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    do not confuse moving your whole folder and library with moving just media files as in
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
    Moving your movies will only apply to your current collection.  If you add movies in the future you will need to make sure they are on the external drive, then hold down the option key while dragging the file to iTunes to tell iTunes to not copy it to your internal drive (which has been re-set as the location for your media folder after the move directions).

  • How to find movie file from external hard drive in imovie?

    i shot 29 gig of video on the road. i imported it into my macbook to the desktop. then i drag and dropped it into an external hard drive. now i have since dragged and dropped the file to my imac at home to work with it in imovie, but imovie cannot find any mpeg or any such movie file. i then tried to put it back to the canon hg10. after i plugged in the canon, i dragged the movie folder to the canon and it imported 29 gig. but the canon does not show any new movie files in the video mode. when i open import options in imovie, no new movies appear. any ideas?

    For iMovie to see your file, it must be either on the internal drive, or it can also be on an external drive that is formatted as Mac OSX Extended (Journaled). (Not FAT32).
    For the internal drive, your clips must be stored in a folder inside the Movies/iMovie Events/ folder.
    For the external drive, your clips must be stored in a folder within the iMovie Events folder at the top level of the drive. Move your files there and then start iMovie, and it should see them.
    Message was edited by: AppleMan1958

  • Can I move files from one hard drive to another without replacing/duplicating existing files?

    Long story short, my work purchased a Macbook Pro and copied all of my files from my iMac to my new Macbook Pro. I've had to work on my iMac before my laptop was fully ready and now I need to transfer more files over to my Macbook Pro.
    Is there a way that I can drag contents from my profile folder (documents, downloads, etc.) to my Macbook without have to moving 100+ gbs of information. Basically, is there a way that the computer can recognize that "Folder A" already exists on my Macbook Pro and it will not ask to replace that folder?
    I am sorry of my question is vague; I'll rephrase if necessary.

    Well, if you drag the contents of your "Documents" folder (on iMac) into your new "Documents" folder (on MacBook Pro) for instance, and choose "Do Not Replace" while checking the "Apply to All" box, it will only transfer new items (this does not include updated items). Now if the new items are in folders that exist under "Documents", then you may need to go into individual folders and repeat this process. That's the only way I can think of doing it. I'd hold off to see if anyone else has a better answer. Good luck!

  • Cannot Delete Files From a Flash Drive

    I let a friend of mine borrow my flash drive so that he could do some type of system recovery or something on his microsoft surface tablet. He gave it back to me so I could use it for something I need to do, but he did not delete any of the recovery files, so I currently do not have enough memory to use it for what I need it for. I tried deleting the items and everytime I receive an error message and I cannot delete them. If any one has any ideas of what I can do to fix this I'd really appreciate it. I right clicked and went to get info to check the permissions and it said read and write was enabled so I'm not sure what else to do.

    Sweet...that totally worked. Thank you!

  • How to move files from old hard drive with SATA dock?

    I just upgraded my hard drive and now need to transfer the data from the old hard drive to the new.  I was told to use a SATA dock but I am not quite sure how to use one.  I thought it best to either find out how to use one or find out if there is a better way rather than going about it on my own.  How do I solve this quandry?

    Click on edit, and then preferences.
    Click on advanced, and click on both
    keep my song organised and
    copy my songs to my itunes library
    Now, from your old hard drive, go to your old itunes folder, and drag each artists folder into itunes. You can do it all at once if you have a few artists, but there have been reports of itunes locking up if too much is being is being imported at once

  • I cannot download files from my Google Drive folder. Every time I try I get the message "The page isn't redirecting properly . . ."

    This is a new install of Firefox. Everything works OK in Chrome or MSIE. I deleted google cookies and drive.google cookies, but no success.
    I have followed this advice:
    "You can set the Boolean pref network.cookie.thirdparty.sessionOnly to true on the about:config page to have third-party cookies act as session cookies." No success.
    I checked this:
    network.http.sendrefererheader - it is set to 2 (default)

    ''modrab [[#question-1050089|said]]''
    <blockquote>
    This is a new install of Firefox. Everything works OK in Chrome or MSIE. I deleted google cookies and drive.google cookies, but no success.
    I have followed this advice:
    "You can set the Boolean pref network.cookie.thirdparty.sessionOnly to true on the about:config page to have third-party cookies act as session cookies." No success.
    I checked this:
    network.http.sendrefererheader - it is set to 2 (default)
    </blockquote>
    Deleting the cookies.sqlite file did the trick, although I have no idea why - or why it wold be corrupted, since it was a fresh install of Firefox.
    Thank you for your quick response.

Maybe you are looking for

  • Project Online tenant - Can we transfer instances of a tenant to another instance

    Firstly, I do believe I have seen and heard that we can create upto 3 instances of Project Online with a single tenant.  Is this correct? I was hoping to create one for testing before deploying stuff to production instance.  Question, are there tools

  • What will Time Machine/T.C. actually backup?

    1. A firewire drive mounted. 2. a NAS drive mounted. 3. Of the mac's files, will it take everything, OS included, or just the documents/movies/music it finds? What about the desktop junk? Can you specify what? 4. Can you tell T.M. when to do the back

  • Qualified Updated Selections not Saved in Import Map

    Hello, I create a new Import Map and Set the Qualified Update setting on a qualified table.  When I reopen the map, the Qualified Update option is saved but not the selections for the qualified update.  The defaults are saved:  all fields are selecte

  • JUNIT and OSB

    Hi can I use JUNIT to generate messages for testing proxy service if yes then kindly help me out with some example.

  • Help in understanding SAP CRM 6.0

    Hi I am new to SAP CRM and would appreciate someone sending me the documents or links or files or PDF for SAP CRM 6.0. (Base customisation/Marketing and Campaign mgt/Interaction center/Sales and others) Thanks in Advance. Bala