Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
2  
You have an extra space in -o remount, rw. The -o option expects an argument without spaces. –  chronospoon Oct 2 '13 at 22:11

3 Answers 3

up vote 32 down vote accepted

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
share|improve this answer
    
Thanks for the response! I have been using sudo, forgot to include that. I'm by no means an advanced linux user, so I'm not exactly sure what I'm supposed to be seeing in /etc/fstab. However, when i type "df -h" it tells me that the hfsplus filesystem is mounted at /dev/sdb3 –  Alkthree Aug 14 '12 at 14:21
    
I see what you're saying now, "mount -v | grep ^/" returns "/devsdb3 on /media/untitled". 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:32
    
Have you tried sudo mountall? –  SirCharlo Aug 14 '12 at 14:42
    
Let's continue this discussion in chat.. –  SirCharlo Aug 14 '12 at 14:45
1  
Oh come on! That simple.. Good for you! :P In order to help clean up the site, please post the steps you took as an answer to your question and then accept your answer. This will prevent your questions from showing up in the Unanswered section. Thank you! –  SirCharlo Aug 14 '12 at 19:38

Running dmesg | grep hfs showed that the filesystem was unmounted incorrectly, which I was able to repair using

fsck.hfsplus /dev/sdb3/
share|improve this answer

just try mount -o remount / ... it will ask you for the password then you will just type it but it will not be seen as you type then retype it but it still won't be seen save it then just get out >> if it fails just do the same process mount -o remount /
same process mount -o remount /

share|improve this answer
    
Welcome to Ask Ubuntu kirongo! Your answer seems to suggest mount -o remount /. Are you aware of what this command does? This is remounting the root partition, which is not what the questioner is asking. Also, this won't even fix the not mounted or bad option error. –  Alaa Ali Aug 15 '13 at 9:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.