Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
1st yaboot, can't find /dev/hda4 [RESOLVED]
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
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 886
Location: New Orleans

PostPosted: Fri Feb 04, 2011 1:27 am    Post subject: 1st yaboot, can't find /dev/hda4 [RESOLVED] Reply with quote

Hello all,

Ok, just finished the install and trying first reboot...and it failed.
I"m going back through...and can't seem to find my problem/errors. Hoping a 2nd set of eyes can help me.

Ok, to start:

When I boot up it hangs with:

Code:

* Checking root filesystem...
/sbin/fsck.sfx: /dev/hda4 does not exist
*Filesystem couldn't be fixed  :(
Give root password for maintenance
(or type Control-D to continue)



I've been trying to go through to find the problems..and can't see them. I've been searching the forums..and see some posts similar, but just not quite looking what I have.

Here's my info:

Code:

mac-fdisk -l give the following:

/dev/hda
# type name length base (size) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 (31.5K) Partition map
/dev/hda2 Apple_Free 262144 @ 64 (128.0M) Free Space
/dev/hda3 Apple_HFS Apple_HFS_Untitled_4 58342896 @ 262208 (27.8G) HFS
/dev/hda4 Apple_Free 16 @ 58605104 (8.0k) Free Space

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

/dev/hdb
# type name length base (size) system
/dev/hdb1 Apple_partition_map Apple 2 @ 1 (1.0k) Partition map
/dev/hdb2 Apple_HFS catalyst 20101212 260748 @ 16 (127.3M) HFS

lock size=512, Number of Blocks=260764
DeviceType=0x1, DeviceId=0x1


My /etc/yaboot.conf:
Code:

boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6-32-gentoo-r20
       label=Linux
       read-only


My fstab:
Code:


#/dev/BOOT                /boot                    xfs           noauto,noatime               1 2
/dev/hda4                   /                           xfs           noatime                          0 1
/dev/hda3                  none                      swap        sw                                  0 0
/dev/cdrom                /mnt/cdrom            auto         noauto,ro                        0 0
#/dev/fd0                  /mnt/floppy             auto         noauto                            0 0
proc                          /proc                      proc         defaults                           0 0


#some comments

shm                          /dev/shm                 tmpfs       nodev,nosuid,noexec       0 0



One strange thing with yabootconfig...I had to tell it like 3-4 times the path to my kernel...I triple checked and was right /boot/kernel-2.6-32-gentoo-r20 typed in...it finally accepted it.

All looks well...but just doesn't seem to want to boot.

I can boot back to CD and mount /dev/hda4 onto /mnt/gentoo and chroot back in...I"m just not sure what to do from here.

Anything stand out as wrong?

One last thing...when setting up the disks...I used to use reiserfs...when you formatted the partition with that...it spit out a lot of message...etc while it formatted the disk.
The xfs formatting...didn't seem to do much...at least, it wasn't verbose..that's for sure.

Any suggestions?

thank you,

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........


Last edited by cayenne on Mon Feb 14, 2011 11:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1234

PostPosted: Fri Feb 04, 2011 2:32 am    Post subject: Re: 1st yaboot, can't find /dev/hda4 Reply with quote

cayenne wrote:

#/dev/BOOT /boot xfs noauto,noatime 1 2
/dev/hda4 / xfs noatime 0 1
/dev/hda3 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0





Any suggestions?

thank you,

cayenne

Yes reformat /boot to use ext2
xfs is too unreliable for booting.
And / or try sda4 in place of hda4
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 886
Location: New Orleans

PostPosted: Fri Feb 04, 2011 9:26 pm    Post subject: Re: 1st yaboot, can't find /dev/hda4 Reply with quote

turtles wrote:
cayenne wrote:

#/dev/BOOT /boot xfs noauto,noatime 1 2
/dev/hda4 / xfs noatime 0 1
/dev/hda3 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0





Any suggestions?

thank you,

cayenne

Yes reformat /boot to use ext2
xfs is too unreliable for booting.
And / or try sda4 in place of hda4


Thanks for the reply...but if you notice..the /dev/BOOT is commented out on the fstab...on the ppc, there isn't a separate /boot partition like with x86 boxes...right? I read recommendations that since Apple bootstrap, etc partitions are actually used for boot up...that you don't want to generally have a different boot partition

My /boot is on the same partition as my / .....so, no way I can format it differently than the rest of that partition.

Or..is this saying that XFS isn't a viable option as a filesystem on an old iBook G3 PPC? Would I be stuck starting over and only able to use ext2?

I checked ..my drives all seem to be /dev/hda....see the output from my mac-fdisk -l

Thanks for the reply...looking for some validation that XFS can't be used, and I have to start all over?

cayenne 8O
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
blob999
n00b
n00b


Joined: 07 Jun 2009
Posts: 64
Location: NATO area

PostPosted: Fri Feb 04, 2011 10:01 pm    Post subject: Re: 1st yaboot, can't find /dev/hda4 Reply with quote

cayenne wrote:

Thanks for the reply...looking for some validation that XFS can't be used, and I have to start all over?


http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#xfs

i guess that's enough for your validation request....
_________________
LinuxPPC user!
my blog: http://linuxpowerpc.blogspot.com/
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 886
Location: New Orleans

PostPosted: Sat Feb 05, 2011 12:31 am    Post subject: Re: 1st yaboot, can't find /dev/hda4 Reply with quote

blob999 wrote:
cayenne wrote:

Thanks for the reply...looking for some validation that XFS can't be used, and I have to start all over?


http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#xfs

i guess that's enough for your validation request....

WOW....thanks!!
I wish I had known this document existed out there....didn't find it with any of my searches..

Ok...can boot up with live cd...chroot in...and do this.

I'll give it a try and report back

C :P
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 886
Location: New Orleans

PostPosted: Sat Feb 05, 2011 1:34 am    Post subject: hmm...didn't work Reply with quote

Well, I booted up with the live cd.

I did a mount /dev/hda4 /mnt/gentoo

I did cd to /mnt/gentoo/usr/src/linux

and did a cat vmlinux /mnt/gentoo/usr/boot/kernel-2.6.32-gentoo-r20 ( this was the name of the file I'd originally had cp'ed over and is what yaboot.conf is pointing to for the image:

image=/boot/kernel-2.6.32-gentoo-r20
label=linux
read-only

Anyway..when rebooted...same error:

Code:

/sbin/fsck.xfs: /dev/hda4 does not exist
*FIlesystem couldn't be fixed :(


Hmm...not the exact error that was in the faq that was pointed out to me in this thread which said: "read error"

Any ideas?

Thanks in advance...

cayenne :?
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 08, 2011 7:34 am    Post subject: Reply with quote

As a first step, make sure that the controller for the HD is built into your kernel. Likewise, if the machine has more than one HD controller, make sure that the drive enumeration results in the same drive names as the boot CD.

As for the "boot" partition, I do put a small ext3 partition on all of my PPC machines for the kernel so that I can try newer, unsupported filesystems for my root partition. It's perfectly fine to have a separate boot partition, just not required. XFS should work, but if you want to rule that out, you could carve a boot partition out of your swap temporarily.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 886
Location: New Orleans

PostPosted: Mon Feb 14, 2011 11:43 pm    Post subject: Update Reply with quote

I dunno if I can mark this SOLVED..as that I basically gave up on the XFS thing.

I started over...did everything with the ext3 file system..and simply named my kernel vmlinux in the /boot directory....yabootconfig found it with no problems.

I'll mark this maybe resolved or something...

Thank you for all the help!

Now..trying to get X working on it with KDE....weeding through that install now.
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
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