View previous topic :: View next topic |
Author |
Message |
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Tue Mar 06, 2007 9:58 pm Post subject: mkofboot = volume is smaller than 800K HFS failed(SOLVED) |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Mar 07, 2007 2:52 am Post subject: |
|
|
Can you try running hformat on the bootstrap partition manually?
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Wed Mar 07, 2007 7:35 am Post subject: |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Mar 07, 2007 7:09 pm Post subject: |
|
|
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Wed Mar 07, 2007 7:21 pm Post subject: |
|
|
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 |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Thu Mar 08, 2007 2:53 pm Post subject: |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Mar 08, 2007 3:42 pm Post subject: |
|
|
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Thu Mar 08, 2007 6:20 pm Post subject: |
|
|
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 |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Thu Mar 08, 2007 7:29 pm Post subject: |
|
|
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Thu Mar 08, 2007 8:01 pm Post subject: |
|
|
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 |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Thu Mar 08, 2007 10:52 pm Post subject: |
|
|
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 |
|
|
togglehead n00b
Joined: 08 Mar 2007 Posts: 9
|
Posted: Fri Mar 09, 2007 7:51 pm Post subject: |
|
|
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 |
|
|
togglehead n00b
Joined: 08 Mar 2007 Posts: 9
|
Posted: Fri Mar 09, 2007 10:37 pm Post subject: |
|
|
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Fri Mar 09, 2007 10:42 pm Post subject: |
|
|
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 |
|
|
togglehead n00b
Joined: 08 Mar 2007 Posts: 9
|
Posted: Fri Mar 09, 2007 11:34 pm Post subject: |
|
|
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 |
|
|
loxins n00b
Joined: 16 Aug 2005 Posts: 19 Location: Iceland
|
Posted: Sat Mar 10, 2007 6:39 am Post subject: |
|
|
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 |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Mon Mar 19, 2007 12:01 am Post subject: |
|
|
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 |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Mon Mar 19, 2007 1:26 am Post subject: |
|
|
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 |
|
|
|