|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 Code:
mount: no mount helper program found for hfsplus: No such file or directory Any help is appreciated Thanks. |
|
|||
/usr/local/share/doc/hfsplus/libhfsp.html
Quote:
|
|
|||
|
|
|||
My standard debugging steps for problems with mounting are:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
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 Quote:
|
|
|||
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 :-) |
|
|||
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 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, ...) Code:
*** Warning: You are about to open '/dev/sd0c' for writing *** *** Do you really want to do that ? (y/n) *** Code:
/usr/local/bin/hpmount: /dev/sd0c: Neither Wrapper nor native HFS+ volume header found (Unknown error: -1) 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) |
|
||||
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. |
|
|||
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 |
|
|||
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:
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) |
|
|||
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". |
|
|||
Thank you very much , ocicat !
Quote:
|
|
|||
Study Section 14.1 of the FAQ.
|
|
|||
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) |
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|
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 |