简体   繁体   English

如何从外部硬盘驱动器上删除Linux上的文件权限?

[英]How to remove file permissions on linux from an external hard drive?

My macbook recently died and I am currently trying to figure out how to copy my data. 我的Macbook最近去世了,我目前正试图找出如何复制数据的方法。

What I did was, I took out the hard drive, put it in an enclosure and plugged it in to my other laptop that runs linux. 我所做的就是,取出硬盘驱动器,将其放入机箱中,然后将其插入运行Linux的另一台笔记本电脑中。

The problem is, I cannot copy files from the hard drive due to file permissions. 问题是,由于文件许可权,我无法从硬盘驱动器复制文件。 I tried to access the hard drive as root. 我试图以根用户身份访问硬盘。 But I still cannot copy files. 但是我仍然无法复制文件。

How do I remove file permissions from the harddrive? 如何从硬盘驱动器中删除文件权限?

To make the partition accessible under Linux run: 要使分区在Linux下可访问,请运行:

sudo chmod -R 777 /media/<drive-name>/ 

this should make the mac drive accessible for you. 这应该使您可以访问Mac驱动器。

Changing ownership would do about the same, but you need not worry about it. 更改所有权可以达到相同目的,但是您不必担心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Linux上的文件路径获取详细的设备/分区信息(如UUID,硬盘序列等) - How to obtain detailed device / partition info from file path on Linux (like UUID, hard drive serial etc.) Linux- 使用 Python 访问存储在外部硬盘驱动器上的文件 - Linux- Access files stored on an external hard drive using Python 在外部硬盘驱动器或另一个群集上备份整个linux服务器 - backing up entire linux server on external hard drive or another cluster 在Linux中模拟硬盘驱动器 - Emulate a hard drive in Linux Linux:当硬盘空间不足时如何从服务器接收警告电子邮件? - Linux: How to receive warning email from a server when not much hard drive space left? 从raspberry pi录制视频并将其保存到外部硬盘驱动器 - Recording video from raspberry pi and saving it to a external hard drive 通过C ++程序在Linux上获取SCSI硬盘驱动器串行 - Get SCSI hard drive serial on Linux from a C++ program 用于从Linux中提取硬盘信息的Java代码 - Java Code For Pulling Hard Drive Information From Linux 如何将主目录中的文件夹复制到外部硬盘驱动器 - how to copy the folder in my home directory to the external hard drive 如何在外部硬盘驱动器上安装Java JDK? - How can I install Java JDK on an External Hard Drive?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM