I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount,rw /dev/sdb3
in command line it returns not mounted or bad option
. Any help would be appreciated.
6 Answers
The correct syntax is:
sudo mount -o remount,rw /partition/identifier /mount/point
Where mount/point
is /partition/identifier
's corresponding mountpoint, as listed by the following command:
mount -v | grep "^/" | awk '{print "\nPartition identifier: " $1 "\n Mountpoint: " $3}'
For example, say that the above command gives this:
Partition identifier: /dev/sda1
Mountpoint: /
Partition identifier: /dev/sda2
Mountpoint: /boot
Partition identifier: /dev/sda3
Mountpoint: /test
The following would be the correct syntax. (We start by unmounting it, if it's already mounted.)
sudo umount /test
sudo umount /dev/sdb3
sudo mount -t hfsplus -o rw,remount -force /dev/sdb3 /media/untitled
for busybox/android users:
Oddly, I needed to add a space (in contrast to normal usage) between 'remount' and 'rw':
mount -o remount, rw /
otherwise it wouldn't work.
UPDATE: it seems that this is almost never the case (see comments). Not sure which busybox-version + android-version I was running. I'll just leave this here in case anyone still runs into it.

- 717
-
3I did not need an extra space on my Busybox implementation. Or did you mean busybox and Android? My busybox is within an embedded controller (not a smart phone).... – wallyk May 09 '16 at 22:22
-
1
-
1
-
@wallyk i found this out when I ssh'ed into my rooted android (busybox is a necessary app in the playstore). It might have been an old version of busybox, as it was android v2 dot something. – coderofsalvation Mar 12 '18 at 09:37
-
This worked for me...
mount -o remount,rw rootfs /
since my/proc/mounts
hasrootfs / rootfs ro,seclabel,relatime 0 0
– Ray Foss Sep 07 '20 at 02:43 -
-
I needed the extra space when I had a major typo in my /etc/fstab file preventing it from even running. I could not edit the /etc/fstab since my file system was in read-only. For some reason, when I ran 'mount -o remount,rw /' I would get this error: "/ not mounted or bad option". The only solution was to run your command with a extra space. – Matthaeus Gaius Caesar Aug 30 '21 at 17:28
Running dmesg | grep hfs
showed that the filesystem was unmounted incorrectly, which I was able to repair using
fsck.hfsplus /dev/sdb3/

- 2,667
First, let us fix NTFS problems (if you have an Ubuntu/Windows dual boot setup)
sudo ntfsfix /dev/sda7
Before mounting we need a Directory (folder)
mkdir ~/Desktop/disk
Now mount the partition
sudo mount /dev/sda7 ~Desktop/disk
In this case "sda7" is the partition name. Now you read from and write to the partition.
I have Dragonboard 410c I connecting via adb I wanted to mount the physical sdcard as RW. the following worked for me.
adb root
adb shell
su
mount -o remount,rw /storage/sdcard1 /storage/sdcard1
So I can now access it in rw mode as /storage/sdcard1
nb. /storage/sdcard0 is emulated and is /sdcard

- 121
I tried "sudo mount -o remount,rw /media/untitled" and got the same problem-not mounted or bad option.
– Alkthree Aug 14 '12 at 14:32sudo mountall
? – SirCharlo Aug 14 '12 at 14:42sudo mount -o remount,rw /dev/sdb3 /media/untitled
. Also, make sure that/media/untitled
actually exists! – SirCharlo Aug 14 '12 at 14:55ls -la /media/
to list that directory's contents. The untitled folder should exists, for the partition to be mounted in there! – SirCharlo Aug 14 '12 at 15:00ls -la /media/untitled
... – SirCharlo Aug 14 '12 at 15:07sudo umount /media/untitled; sudo umount /dev/sdb3; sudo mount -o rw /dev/sdb3 /media/untitled; sudo mountall
– SirCharlo Aug 14 '12 at 15:16sudo mkdir /media/test-mountpoint; sudo mount /dev/sdb3 /media/test-mountpoint
– SirCharlo Aug 14 '12 at 15:33sudo umount /dev/sdb3; sudo umount /media/untitled; sudo rm -r /media/test-mountpoint; sudo apt-get install hfsprogs; sudo mount -t hfsplus -o force rw /dev/sdb3 /media/untitled
– SirCharlo Aug 14 '12 at 15:45sudo chmod -R a+w /media/untitled
to give everyone write permissions on the files and folders on the volume. Note that you may want to think about this before actually doing it; I'm not responsible for any damage you cause to your (presumably) Mac partition.. :) – SirCharlo Aug 14 '12 at 16:05sudo touch /media/untitled/test.txt
– SirCharlo Aug 14 '12 at 16:12sudo mount -t hfsplus -o remount,rw,force /media/untitled
– SirCharlo Aug 14 '12 at 16:23sudo mount -t hfsplus -o rw,remount -force /dev/sdb3 /media/untitled
– SirCharlo Aug 14 '12 at 17:08grep "^/" /proc/mounts | grep "\sro[\s,]" | awk '{print "mount -o remount,rw " $1 " " $2}'
– dlo Sep 23 '16 at 16:31/
filesystem as read-only for a few hours just for purposes of add
backup to external drive? Or does the system always need to be able to write to it's primary filesystem? – tgm1024--Monica was mistreated Feb 11 '21 at 17:04mount -o remount,rw /mount/point
is sufficient. – OrangeDog Aug 31 '23 at 16:48