Notifications
Clear all

Linux Server CLI

4 Posts
2 Users
1 Likes
806 Views
(@christ143uk)
Posts: 51
Trusted Member
Topic starter
 

Hi,

So I have two Linux CLI servers which appear to have a similar set up. Both use ZFS to present different storage areas.

The one I am able to copy data from without any issues.

The second server I am attempting to copy data, using the same process, but I keep getting "operation not permitted"

The process is:

log in to server

"sudo su" and enter password which is accepted

fdisk -l

mount /dev/sdw2 /media/Seagate

cp -pRv /*example* /media/Seagate

Operation not permitted.

Does anyone have any idea why this would work on the one server but not the other?

Thanks in advance.

 

 

 
Posted : 25/05/2021 2:25 pm
benfindlay
(@benfindlay)
Posts: 142
Estimable Member
 

Some thoughts...

Are they running the exact same OS version of Linux, or are they perhaps different? Is the version of mount the same?

If different...perhaps they handle mounting differently, and therfore might one have mounted your destination drive read-only and the other read-write?

What do the permissions look like on the mounted drives in general (including the source drive)?

Alterntively, instead of just copying files in the manner you are, you could try to tar the contents of the source folder you want to acquire and save it onto the destination drive. That's generally my preferred method for extracting specific files/folders, when a full DD isn't viable.

Thanks,

Ben

 
Posted : 25/05/2021 2:38 pm
(@christ143uk)
Posts: 51
Trusted Member
Topic starter
 
Posted by: @benfindlay

Some thoughts...

Are they running the exact same OS version of Linux, or are they perhaps different? Is the version of mount the same?

If different...perhaps they handle mounting differently, and therfore might one have mounted your destination drive read-only and the other read-write?

What do the permissions look like on the mounted drives in general (including the source drive)?

Alterntively, instead of just copying files in the manner you are, you could try to tar the contents of the source folder you want to acquire and save it onto the destination drive. That's generally my preferred method for extracting specific files/folders, when a full DD isn't viable.

Thanks,

Ben

Hi,

Thank you for your response. I am currently out of the office but I will have another look tomorrow.

I have already attempted:

mount -o rw /dev/sd...... which seemed to mount the drive without any issues.

Thanks

 
Posted : 25/05/2021 3:22 pm
(@christ143uk)
Posts: 51
Trusted Member
Topic starter
 

@benfindlay

Hi Ben,

Thank you for your assistance, turns out that the drive could be written to when I used EXT4.

Also thank you for the "TAR" advice this worked like a charm and also preserved timestamps which for some reason wasn't being preserved then using the "-p" option with "CP".

Thanks

 
Posted : 28/05/2021 1:36 pm
benfindlay reacted
Share: