Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hfsplus format
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Tue Oct 04, 2005 9:11 pm    Post subject: hfsplus format Reply with quote

May seem like a silly question, but which tool do you use to format a hfsplus partition in linux??
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Tue Oct 04, 2005 9:17 pm    Post subject: Reply with quote

I find:
Code:
hfsplusutils hfsutils


I never created a hfs+ partition in linux, I always create a empty partition, and then formatted with OSX or darwin...

The only tool I find is:
Code:
hformat

Which is inside hfsutils.
I don't know if it is for hfs only partition and no for hfsplus...

Man head say:
Quote:
hformat - create a new HFS filesystem and make it current

SYNOPSIS
hformat [-f] [-l label] destination-path [partition-no]

DESCRIPTION
hformat is used to write a new HFS filesystem to a volume. A UNIX path-
name to the volume's destination must be specified. The destination may
be either a block device or a regular file, but it must already exist
and be writable.


_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Tue Oct 04, 2005 9:19 pm    Post subject: Reply with quote

Yes, it's only for HFS partitions, hfsplusutils does not have a format util!
Back to top
View user's profile Send private message
silian87
Advocate
Advocate


Joined: 06 Oct 2003
Posts: 2318
Location: Treviso, Italy

PostPosted: Tue Oct 04, 2005 9:25 pm    Post subject: Reply with quote

Probably it isn't supported yet... You know... we have bad supports for some filesystems, and HFS+ write support has been included not so far in kernels (as stable), so I think you have to use other things to create the partition. A macosx installation, it's boot cd, or a (open)darwin cd is good.
:(
_________________
Musica che ascolto: http://www.last.fm/user/silian87/

Silian87 FAQs: http://marentax.homelinux.org/~silian87/silian87-faq.txt

GTalk: silian87@gmail.com
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Tue Oct 04, 2005 9:53 pm    Post subject: Reply with quote

I gues so, I was just hoping that there was a Linux utility to do it rather than having to resort to using another OS.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Oct 05, 2005 1:28 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=46342

I started porting this from OSX, but haven't had time to finish the port. Feel free to finish porting it, but I just don't have time. :p
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Wed Oct 05, 2005 7:09 pm    Post subject: Reply with quote

You're making me feel quilty!

Guess I should learn to code eh!? :-)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Nov 04, 2005 3:59 pm    Post subject: Reply with quote

Okay, I found some time and ported this again. (Updated in the bug) It's missing some code to check for already mounted partitions, so be careful with it, but besides that it should work. If people could test this for me, I'd appreciate it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Tue Nov 08, 2005 11:03 pm    Post subject: Reply with quote

hehe... my /data partition is pretty f****d up again, OSX.3.9 and Darwin 8.01 can't repair it sooo.. :twisted:
it's still readable, so I'm gonna try not to fall asleep as soon as my bed in in reach and save some stuff on my firewire disk... and maybe I remember to test your hfsplus-tools tomorrow ^^

so, good fight, good night!
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Wed Nov 09, 2005 1:35 pm    Post subject: Reply with quote

I forgot to add an version to the filename of the ebuild... :roll:
hfsplus-tools-277.2 builds clean on my iBook G4 and can't fix my /data-partition, too :(
at least I got a usabe output in Linux... Darwin in MOL is a little bit exhausting and OSX's disk utility didn't say anything useful
an "Invalid B-tree node size"... hmm...
...
OK, googled 10 minutes and got no solution, so I'll try mkfs.hfsplus ;)

EDIT1:
Code:

# mkfs.hfsplus -N -J -G 6 -U 0 -M 771 -v data /dev/hda8
54294016 sectors (512 bytes per sector)
HFS Plus format parameters:
   volume name: "data"
   block-size: 4096
   total blocks: 6786752
   journal-size: 8192k
   first free catalog node id: 16
   catalog b-tree node size: 8192
   initial catalog file size: 14680064
   extents b-tree node size: 4096
   initial extents file size: 5242880
   initial allocation file size: 851968 (208 blocks)
   data fork clump size: 65536
   resource fork clump size: 65536
   user ID: 0
   group ID: 6
   access mask: 771

and here we go...

EDIT2:
didn't work.. :(
again, without options:
Code:
# mkfs.hfsplus /dev/hda8
Initialized /dev/hda8 as a 26 GB HFS Plus volume
# mount -t hfsplus /dev/hda8 /mnt/data/
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
# dmesg | tail
fill_kobj_path: path = '/block/hda/hda8'
VFS: Can't find a HFS filesystem on dev hda8.
fill_kobj_path: path = '/block/hda/hda8'
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev hda8.
fill_kobj_path: path = '/block/hda/hda8'
HFS+-fs: failed to load extents file
fill_kobj_path: path = '/block/hda/hda8'
HFS+-fs: failed to load extents file
fill_kobj_path: path = '/block/hda/hda8'

as you see, I tried to mount it several times...

and the std stuff for errors:
Code:
# emerge info
Portage 2.0.53_rc7 (default-linux/ppc/2005.1/ppc, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-gentoo-r5 ppc)
=================================================================
System uname: 2.6.13-gentoo-r5 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -maltivec -mabi=altivec -pipe -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mcpu=G4 -maltivec -mabi=altivec -pipe -fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/distfiles/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/distfiles/ ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo/distfiles/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/distfiles/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/distfiles/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/distfiles/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /usr/local/overlays/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec audiofile bash-completion berkdb bitmap-fonts bzip2 cdr crypt curl directfb eds emboss esd exif expat fam fbcon flac fortran gdbm gif glut gnutls gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg lcms libwww mad mikmod mmap mng motif mp3 mpeg ncurses nls nocd nptl nptlonly ogg oggvorbis pam pcre pdflib perl plotutils png python readline sdk sdl slang ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS


Darwin 8.01 (inside MOL) gives me an "mount: /dev/disk0: unknown special file or filesystem"
I think MOL wouldn't export (import?) an not HFS labeled partition, but I guess it only looks into the partition map...
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 09, 2005 2:41 pm    Post subject: Reply with quote

I didn't finish the 277.2 port it doesn't work as is. I wanted people to test the 332 port.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Wed Nov 09, 2005 3:40 pm    Post subject: Reply with quote

fuck, booted the wrong kernel (2.6.13-gentoo-r5) and again my iBook suddenly powered down...

kay... I guessed the wrong version (found 277.2 on http://dev.gentoo.org/~josejx/) becaused I looked for hfsplus-tools and not for diskcmd

got to change the ebuild... *vi*

EDIT2:
argh... 322 and 332....

EDIT3:
w0000t!
compiling! ^^
stupid numbers...

EDIT4:
Code:
 # mkfs.hfsplus -J -G 6 -U 0 -M 2771 -v data /dev/hda8
Initialized /dev/hda8 as a 26 GB HFS Plus volume with a 8192k journal
 # mount -t hfsplus /dev/hda8 /mnt/data/
 # echo foo >> /data/bar
 # ls -al /data/
insgesamt 8204
drwxrwx--x   1 root disk       6  9. Nov 17:14 .
drwxr-xr-x  13 root root    4096 12. Okt 16:29 ..
-rw-r--r--   1 root root       4  9. Nov 17:14 bar
----------   1 root root 8388608  9. Nov 17:13 .journal
----------   1 root root    4096  9. Nov 17:13 .journal_info_block

hmm... set-GID and I would be wishless happy ^^

now: umount --> boot Darwin in mol --> fsck_hfsplus /disk0...
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Nov 12, 2005 3:15 pm    Post subject: Reply with quote

I uploaded a modified ebuild to bugzilla for version 332, take a look here
_________________
[/garbage]
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Mon Nov 28, 2005 11:58 pm    Post subject: Reply with quote

a little tip:
don't create case sensitive hfsplus partitions (the -s option)... you won't be able to mount them
it's a extended version of HFS+ aka HFSX
the only extension (until now) is case sensitivity(?) but it's got another fs-header or something, so linux doesn't recognize it

I'm gonna use UFS for my OS X partition until this is solved, so I can read it from linux and portage in OS X don't give me errors when cp'ing files from foo/bar to Foo/BAR.. :roll:
_________________
[/garbage]
Back to top
View user's profile Send private message
rickvernam
Guru
Guru


Joined: 09 Jul 2004
Posts: 310

PostPosted: Thu Jun 23, 2016 6:48 pm    Post subject: Reply with quote

I know this is an 11 year old thread, but it comes up on google when I searched for what to use for HFS/HFS+ in Gentoo.

The answer, best I can tell is sys-fs/diskdev_cmds
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum