hfsplus drives mount as readonly

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

hfsplus drives mount as readonly

Postby tvdon » Wed Oct 17, 2012 12:38 am

Greetings,

Here's my system info. Just reinstalled and fully updated. Problem info to follow.
$this->bbcode_second_pass_code('', '[root@mediaserver ~]# uname -a
Linux mediaserver 3.1.10-13-ARCH #1 PREEMPT Mon Aug 20 15:46:18 UTC 2012 armv5tel GNU/Linux
')

Linux noob here. Installed Arch 2 months ago on Pogoplug V2 using instructions at:
http://archlinuxarm.org/platforms/armv5%20...%202-pinkgray

My issue is my 3 external usb drives formatted as hfsplus (journalling turned off) only mount as read only, although they have mounted as read write in the past. I understand ntfs would be a better option, however I use these drives with other macs on which I am unable to install the NTFS drivers.
$this->bbcode_second_pass_code('', '[root@mediaserver ~]# mount
/dev/root on / type ext2 (rw,relatime,user_xattr,acl,barrier=1)
devtmpfs on /dev type devtmpfs (rw,relatime,size=126160k,nr_inodes=31540,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
/dev/sdb1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdc1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdc2 on /media/Media_500 type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdb2 on /media/Media_200 type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdd3 on /media/fw_800_media_drive type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
[root@mediaserver ~]#
')
Above is with drives plugged in at boot. Occasionally, 1 or the 2 drives will not mount at all when plugged in at boot, even though I have edited fstab:
$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sdb1 /media/media_200 hfsplus defaults,auto,rw 0 0
/dev/sdc1 /media/media_500 hfsplus defaults,auto,rw 0 0
/dev/sdd /media/media_1000 hfsplus defaults,auto,rw 0 0
/media/Media_200/swapfile.img none swap sw 0 0
')

I've installed udev-automount, and receive the same read only mount issue when I plug the drives in after boot.
Don't know if this helps, but here's output from fdisk -l, after plugging in drives after boot:
$this->bbcode_second_pass_code('', '[root@mediaserver ~]# fdisk -l

Disk /dev/mtdblock0: 1 MB, 1048576 bytes, 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock1: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock2: 33 MB, 33554432 bytes, 65536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mtdblock3: 95 MB, 95420416 bytes, 186368 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 4004 MB, 4004511744 bytes, 7821312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 16 7819487 3909736 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 200.0 GB, 200049647616 bytes, 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 390721967 195360983+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 1 976773167 488386583+ ee GPT

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@mediaserver ~]#
')

I attempted moonman's solution from a previous post on Oct 7 and received the following:
$this->bbcode_second_pass_code('', '[root@mediaserver ~]# mount -t hfsplus -o force,rw /dev/sdc2 /media/Media_500
mount: /dev/sdc2 is already mounted or /media/Media_500 busy
/dev/sdc2 is already mounted on /media/Media_500
[root@mediaserver ~]# mount -t hfsplus -o force,rw /dev/sdb2 /media/Media_200
mount: /dev/sdb2 is already mounted or /media/Media_200 busy
/dev/sdb2 is already mounted on /media/Media_200
[root@mediaserver ~]# mount -t hfsplus -o force,rw /dev/sdd3 /media/fw_800_media_drive
mount: /dev/sdd3 is already mounted or /media/fw_800_media_drive busy
/dev/sdd3 is already mounted on /media/fw_800_media_drive
[root@mediaserver ~]#
')
Any help would be greatly appreciated.
Thank you!
tvdon
 
Posts: 6
Joined: Sat Oct 06, 2012 9:16 pm

Re: hfsplus drives mount as readonly

Postby moonman » Wed Oct 17, 2012 2:22 am

Of course it won't mount because it's already mounted by fstab. umount /dev/sdX# will unmount it. Then you can mount it with other options.
In fstab change "defaults,auto,rw" to "force,rw" and reboot. This will fix it.

To remount without reboot you can umount and then mount as I mentioned above, or
mount -t hfsplus -o remount,force,rw /mount/point

For more info --> "man mount"
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hfsplus drives mount as readonly

Postby WarheadsSE » Wed Oct 17, 2012 3:46 am

Add a remount to the -o list.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: hfsplus drives mount as readonly

Postby tvdon » Wed Oct 17, 2012 4:17 am

Thanks moonman and WarheadsSe. I've followed your instructions but my drives are still mounted as readonly.

I edited fstab to read as follows:
$this->bbcode_second_pass_code('', '# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sdb2 /media/Media_200 hfsplus force,rw 0 0
/dev/sdc2 /media/Media_500 hfsplus force,rw 0 0
/dev/sdd3 /media/fw_800_media_drive hfsplus force,rw 0 0
/media/Media_200/swapfile.img none swap sw 0 0
')

When rebooted, I get:
$this->bbcode_second_pass_code('', '[root@mediaserver ~]# mount
/dev/root on / type ext2 (rw,relatime,user_xattr,acl,barrier=1)
devtmpfs on /dev type devtmpfs (rw,relatime,size=126160k,nr_inodes=31540,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
/dev/sdb1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdc2 on /media/Media_500 type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdb2 on /media/Media_200 type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdc1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdd3 on /media/fw_800_media_drive type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
[root@mediaserver ~]#')

Then, I tried remounting per instructions, to no avail:
$this->bbcode_second_pass_code('', '[root@mediaserver /]# mount -t hfsplus -o remount,force,rw /media/Media_200
[root@mediaserver /]# mount
/dev/root on / type ext2 (rw,relatime,user_xattr,acl,barrier=1)
devtmpfs on /dev type devtmpfs (rw,relatime,size=126160k,nr_inodes=31540,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
/dev/sdb1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdc1 on /media/EFI type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sdb2 on /media/Media_200 type hfsplus (ro,relatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdc2 on /media/Media_500 type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
/dev/sdd3 on /media/fw_800_media_drive type hfsplus (ro,noatime,umask=22,uid=0,gid=0,nls=utf8)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
[root@mediaserver /]#')

I tried to force remount all 3 drives in this way, but they all stayed ro.
Any ideas are greatly appreciated- the frustrating thing is these all worked fine as rw for 2 months, and then simply wouldn't after reboot. Thanks for your suggestions!
tvdon
 
Posts: 6
Joined: Sat Oct 06, 2012 9:16 pm

Re: hfsplus drives mount as readonly

Postby moonman » Wed Oct 17, 2012 6:29 am

Check dmesg | tail. Mine works just fine even though it wouldn't at first. Checked dmesg and it said that fylesystem was not cleanly unmounted. So I took the drive to my mac, plugged it in, waited for 1 min, then pushed the "eject" button beside the drive's name so that it's cleanly unmounted, went to pogoplug and voila, it mounted readwrite. :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: hfsplus drives mount as readonly

Postby tvdon » Wed Oct 17, 2012 5:17 pm

Moonman, that worked!
Thanks so very much!
tvdon
 
Posts: 6
Joined: Sat Oct 06, 2012 9:16 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 352 guests