Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting the boot partition!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
miltoncsl
n00b
n00b


Joined: 26 Sep 2021
Posts: 6

PostPosted: Sun Sep 26, 2021 1:59 pm    Post subject: Mounting the boot partition! Reply with quote

Hello,

I'm trying to install gentoo on a Mac Mini powerpc g4. I tried to follow the instructions on the project's installation wiki (https://wiki.gentoo.org/wiki/Handbook:PPC)! However, when I go to mount the boot partition [Mounting the boot partition] (/dev/sda1) I get this error message (or at least that's what I think):

mount: /boot: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.

What do I need to do to fix this error?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun Sep 26, 2021 2:13 pm    Post subject: Reply with quote

Have you created a filesystem on /dev/sda1? Which one?

What does
Code:
file -s /dev/sda1

return?

It should be something like:
Code:
/dev/sda1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "mkfs.fat", Media descriptor 0xf8, sectors/track 32, heads 64, hidden sectors 2048, sectors 409600 (volumes > 32 MB), FAT (32 bit), sectors/FAT 3151, reserved 0x1, serial number 0xXXXXX, unlabeled

or
Code:
/dev/sda1: Linux rev 1.0 ext4 filesystem data, UUID=XXXX (needs journal recovery) (extents) (64bit) (large files) (huge files)
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 437

PostPosted: Sun Sep 26, 2021 4:02 pm    Post subject: Re: Mounting the boot partition! Reply with quote

miltoncsl wrote:
Hello,

I'm trying to install gentoo on a Mac Mini powerpc g4. I tried to follow the instructions on the project's installation wiki (https://wiki.gentoo.org/wiki/Handbook:PPC)! However, when I go to mount the boot partition [Mounting the boot partition] (/dev/sda1) I get this error message (or at least that's what I think):

mount: /boot: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.

What do I need to do to fix this error?


Looking at your linked handbook, is your Mac Mini a New World or Old World mac? I would determine that and then use the suggested partition structure for the appropriate one.
Back to top
View user's profile Send private message
miltoncsl
n00b
n00b


Joined: 26 Sep 2021
Posts: 6

PostPosted: Mon Sep 27, 2021 8:46 pm    Post subject: Mounting the boot partition! Reply with quote

hello,

I repeated the steps and check that when formatting the partition this message is displayed:

Lived ~# mkfs.vfat -F 32 /dev/sda1

WARNING: Number of clusters is 32 bit FAT is less then suggested minimum.
mkfs.vfat: Too few blocks for viable filesystem

Does this have to do with what is happening further on in the installation manual when mounting the /dev/sda1 partition?

PS.: Mac Mini G4 is a NewWorld machine!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Mon Sep 27, 2021 10:37 pm    Post subject: Reply with quote

I interpret that message to mean that /dev/sda1 is too small to create a FAT filesystem with the requested properties. How big are each of the partitions on the system?
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1214
Location: Massachusetts USA

PostPosted: Mon Sep 27, 2021 11:04 pm    Post subject: Reply with quote

Look at the Apple New World section of the manual and the file system types that you should use. You need to modify the instructions in the rest of the manual to match the layout given in the Apple New World section.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 437

PostPosted: Mon Sep 27, 2021 11:57 pm    Post subject: Reply with quote

This is the example partition layout from the document you linked for the New World macs.

Code:
Partition    Size    Filesystem    Description
/dev/sda1    32KiB    None.    Apple Partition Map (APM).
/dev/sda2    800KiB    HFS    Apple bootstrap.
/dev/sda3    512 MiB    swap    Linux swap (type 0x82).
/dev/sda4    Rest of the disk.    ext4, reiserfs, xfs, etc.    Linux root.


There is no /dev/sda1 as a boot partition.

The only macs that I have put other operating systems on were Intel based hardware. I typically kept a small mac os on the drive along with whatever else is on the drive.
Back to top
View user's profile Send private message
miltoncsl
n00b
n00b


Joined: 26 Sep 2021
Posts: 6

PostPosted: Tue Sep 28, 2021 12:49 am    Post subject: Reply with quote

Hu wrote:
I interpret that message to mean that /dev/sda1 is too small to create a FAT filesystem with the requested properties. How big are each of the partitions on the system?


hello,

I formatted as the documentation section indicates! With the /dev/sda1 partition being only 32kb! If that size is not correct what should the size be then?

Partition Size Filesystem Description
/dev/sda1 32KiB None. Apple Partition Map (APM).
/dev/sda2 800KiB HFS Apple bootstrap.
/dev/sda3 512 MiB swap Linux swap (type 0x82).
/dev/sda4 Rest of the disk. ext4, reiserfs, xfs, etc. Linux root.
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1214
Location: Massachusetts USA

PostPosted: Tue Sep 28, 2021 1:06 am    Post subject: Reply with quote

/dev/sda1 does not have a filesystem
/dev/sda2 has a HFS filesystem
/dev/sda3 is formatted as swap
/dev/sda4 has whatever you want to use.
Back to top
View user's profile Send private message
miltoncsl
n00b
n00b


Joined: 26 Sep 2021
Posts: 6

PostPosted: Tue Sep 28, 2021 12:49 pm    Post subject: Mounting the boot partition! Reply with quote

hello,

So I shouldn't format the /dev/sda1 partition? Can I follow the manual without doing anything with this partition?
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1214
Location: Massachusetts USA

PostPosted: Tue Sep 28, 2021 1:40 pm    Post subject: Reply with quote

There is a forum "gentoo on ppc" that can help with your installation problems. It's at the bottom of the list of forums.

You will need to change partition references since parts of the manual seem to be for a x86/amd64 system.

When you set up fstab do not create entries for /dev/sda1 and /dev/sda2. You do not have to do anything with those partitions until you install yaboot at the end of the installation.

I don't know what problems you will meet since I am not an Apple user.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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