Find the answer to your Linux question:
Results 1 to 9 of 9
Hello. Trying to figure how i can move a folder or file from my external hard drive to a folder on my ubuntu server. I tried doing the mv command ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    11

    Unable to move files or folder from Ext HDD to a folder in ubuntu


    Hello.

    Trying to figure how i can move a folder or file from my external hard drive to a folder on my ubuntu server. I tried doing the mv command but i think i might of done it wrong because nothing happens. I can not drag it over says about permissions. Any suggestions?

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,109
    What filesystem type is on the external hard drive where you have the folder? Is it a Linux system? windows?
    Have you checked the permissions on the directory you wish to copy to?
    Are you doing this as a normal user?
    Are you doing it using the sudo command to get root access? Don't know if it is necessary but probably.
    Open a terminal and check the permissions on the server, the directory you are trying to copy to with the: ls -l command.
    It's hard for anyone to say whether you used the mv command improperly since we don't know what you did??
    Drag and drop giving a permission error would probably be expected. You need to check the permissions.

  3. #3
    Just Joined!
    Join Date
    Dec 2012
    Posts
    11
    well i got to figure how to move it by command and if i right click on the home it says root and it says i dont have permission to change the permissions. Also now from my windows machine i can see the files but if i double click on any files i can not open them. So now i am stuck on that.

  4. #4
    Just Joined! ZeRoShock's Avatar
    Join Date
    Mar 2010
    Location
    Madison, Wi
    Posts
    18
    Use the sudo and chmod commands on the server to get permission to change the permissions. Are you using FileZilla on windows to manage the server or ssh?
    Last edited by ZeRoShock; 12-08-2012 at 01:31 AM.

  5. #5
    Just Joined!
    Join Date
    Aug 2012
    Posts
    15
    sudo cp -R /devicepath/filepattern <destination>

  6. #6
    Just Joined!
    Join Date
    Dec 2012
    Posts
    11
    This is what i am doing. Right now i have my external attached to my server so i can get all the stuff off of it. I can drag and drop onto my desktop but i can not drag and drop into a folder under my home folder. So i have to do move command which kinda is annoying. Because some file names are just long. So i would like to be able to drag and drop them anywhere but giving me a permission issue. So i am stuck on how to give the right access to it. Also from my Windows i can SSH to my computer and run commands fine. But if i want to go to the folder from my network and see the NAS device and i can get into it and go under say my "movies" folder i am able to go into that folder but to open a folder with in the "movies" folder i am unable to.

  7. #7
    Just Joined! ZeRoShock's Avatar
    Join Date
    Mar 2010
    Location
    Madison, Wi
    Posts
    18
    In the cli type the command to get a root nautilus window.

    sudo nautilus

    or when using the mv command in the cli start typing the file name and hit tab to auto fill the rest for long file names

  8. #8
    Just Joined!
    Join Date
    Dec 2012
    Posts
    11
    Ok the nautilus worked it opens a folder i can then go to my folder destination and drag and drop the files into that folder that way. Why does it work that way for? kinda annoying :P.. now i just need to figure my windows issue on opening folders on the nas device.

  9. #9
    Just Joined! ZeRoShock's Avatar
    Join Date
    Mar 2010
    Location
    Madison, Wi
    Posts
    18
    It works that way because you are using the root user too move the files. You have permissions issues that need to be resolved. Maybe use samba for file sharing or use the chmod command to change the file permissions on the Linux box.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •