Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mkofboot = volume is smaller than 800K HFS failed(SOLVED)
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
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Tue Mar 06, 2007 9:58 pm    Post subject: mkofboot = volume is smaller than 800K HFS failed(SOLVED) Reply with quote

i am trying to install gentoo on a PowerMac G4. everything has been working ok until yaboot.
i cant seem to be able to create the bootstap partition. i am not sure what i am doing wrong here.

i keep getting the same error no matter what i try.

# yabootconfig --chroot /mnt/gentoo --root /dev/hda5 --boot /dev/hda2
yaboot is the Linux Loader for PowerPC. yabootconfig sets up your system to boot directly
from your hard disk, without the need for a boot CD, floppy or a network boot.
Install yaboot bootstrap on /dev/hda2 to boot Linux from /dev/hda5? [Yes] y
Creating a simple /mnt/gentoo/etc/yaboot.conf...
Running mkofboot to make the disk bootable...
hformat: /dev/hda2: volume is smaller than 800K (Invalid argument)
mkofboot: HFS filesystem creation failed!

#livecd gentoo # mkofboot -b /dev/hda2

mkofboot: Create hfs filesystem on /dev/hda2? [y/N] y
hformat: /dev/hda2: volume is smaller than 800K (Invalid argument)
mkofboot: HFS filesystem creation failed!
livecd gentoo #


# livecd gentoo # mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 1048576 @ 1664 (512.0M) Linux swap
/dev/hda4 Apple_UNIX_SVR2 root 79368000 @ 1050240 ( 37.8G) Linux native

Block size=512, Number of Blocks=80418240
DeviceType=0x0, DeviceId=0x0

Command (? for help):

any ideas? anyone? this is really annying me. i would really like to get gentoo up and running on this machine.
_________________
skammastu thin svo


Last edited by loxins on Thu Mar 08, 2007 6:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 07, 2007 2:52 am    Post subject: Reply with quote

Can you try running hformat on the bootstrap partition manually?

Code:

hformat /dev/hda2


Are you sure there wasn't a PC partition on the disk first? (Does fdisk -l /dev/hda show anything?)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Wed Mar 07, 2007 7:35 am    Post subject: Reply with quote

unfortunatly the hformat displays the same result.
and fdisk reports no valid partition table (is that normal?).

livecd gentoo # hformat /dev/hda2
hformat: /dev/hda2: volume is smaller than 800K (Invalid argument)
livecd gentoo # fdisk -l /dev/hda

Disk /dev/hda: 41.1 GB, 41174138880 bytes
16 heads, 63 sectors/track, 79780 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hda doesn't contain a valid partition table
livecd gentoo #



argh... why is this not happening? i seem to be totally lost here.
_________________
skammastu thin svo
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 07, 2007 7:09 pm    Post subject: Reply with quote

hmm, that is weird. What are your CFLAGs out of curiosity? You don't -fsigned-char in them, do you?

Can you try:
dd if=/dev/zero of=/dev/hda2 bs=1k count=800

This will zero out the /dev/hda2 partition. After you've done this, try it creating the bootstrap partition again.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Wed Mar 07, 2007 7:21 pm    Post subject: Reply with quote

ok.. thanks for you time.

my CFLAGs are:
CFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"

I got those from http://gentoo-wiki.com/Safe_Cflags
i had no troubles everything else. i did a stage1 install and had to emerge perl before bootstraping because of some outdated packages.

anyways
# dd if=/dev/zero of=/dev/hda2 bs=1k count=800
dd: writing `/dev/hda2': No space left on device
33+0 records in
32+0 records out
32768 bytes (33 kB) copied, 0.037809 seconds, 867 kB/s

and after that came:

# hformat /dev/hda2
hformat: /dev/hda2: volume is smaller than 800K (Invalid argument)

i am not understanding this. can this perhaps be a hd error?
_________________
skammastu thin svo
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Mar 08, 2007 2:53 pm    Post subject: Reply with quote

I have seen this. Perhaps it is a difference of understanding of what 800K is between the two programs.
Consider making the the boot partition a bit larger by taking away from the swap partition.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 08, 2007 3:42 pm    Post subject: Reply with quote

It is weird. I tried a few different ways here and can't seem to reproduce it. :p I guess limm's suggestion is a good one, try making the partition 1M instead of 800k.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Thu Mar 08, 2007 6:20 pm    Post subject: Reply with quote

ok guys thanks a lot for your time and effort. anyways when i got home from work today and started the computer, the filesystem on the hd was all corrupted and everything gone. i was looking so much forward to try limn suggestion in making the the boot partition a bit larger. it sounded so logical but alas. i think the hd is totaly borked so i have now replaced the hd and am starting over. this time it shall work and i shall manage to conquer the world with Gentoo.
and again thanks a lot for your time.
_________________
skammastu thin svo
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Mar 08, 2007 7:29 pm    Post subject: Reply with quote

Too bad about the disk. This is interesting:
Quote:
# dd if=/dev/zero of=/dev/hda2 bs=1k count=800
dd: writing `/dev/hda2': No space left on device
33+0 records in
32+0 records out
32768 bytes (33 kB) copied, 0.037809 seconds, 867 kB/s

In my case, I ended creating an 8.5M partition and it worked. I think I was trying to make it 850K and did the math wrong.

What was the make/model of the disk that went wrong?
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Thu Mar 08, 2007 8:01 pm    Post subject: Reply with quote

it was:

IBM Deskstar
MODEL DTLA-305040 ATA/IDE
Apple HDD Firmware 2000 40GB

it was the hd that came with the computer. it had been running fine for a long time. fortunatly i have plenty of hd replacements, so i put in a another 40gb drive.
_________________
skammastu thin svo
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Thu Mar 08, 2007 10:52 pm    Post subject: Reply with quote

I'd be curious to hear whether you do or do not have a similar problem on the reinstall.
Good luck with that and "conquer the world with Gentoo."
Back to top
View user's profile Send private message
togglehead
n00b
n00b


Joined: 08 Mar 2007
Posts: 9

PostPosted: Fri Mar 09, 2007 7:51 pm    Post subject: Reply with quote

You know....im getting the same error here....

How can i change partition sizes without totally borking everything i have done so far....
_________________
Cars, computers, and rack gear....i have a problem....
Back to top
View user's profile Send private message
togglehead
n00b
n00b


Joined: 08 Mar 2007
Posts: 9

PostPosted: Fri Mar 09, 2007 10:37 pm    Post subject: Reply with quote

loxins wrote:
ok guys thanks a lot for your time and effort. anyways when i got home from work today and started the computer, the filesystem on the hd was all corrupted and everything gone. i was looking so much forward to try limn suggestion in making the the boot partition a bit larger. it sounded so logical but alas. i think the hd is totaly borked so i have now replaced the hd and am starting over. this time it shall work and i shall manage to conquer the world with Gentoo.
and again thanks a lot for your time.


ironically...on my first reboot after supposedly fixing the "ofboot=" path.....my fs was totally gone too....now i have to start all over...

...were you using reiser?
_________________
Cars, computers, and rack gear....i have a problem....
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Fri Mar 09, 2007 10:42 pm    Post subject: Reply with quote

yes i was using reiserfs

and after i changed the hd and reinstalled everything is working great. currently emerge-ing X . still using reiserfs

i had no troubles using # yabootconfig --chroot /mnt/gentoo this time. everything worked great.
_________________
skammastu thin svo
Back to top
View user's profile Send private message
togglehead
n00b
n00b


Joined: 08 Mar 2007
Posts: 9

PostPosted: Fri Mar 09, 2007 11:34 pm    Post subject: Reply with quote

thats strange however why both of our drives "corrupted" after using this on the reiserfs. Prehaps your drive wasnt bad after all...

Maybe ill try ext2 next time...gonna start it tonight.
_________________
Cars, computers, and rack gear....i have a problem....
Back to top
View user's profile Send private message
loxins
n00b
n00b


Joined: 16 Aug 2005
Posts: 19
Location: Iceland

PostPosted: Sat Mar 10, 2007 6:39 am    Post subject: Reply with quote

yes that is strange. i had thought about that and had decieded not to throw the hd away just yet. i never had any troubles with reiserfs, i just don´t have a extra computer to check if the hd works but i could not make another filesystem on it in the ppc.
i hope it will work for you...
_________________
skammastu thin svo
Back to top
View user's profile Send private message
alex6z
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2005
Posts: 119

PostPosted: Mon Mar 19, 2007 12:01 am    Post subject: Reply with quote

Shouldn't you be using macfdisk ????

How can you make the new world apple partition map and bootstrap partition with the regular fdisk?

hda1 should be the partition map and hda2 should be the 800K the bootstrap that yaboot installs on.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 19, 2007 1:26 am    Post subject: Reply with quote

Yes, you are supposed to use mac-fdisk. I asked him to give the output of fdisk -l because it is possible to have both PPC and x86 partitions on the same drive. fdisk -l would show the x86 partitions.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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