LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-17-2018, 09:00 AM   #1
swisswiss
LQ Newbie
 
Registered: Feb 2017
Posts: 14

Rep: Reputation: Disabled
NAS disk data transfer SOLVED


hello folks,

So i set up a NAS with Open Media vault on a raspberry pi using a spare 1 TB (external powered usb HDD) and 2 TB (USB powered drive) drive. I now have a 4 TB USB external drive in my possession and would like to transfer the content of my NAS drives to it and ultimately replace the 1 and 2 TB drives by this single 4 TB drive.

Now i want to do this on my ubuntu laptop rather than copy pasting the files from the two drives via OMV/Network storage. also the pi has a hard time powering more than 1 usb powered drive.... so i went ahead and plugged the 2TB usb drive in my laptop and naturally it is telling me that the NAS file is restricted to the user i set up share with at the time...

so how can I access it? where can input the credentials to "unlock" the file. im sure this must be an elementary question but for the love of me i cant figure it out....

thanks in advance

EDIT AAAAAAAND I figured it out

sudo chmod -R 777 /path/to/share

Last edited by swisswiss; 03-17-2018 at 09:22 AM. Reason: Solved
 
Old 03-18-2018, 05:02 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
You should not change the file permissions, but execute the copy and access commands as root. File permissions are important, and should not be changed.

Whatever you used to perform the copy action, sudo should have been able to handle that. Ubuntu doesn't like it, but
Code:
sudo su
makes you root and you can do the command without sudo.

If you do it from the GUI, I think you can run a command as a different user with ALT-F2. Run as root and enter your sudo password. Not quite sure, Ubuntu spasmodically tries to avoid root causing a myriad of problems.

Purchase a powered USB hub. Then you can attach any USB powered device to the Pi. The Pi itself can also be powered from this hub.

jlinkels
 
1 members found this post helpful.
Old 03-18-2018, 06:14 AM   #3
swisswiss
LQ Newbie
 
Registered: Feb 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
You should not change the file permissions, but execute the copy and access commands as root. File permissions are important, and should not be changed.

Whatever you used to perform the copy action, sudo should have been able to handle that. Ubuntu doesn't like it, but
Code:
sudo su
makes you root and you can do the command without sudo.

If you do it from the GUI, I think you can run a command as a different user with ALT-F2. Run as root and enter your sudo password. Not quite sure, Ubuntu spasmodically tries to avoid root causing a myriad of problems.

Purchase a powered USB hub. Then you can attach any USB powered device to the Pi. The Pi itself can also be powered from this hub.

jlinkels
thx Jlinkels ill give that a shot. that being said, if i copy past the folder to the new drive then set up the drive to be shared over smb on OMV with a new user permission it will "overwrite" chmod -R 777 right?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Different transfer rates depending on how I attach to NAS Arseface Linux - Networking 2 06-27-2011 05:00 AM
Hard disk data transfer accessing error... aneeshcav Linux - Newbie 4 06-29-2010 07:54 AM
NAS over WiFi transfer rate bluesmanu Linux - Networking 2 03-28-2010 06:22 AM
Synchonizing data files and creating a NAS third data set Odyssey1942 Linux - Newbie 5 07-23-2009 06:44 AM
estimating the data transfer rate between hard disk sharathksin Programming 1 02-27-2006 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration