如何将文件系统重新安装为读/写?

我正在尝试在Xubuntu 12.04 VM(内核版本3.2.0-23-generic)中安装hfsplus文件系统,但是当我在命令行中键入mount -o remount,rw /dev/sdb3 ,它返回not mounted or bad option 。 任何帮助,将不胜感激。

正确的语法是:

 sudo mount -o remount,rw /partition/identifier /mount/point 

其中mount/point/partition/identifier的相应mountpoint,由以下命令列出:

 mount -v | grep "^/" | awk '{print "\nPartition identifier: " $1 "\n Mountpoint: " $3}' 

例如,假设上面的命令给出了:

 Partition identifier: /dev/sda1 Mountpoint: / Partition identifier: /dev/sda2 Mountpoint: /boot Partition identifier: /dev/sda3 Mountpoint: /test 

以下是正确的语法。 (如果它已经安装,我们首先卸载它。)

 sudo umount /test sudo umount /dev/sdb3 sudo mount -t hfsplus -o rw,remount -force /dev/sdb3 /media/untitled 

对于busybox / android用户:

你需要在’remount’和’rw’之间添加一个空格(与正常使用相反):

 mount -o remount, rw / 

否则它将无法正常工作。

运行dmesg | grep hfs dmesg | grep hfs显示文件系统未正确卸载,我可以使用它进行修复

 fsck.hfsplus /dev/sdb3/ 

我有Dragonboard 410c我通过adb连接我想将物理SD卡挂载为RW。 以下为我工作。

 adb root adb shell su mount -o remount,rw /storage/sdcard1 /storage/sdcard1 

所以我现在可以在rw模式下以/ storage / sdcard1访问它

NB。 / storage / sdcard0是模拟的,是/ sdcard