Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Newbie - Mac-fdisk & fdisk, fstab & yaboot pr
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
hikahi
n00b
n00b


Joined: 01 Apr 2004
Posts: 3
Location: San Jose

PostPosted: Sun Apr 11, 2004 8:21 am    Post subject: Gentoo Newbie - Mac-fdisk & fdisk, fstab & yaboot pr Reply with quote

I am having trouble getting yaboot to configure correctly on my blue and white G3. The bootstrap and installs all seemed to go just fine, with a couple oddities:

mac-fdisk returns the following when I ask it to print my partition map:

Quote:
/dev/sda
# type name length base ( size ) system
dump: name /dev/sda len 8
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/sda3 Apple_UNIX_SVR2 swap 1048576 @ 1664 (512.0M) Linux swap
/dev/sda4 Apple_UNIX_SVR2 root 16799760 @ 1050240 ( 8.0G) Linux native

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


fdisk returns this:

Quote:
Disk /dev/sda: 9139 MB, 9139200000 bytes
64 heads, 32 sectors/track, 8715 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 20 20464 83 Linux
/dev/sda2 21 509 500736 82 Linux swap
/dev/sda3 510 8715 8402944 83 Linux


As far as I can tell Live CD thinks that fdisk is correct. It views sda2 as the swap, and sda3 as my root. However, when I run yabootconfig, it seems to think /dev/sda2 is my bootstrap, which is correct according to mac-fdisk, but that /dev/sda3 is my root/boot partition which is only correct according to fdisk.

When attempting to configure the yaboot.conf file manually with the following settings, the boot hangs.

/etc/yaboot.conf:
Quote:

boot=/dev/sda2
device=hd:/pci@80000000/pci-bridge@d/scsi@4/@0:
partition=4
delay=10
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/boot/kernel-2.4.24
label=Linux
root=/dev/sda4
read-only


I feel like there is something obvious that I am missing, but I don't know what it is. I searched through the forums for similar problems and was unable to find any. Am I just being a complete noob? :oops:
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Apr 12, 2004 7:10 pm    Post subject: Reply with quote

do you have your /etc/fstab edited?
Back to top
mrimac
n00b
n00b


Joined: 12 Apr 2004
Posts: 2

PostPosted: Mon Apr 12, 2004 11:39 pm    Post subject: Reply with quote

i don't know if this will work for you http://maclinux.com.sapo.pt/mboot-3.0-0.1.ppc.rpm

it's my bootloader :)

you might need to edit yaboot.conf after if it fails booting
Back to top
View user's profile Send private message
hikahi
n00b
n00b


Joined: 01 Apr 2004
Posts: 3
Location: San Jose

PostPosted: Tue Apr 13, 2004 3:19 am    Post subject: Reply with quote

"do you have your /etc/fstab edited?"

Yep, this is what I have listed there:

Code:

/dev/sda2   none         swap      sw   00
/dev/sda3   /            reiserfs   noatime   01
none      /proc         proc      defaults   00
none      /dev/shm      tmpfs      defaults   00
none      /proc/bus/usb   usbfs      defaults   00

/dev/cdroms/cdrom0   /mnt/cdrom   auto   noauto,user   00


# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:


none      /dev/shm      tmpfs      defaults      00



Looking at this again, I'm guessing I should have my fstab file set up according to mac-fdisk and not fdisk. Is that the case?
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Apr 13, 2004 8:36 pm    Post subject: Reply with quote

You probably want to put in your boot partition. here is that line from mine
/dev/hda2 /boot boot noauto,noatime 1,1
Back to top
Guest






PostPosted: Tue Apr 13, 2004 8:37 pm    Post subject: Reply with quote

oh i just read the last line, yeah thats right.
Back to top
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Fri Apr 16, 2004 10:10 pm    Post subject: Reply with quote

it sounds like there is both Mac and PC type partition maps on that device.

fdisk should almost _never_ be used on PPC machines (with the odd acception, but it your machine is an apple holds true).

I would reccomend (if possible), to doa low level format on the drive...

dd if=/dev/zero of=/dev/sda

then make sure to initialize a partition map on it (happens first time you open with mac-fdisk ... with is really pdisk but that's another story that involves debian and a huge mailing list thread hehe).

Short story, trust the mac-fdisk information. Another thing you can do to maybe remedy without low leveling, is to turn off the option for the PC partition types in your kernel, then it can only read the mac partition tables and not the PC ones ...

I have run into this one before and pulled out much hair trying to figure it out, but if you can find any way to get rid of the PC partition tables then you shoudl be fine :)
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Apr 17, 2004 2:14 pm    Post subject: Reply with quote

Wow i never saw that he ran fdisk , i didn't have fdisk when i installed . thats crazy
Back to top
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