Notifications
Clear all

Linux Server CLI

4 Posts
2 Users
1 Reactions
872 Views
(@christ143uk)
Trusted Member
Joined: 14 years ago
Posts: 51
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.

 

 


   
Quote
benfindlay
(@benfindlay)
Estimable Member
Joined: 15 years ago
Posts: 142
 

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


   
ReplyQuote
(@christ143uk)
Trusted Member
Joined: 14 years ago
Posts: 51
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


   
ReplyQuote
(@christ143uk)
Trusted Member
Joined: 14 years ago
Posts: 51
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


   
benfindlay reacted
ReplyQuote
Share: