DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default mounting hfsplus filesystem

Hi !

I've installed hfsplus but still can't mount hfsplus filesystem under OpenBSD -current

Using :
Code:
 mount -t hfsplus /dev/sd0c /mnt
I get :
Code:
mount: no mount helper program found for hfsplus: No such file or directory
Maybe there is some post-install tweak I should perform before I can mount hfsplus filesystems.

Any help is appreciated
Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 5th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

/usr/local/share/doc/hfsplus/libhfsp.html
Quote:
...
This is work in progress, either be patient or provide help.
Just thought maybe someone has a clue
Reply With Quote
  #3   (View Single Post)  
Old 5th September 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by daemonfowl View Post
Just thought maybe someone has a clue
HFS+ is not supported.
Reply With Quote
  #4   (View Single Post)  
Old 6th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

It appears that misc/hfsplus has been in the tree since 2002, and as there is no $MAINTAINER, it is supported via the ports@ mailing list. Over the years, there have been perhaps three or four conversations about it in the ports@ archives.

You want a clue, daemonfowl? You assumed that mount(8) would work. OK. It did not work. But, when it failed, you forgot to do two very important things before posting this thread.
  1. You did not read the mount(8) man page where it describes how the -t option works, to find out why it failed.
  2. You did not look at the programs installed with the package.
If you had done these two things, you would not have needed to start this thread. Because you would have learned why mount(8) failed, and you would have found the tools you needed to use to gain access to the filesystem.

Last edited by jggimi; 6th September 2012 at 01:08 AM. Reason: typo
Reply With Quote
  #5   (View Single Post)  
Old 6th September 2012
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,146
Thanked 182 Times in 149 Posts
Default

My standard debugging steps for problems with mounting are:
  • Consult the dmesg output for the device (in this case /dev/sd0)
  • Find out what fdisk reports on the device
  • Check the output of disklabel for the device
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 6th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

In this case, J65nko, the problem source is operational: choosing to use the incorrect tool.

Last edited by jggimi; 6th September 2012 at 01:19 AM. Reason: typo
Reply With Quote
  #7   (View Single Post)  
Old 6th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi all and thank you very much for your helpful posts specially jggimi with his great methodological hints

I don't have the hfsplus disk with me now .. but will try things in the evening ..
I remember dmesg doesn't show any errors .. disklabel -e sd0 shew two partitions : c and i ..
pkg_info -L hfsplus informs about a certain hpmount ..
Code:
pkg_info -L hfsplus
Information for inst:hfsplus-1.0.4p4

Files:
/usr/local/bin/hpcd
/usr/local/bin/hpcopy
/usr/local/bin/hpfsck
/usr/local/bin/hpls
/usr/local/bin/hpmkdir
/usr/local/bin/hpmount
/usr/local/bin/hppwd
/usr/local/bin/hprm
/usr/local/bin/hpumount
/usr/local/lib/libhfsp.a
/usr/local/lib/libhfsp.la
/usr/local/lib/libhfsp.so.0.0
/usr/local/share/doc/hfsplus/bugs.html
/usr/local/share/doc/hfsplus/hfsp.html
/usr/local/share/doc/hfsplus/libhfsp.html
and there is no mount_hfsplus or something in /sbin so mount was a wrong tool to use here
Quote:
mount will attempt to execute a program in /sbin/mount_XXX where XXX is replaced by the type name
Reply With Quote
  #8   (View Single Post)  
Old 6th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

Excellent! I'm so glad you were able to quickly determine both answers! Well done!

I can't help you with hpmount, of course. I don't have a Mac and have never used this software.
Reply With Quote
  #9   (View Single Post)  
Old 6th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

I'm glad you're glad ! :-)
It's an old disk . dating back to when I used to use MacOs X .. it contains data I want to get back before formatting .. of course there are alternatives (gnu-linux mount hfsplus and windows has macdrive etc) but I'm concerned about the OpenBSD way and because OpenBSD is ............. .......... .......
KOOOOOOOOOOOOOOOL
:-)
Reply With Quote
Old 7th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

dmesg :
Code:
scsibus3 at umass0: 2 targets, initiator 0
sd0 at scsibus3 targ 1 lun 0: <WDC WD40, 0LB-07DNA2, 0041> SCSI0 0/direct fixed serial.05e30718000000000033
sd0: 38166MB, 512 bytes/sector, 78165360 sectors
sysctl hw.disknames
Code:
hw.disknames=wd0:83d5443824ae0231,cd0:,sd0:

disklabel -e sd0
Code:
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 0LB-07DNA2
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4865
total sectors: 78165360
boundstart: 0
boundend: 78165360
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:         78165360                0  unused
  i:         78165297               63 unknown                   # /home/musashi/usb

# Notes:
# Up to 16 partitions are valid, named from 'a' to 'p'.  Partition 'a' is
# your root filesystem, 'b' is your swap, and 'c' should cover your whole
# disk. Any other partition is free for any use.  'size' and 'offset' are
# in 512-byte blocks. fstype should be '4.2BSD', 'swap', or 'none' or some
# other values.  fsize/bsize/cpg should typically be '2048 16384 16' for a
# 4.2BSD filesystem (or '512 4096 16' except on alpha, sun4, ...)
/usr/local/bin/hpmount /dev/sd0c /mnt
Code:
*** Warning: You are about to open '/dev/sd0c' for writing ***
*** Do you really want to do that ? (y/n) ***
anwering y
Code:
/usr/local/bin/hpmount: /dev/sd0c: Neither Wrapper nor native HFS+ volume header found (Unknown error: -1)
/usr/local/bin/hpmount /dev/sd0a /mnt
Code:
*** Warning: You are about to open '/dev/sd0a' for writing ***
*** Do you really want to do that ? (y/n) ***

y
/usr/local/bin/hpmount: /dev/sd0a: error opening medium (Device not configured)
I uncommented my fstab lines that may collide
Reply With Quote
Old 7th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

Knowing NOTHING about this software you're trying to use:
====

You don't have an "a" partition. Mounting it will always fail.

You do have an "i" partition. Why don't you try mounting that one, instead?

The "c" partition in OpenBSD is not a partition. It is "the entire drive". That starts with sector #0, where the MBR is, and runs to the last sector of the drive. I will guess that if the software can be handed the entire drive to "mount" -- it may need to be told which MBR partition to use.

You might need to use "raw" device nodes rather than block mode device nodes.
Reply With Quote
Old 7th September 2012
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,146
Thanked 182 Times in 149 Posts
Default

And why are you posting all kind of output and forget the really crucial one, the output of fdisk?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 7th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thanks j65nko !
fsidk -e sd0
Code:
Enter 'help' for information
fdisk: 1> p  
Disk: sd0       geometry: 4865/255/63 [78165360 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: AF      0   1   1 -   4865 144  63 [          63:    78165297 ] MacOS X HFS+
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
Quote:
You do have an "i" partition. Why don't you try mounting that one, instead?
what I know is that sd0i is always msdos .. [and OpenBSD for macppc.install prompts for either HFS .. or MBR (then i must be created)]
Code:
 hpmount /dev/sd0i
*** Warning: You are about to open '/dev/sd0i' for writing ***
*** Do you really want to do that ? (y/n) ***
y
hpmount: /dev/sd0i: This is not a HFS+ volume (Unknown error: -1)
anyway disklabel marks it 'unknown' fstype
Reply With Quote
Old 7th September 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by daemonfowl View Post
what I know is that sd0i is always msdos ..
This is incorrect. "i" is the default partition letter used for the first foreign filesystem encountered. This may not be of type msdos.

It is also possible that nine other partitions may be defined. This would make the first foreign filesystem labeled "j", not "i".

"i is arbitrarily chosen for the first foreign filesystem since "i" is midway between "a" & "p".
Reply With Quote
Old 7th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thank you very much , ocicat !

Quote:
You might need to use "raw" device nodes rather than block mode device nodes
Sorry again but I don't know how to put jggimi's statement into practice
Reply With Quote
Old 7th September 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by daemonfowl View Post
...I don't know how to put jggimi's statement into practice
Study Section 14.1 of the FAQ.
Reply With Quote
Old 7th September 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thank you !
hpmounting /dev/rsd0i doesn't work either , if that's the intended ..
same error message:
Code:
hpmount: /dev/rsd0i: This is not a HFS+ volume (Unknown error: -1)
Reply With Quote
Old 7th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,686
Thanked 214 Times in 189 Posts
Default

I've done something you haven't, daemonfowl. I used www.google.com with two keywords: hpmount and openbsd.

The first hit was a ports@ discussion from 2007. In it, I learned that you are supposed to use "-r" for read/only, and a mount point. The mount point is missing in your later tests, and you have never used "-r" which I believe should be a requirement. The pkg_info output you posted does not show a man page for the hpmount command ... but apparenlty one was written since this version was ported 11 years ago. Again, I discovered this using Google, and again it was the top hit on the page. The keywords I used were hpmount and hfsplus.

http://manpages.ubuntu.com/manpages/...hpmount.1.html

If it were me, I would never ever ever ever not even once attempt to use this without -r.

If both raw (character) and cooked (block) device nodes for the "i" partition failed, I would experiment with the -pn options and the special partition letter that is used for the whole physical disk. I wonder if you remember which letter that is?

And, using that partition of the whole disk, I would experiment with both raw and cooked nodes.

I will tell you that in looking through the ports@ and ppc@ mailing lists, and doing other Internet searches, I have not seen any postings published that showed a successful hpmount command. But it must have been possible, at least in 2002, else this would never have been added to the ports tree
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dualboot system, what filesystem? The_Anteater FreeBSD General 4 29th March 2010 01:00 PM
Mount filesystem with a regular user ivanatora FreeBSD General 15 30th July 2008 08:51 AM
dvd filesystem type chill FreeBSD General 6 17th June 2008 08:22 AM
Best Filesystem thavinci FreeBSD General 25 29th May 2008 03:32 PM
Filesystem read errors Foon FreeBSD General 0 10th May 2008 07:27 AM


All times are GMT. The time now is 11:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick