Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to mount root & no valid partition
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun Nov 26, 2006 8:17 pm    Post subject: unable to mount root & no valid partition Reply with quote

hi there, i have a strange issue on a PPC Tibook.
when i make a new kernel using the original and working .config and omitting alsa support, only after compill. and setting yaboot conf and ybin the kernel can not mount the root fs.
If i ask fdisk to -l, it says
Quote:
Disk /dev/hda doesn't contain a valid partition table

The system is however up an running.
This system was originally put on a different parition and then copied to its present place.
Is it a yaboot issue? ??
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
Fulgore
n00b
n00b


Joined: 22 Jul 2004
Posts: 17
Location: New Zealand

PostPosted: Mon Nov 27, 2006 6:11 am    Post subject: Reply with quote

Hi,
Are the correct partition types built into the kernel?
I got caught when shifting my root partition form ext3 to reisrfs and forgot that reiserfs support was complied as a module :oops:
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Nov 27, 2006 9:10 am    Post subject: Reply with quote

filesystems are ok, ext's are in the kernel, i use journalled ext3.
The partition advanceds in kernel are
Macintosh Partition Map Support

but

Is Blessed Partition formatted hfs?????????? that is removed into module....
I give a check
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Nov 27, 2006 8:30 pm    Post subject: Reply with quote

Well, even if hfs is in-kernel, the problem is the same.
Should i reformat Blessed Partition and reinstall Yaboot?
Any advise?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Nov 27, 2006 9:15 pm    Post subject: Reply with quote

fdisk will only display pc partitions, mac-fdisk is the tool that you should use to view Apple partitions.

As for ybin, post the output of mac-fdisk -l and the contents of your yaboot.conf.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Nov 28, 2006 12:49 am    Post subject: Reply with quote

Moved from Other Things Gentoo to Gentoo on PPC.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Dec 02, 2006 2:19 pm    Post subject: Reply with quote

mac-fdisk & yaboot.conf are the followings>
Quote:
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap untitled 1954 @ 64 (977.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 untitled 13671876 @ 2018 ( 6.5G) Linux native
/dev/hda4 Apple_UNIX_SVR2 swap 2759766 @ 13673894 ( 1.3G) Linux swap
/dev/hda5 Apple_UNIX_SVR2 untitled 39062500 @ 16433660 ( 18.6G) Linux native
/dev/hda6 Apple_Free Extra 22644000 @ 55496160 ( 10.8G) Free space

Block size=512, Number of Blocks=78140160
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff

yaboot.conf is this>

Quote:

boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
default=g1

image=/boot/vmlinux
label=g1
partition=3
root=/dev/hda3
read-only


image=/boot/vmlinux
label=gentoo
partition=6
root=/dev/hda6
read-only

image=/boot/vmlinux-new
label=new
partition=3
root=/dev/hda3
read-only
[/quote]

The ext3 fs, ApplePartitioning scheme and hfs support are in kernel, as well Macintosh partition map support. nfs root is not allowed.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Dec 02, 2006 10:54 pm    Post subject: Reply with quote

What's the exact error? Perhaps you didn't start with make pmac32_defconfig and forgot to enable disk support?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Wed Dec 06, 2006 11:19 am    Post subject: Reply with quote

JoseJX wrote:
What's the exact error? Perhaps you didn't start with make pmac32_defconfig and forgot to enable disk support?


pmac32_defconfig sounds alien to me - U might be right. Correction how?
Disk support is enabled - if U mean kernel support, that i know i have it enabled.

Thanx a lot.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 06, 2006 2:06 pm    Post subject: Reply with quote

From your kernel source directory, type make pmac32_defconfig. This will generate a default config for most Macintosh machines and should get you booting at least. If you didn't do this before configuring your kernel, the basic config is very sparse and people tend to forget to turn things on. :p
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Wed Dec 06, 2006 8:41 pm    Post subject: Reply with quote

OK. Just one question.
In /usr/src there is a linux folder and the kernel i try to configure (2.6.19) , and a 2.6.17-r8 kernel in use. From which directory should i give this command?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
gentooken
n00b
n00b


Joined: 24 Jul 2006
Posts: 23

PostPosted: Wed Dec 06, 2006 8:52 pm    Post subject: Reply with quote

issue it in /usr/src/linux/
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