How to Remount a Drive as Read/Write in Linux


Sometimes you end up with a storage drive mounted with read-only access in Linux. Here is how you can remount it with read and write access so that you can make changes to files on it (create new ones and delete others):

sudo mount -o remount,rw /

In this command the -o flag is for options, the remount option tells mount to remount the the partition with different options and the rw option means that it will be mounted with read and write access. The / part is the mount point of the partition, being the root in this example.

You can check out your mounted partitions with the df command:

magnatecha@d64:~$ df 
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda1       73840300 57696476  12445444  83% /
udev             2050688        4   2050684   1% /dev
tmpfs             823192      908    822284   1% /run
none                5120        0      5120   0% /run/lock
none             2057972     4188   2053784   1% /run/shm
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值