Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with hardware raid and the way i should be paritioning
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 3:30 pm    Post subject: Reply with quote

F it dude

write me an exact partion layout i will follow that and then realsie what im doing wrong

boot
root
home
swap

il follow exactly what u say
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 3:32 pm    Post subject: Reply with quote

Gentobobbyuk wrote:
the paritions ive created are what the manual tells me to create
im so f confused.

/dev/sda1 is the boot bios as the manual says to make .

the manual does not then tell u what file system to apply to this


Really blame the handbook for this. the directions are not clear or specific to each boot configuration.

you can format sda1 with ext2

sda1 however being only 2MB size is too small to be used for /boot.

an initramfs image is typically 100MB
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 3:40 pm    Post subject: Reply with quote

Gentobobbyuk wrote:
F it dude

write me an exact partion layout i will follow that and then realsie what im doing wrong

boot
root
home
swap

il follow exactly what u say



all of the correct commands are listed here

https://forums.gentoo.org/viewtopic-p-8472574.html#8472574
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 3:48 pm    Post subject: Reply with quote

This is f killing me

Dude i re write everything i figure out so others dont have to go throu this .

dude the manual tells me to physically make this parition this size as i did


please please please please please plese

I have 2,7 TB

Please just write me a partition layout

i want whatever shit i need as usual

root home and swap

Il follow exactly what u say

parted -a optimal /dev/sda
mklabel gpt
unit mib

"your input"

Boot whatever u say i need using the GPT label ./

swap 16 gb
root 40gb
home rest of space


rest of manual

grub install command
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 3:50 pm    Post subject: Reply with quote

Code:
parted -a optimal /dev/sda
mklabel gpt
mkpart boot ext4 1 512
mkpart swap linux-swap 513 16896
mkpart rootfs ext4 16896 57856
mkpart home ext4 57856 100%
set 1 bios_grub on


I understand the need to use the handbook for new gentoo users. many veterans especially me find the handbook could use some updates or alterations to make disk partition config clearer or specific for legacy boot or uefi boot separated.

It would take someone a couple hours to write two new wiki pages and create html links to each page specific to legacy boot or uefi boot partition config.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!


Last edited by ali3nx on Fri Jun 19, 2020 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 3:51 pm    Post subject: Reply with quote

Right thanks bro

ANd when i go to install grub at the end im sending it to sda1 correct ?
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 3:52 pm    Post subject: Reply with quote

P.s im so sorry for the pain i may have just put u threw
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 3:56 pm    Post subject: Reply with quote

Gentobobbyuk wrote:
P.s im so sorry for the pain i may have just put u threw


No worries friend. I didn't learn gentoo in my first week. when i did learn the install handbook did not exist 8O

I entirely understand the challenges and frustration.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 3:58 pm    Post subject: Reply with quote

Gentobobbyuk wrote:
Right thanks bro

ANd when i go to install grub at the end im sending it to sda1 correct ?


to install grub for legacy boot directing grub to use the full disk block device is required. only uefi boot grub-install uses a disk partition mount in the grub-install command.

Code:
grub-install /dev/sda


to compile grub with support for legacy boot you must set grub platforms to "pc"

Code:
GRUB_PLATFORMS="pc"

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!


Last edited by ali3nx on Fri Jun 19, 2020 4:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 4:01 pm    Post subject: Reply with quote

Ok thats how i setup my MBR so its kind of GPT and MBR

mate i have servers desktops verious machines

When i first used gentoo there was no grub 2 its changed abit and with the uefi im fine


i jut have some machines that dont support that il post my outcome shortly .

Im just building a a new machine i hope this works .
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 4:39 pm    Post subject: Reply with quote

Dont worry bro i ive got docs written for all sorts of shceems

mbr gpt uefi and now none uefi il share them with u later if im able to message u .
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 4:43 pm    Post subject: Reply with quote

Gentobobbyuk wrote:
Dont worry bro i ive got docs written for all sorts of shceems

mbr gpt uefi and now none uefi il share them with u later if im able to message u .



There is a discord server for gentoo users. you can find me (my discord user is xartin) and several others there often.

https://discord.gg/gentoo

Perhaps discord support will also be helpful for you :)
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Phoenix591
Guru
Guru


Joined: 17 Sep 2007
Posts: 485

PostPosted: Fri Jun 19, 2020 9:41 pm    Post subject: Reply with quote

ali3nx wrote:
Gentobobbyuk wrote:
the paritions ive created are what the manual tells me to create
im so f confused.

/dev/sda1 is the boot bios as the manual says to make .

the manual does not then tell u what file system to apply to this


Really blame the handbook for this. the directions are not clear or specific to each boot configuration.

you can format sda1 with ext2

sda1 however being only 2MB size is too small to be used for /boot.

an initramfs image is typically 100MB

You're doing a great job helping this dude out, but one correction, the bios_grub partition for legacy booting gpt partition table systems is NOT for /boot. its just reserving space for grub to put its loader , and it should NOT be formatted with any filesystem, just an unformatted partition with the bios_grub flag. Check out this page of grub documentation and this nice diagram from wikipedia

In the diagram's legacy boot GPT example the EFI partition is optional ( only used to ensure the system could boot from either uefi or legacy )
the /boot partition is optional (can easily be left combined with /, grub can read ext 4 just fine)
the /home partition is also optional

You'd only really need a tiny 2 MB bios_grub partion and a / partition for pure legacy only booting.
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 10:01 pm    Post subject: Reply with quote

THIS IS WHAT I HAVE BEEN TYRING TO ASK ALL ALONG IM LITTERALLY AT THE END OF A COMPILE AND NOW HAVE A BOOR PARITION WITH EXT4
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Fri Jun 19, 2020 10:17 pm    Post subject: Reply with quote

Phoenix591 wrote:
ali3nx wrote:
Gentobobbyuk wrote:
the paritions ive created are what the manual tells me to create
im so f confused.

/dev/sda1 is the boot bios as the manual says to make .

the manual does not then tell u what file system to apply to this


Really blame the handbook for this. the directions are not clear or specific to each boot configuration.

you can format sda1 with ext2

sda1 however being only 2MB size is too small to be used for /boot.

an initramfs image is typically 100MB

You're doing a great job helping this dude out, but one correction, the bios_grub partition for legacy booting gpt partition table systems is NOT for /boot. its just reserving space for grub to put its loader , and it should NOT be formatted with any filesystem, just an unformatted partition with the bios_grub flag. Check out this page of grub documentation and this nice diagram from wikipedia

In the diagram's legacy boot GPT example the EFI partition is optional ( only used to ensure the system could boot from either uefi or legacy )
the /boot partition is optional (can easily be left combined with /, grub can read ext 4 just fine)
the /home partition is also optional

You'd only really need a tiny 2 MB bios_grub partion and a / partition for pure legacy only booting.


Thanks. I've tried to offer simple solution and I have owned many legacy boot systems the last one very similar to OP's server being nehalem based first gen intel.

I've never needed that silly 2MB empty partition. legacy boot works without it. I've booted gpt legacy boot systems with one partition and no swap. I'm tempted to live stream an install attempt on Gentoo discord doing an install using qemu to prove it works.

Something i've mentioned to the developers in the past is several major sections of the amd64 gentoo install handbook have not been updated for many years. now five years.

https://wiki.gentoo.org/index.php?title=Handbook:AMD64/Installation/Disks&action=history

While there's not a lot i can personally do about this I can and have for many years ignored major sections of the install the handbook and advised or assisted many others how to do it successfully.

It's novel to accept a five year old document at face value but it is just a novelty. The recommended disk partition layout really needs to be reconsidered. If this guys frustrated I get it and what i advised works, worked on my 1st gen i7-920.

Your not alone being frustrated with an outdated install handbook and haven't been for a long time.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Gentobobbyuk
Apprentice
Apprentice


Joined: 23 May 2020
Posts: 196

PostPosted: Fri Jun 19, 2020 10:38 pm    Post subject: Reply with quote

FOLLOWED EXACLTY AS SAID DOES NOT EBEN GET TO GRUB BOOT LOADER REBOOTS IN BIOS
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 722
Location: Winnipeg, Canada

PostPosted: Sat Jun 20, 2020 1:07 am    Post subject: Reply with quote

It is still possible for legacy boot bios motherboards to not be capable of booting from gpt partition labels. I mentioned this earlier in this post.

gpt partition labels when they began to become usable were and are 64 bit because of this some older legacy boot bios motherboards were incapable of reading a 64 bit disk partition label.

Boot testing hardware with legacy boot systems is sometimes required especially with older hardware. you can make a backup of your install progress within a chroot using this bash script then try using msdos partition label instead of gpt.

If you feel so strongly that the default gpt setup with that unnecessary unformatted 2 MB partition would boot please do test that also.

The bios_grub partition flag is what grub and legacy bios systems look for to boot grub. that stiill existed but on a larger formatted partition that was usd to store grub's config files and linux kernel binaries.

If you used a single partition for legacy boot and no swap setting the bios_grub flag on sda1 would still be necessary.

https://pastebin.com/pE6ke2V4

This backup script will make a tar.gz that can be used to replace the gentoo install stage3. When used within a chroot from a livecd for example comment the mount and umount commands.

My apologies for the delayed reply but my sofa and pillow overcame me :)
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Sat Jun 20, 2020 9:20 am    Post subject: Reply with quote

Gentobobbyuk,

Shouting at us does not help.
We all understand your frustration.

First some background. When you make a GPT disk lable, you actually get two disk labels.
The GPT disk label you thought you were creating.
An MSDOS disk label that reserves all or up to 2TB of the drive and serves as a warning that GPT is in use.

Some BIOS booting systems require that the bootable flag be set or they will not boot from the drive.
But BIOS will only load the MSDOS disk label, so the bootable flag must be set there, not in the GPT partition table.
Actually, the GPT partition table does not matter to the BIOS boot process.

Now it gets worse.
Some overly clever UEFI firmware system, when set to Legacy BIOS, check the partition type in the MSDOS disk label and if its the GPT is in use warning, will refuse to boot in Legacy BIOS mode. Some Dell laptops for example.

This gets you onto the slippery slope ...
You can create the same data in both partition tables buf that's fragile and unsupported.
Don't go there.

My boot drive looks like ...
Code:
$ sudo fdisk -l /dev/sde
Password:
Disk /dev/sde: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Crucial_CT512MX1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 34FC1BD2-FEC6-4CEC-9A4E-0EF83A538F86

Device      Start        End   Sectors   Size Type
/dev/sde1    2048     249855    247808   121M Linux filesystem
/dev/sde2  249856 1000214527 999964672 476.8G Linux filesystem

...

$ sudo fdisk -t dos -l /dev/sde
Disk /dev/sde: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Crucial_CT512MX1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors  Size Id Type
/dev/sde1  *        1 1000215215 1000215215  477G ee GPT

Partition 1 does not start on physical sector boundary.

That's both partition tables on a GPT drive

Set the bootable flag in the single partition in the MSDOS disk label and try again.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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
Goto page Previous  1, 2
Page 2 of 2

 
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