Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stuck on part of installation
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
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Mon Aug 04, 2014 6:52 pm    Post subject: Stuck on part of installation Reply with quote

Hello

I have never used gentoo before, I am trying to follow the handbook.
I have downloaded the install-x86-minimal-20140729.iso and burnt to cd.

I am currently at this part in the handbook - Creating the Partitions - https://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4
I skipped all the networking parts, but it looks to me like the partition part is mandatory for "a 2 MB partition that will be used by the GRUB2 bootloader later"

When I run the cmd

(parted) unit mib
(parted) mkpart primary 1 3

I receive "Warning: You requested a partition from 1.00 MiB to 3.00 MiB, The closest location we can manage is 1.00 MiB to 1.00 MiB. Is this acceptable"

As the handbook says we need 2 MiB for GRUB2, this doesn't seem acceptable.

I am stuck on what to do next...

Can anybody help me?

Thanks
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Mon Aug 04, 2014 8:32 pm    Post subject: Reply with quote

EDIT: Sorry I am blind, I didnt see the 1 to 1mb thing.

It sounds like there are already partitions on the disk. Did you do the "print" and "rm <number>" commands from above that part?
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Mon Aug 04, 2014 8:38 pm    Post subject: Reply with quote

Default tip: The System Rescue CD has better networking support and a working X server with web browser so you can do things like read the handbook and browser the forums during the install. It also has some nice tools for partitioning.

The most concerning part of your post is that you don't have networking. It is basically required for the install since nothing on the CD is used in your final installation. It is all downloaded, most of it manually. It is possible to use sneakernet, but you really shouldn't do that for a first install.

Now, on to your actual question. First, this really falls into several categories. Is this a dual boot setup? If this is windows 8, that changes everything. If otherwise, it may since you only need one boot loader. Second, is this a EFI computer? Booting in EFI mode has several advantages and requires a slightly different partitioning scheme.

As for your specific error, understand that the handbook is more like guidelines. There should be no problem adjusting the size of your partitions to suit your needs. I don't think using a 4 MiB partition will hurt anything. And really, what is 2 extra MiB worth?
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Mon Aug 04, 2014 9:07 pm    Post subject: Reply with quote

The Doctor wrote:
As for your specific error, understand that the handbook is more like guidelines. There should be no problem adjusting the size of your partitions to suit your needs. I don't think using a 4 MiB partition will hurt anything. And really, what is 2 extra MiB worth?


I think you missed the same part I did.

Quote:
I receive "Warning: You requested a partition from 1.00 MiB to 3.00 MiB, The closest location we can manage is 1.00 MiB to 1.00 MiB. Is this acceptable"


Hes actually encountering a real problem :wink:
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Mon Aug 04, 2014 9:13 pm    Post subject: Reply with quote

Quote:
Hes actually encountering a real problem
I don't think so. The size of disk partitions almost always has to be adjusted to accommodate the hardware. The only exception to this is when you enter an appropriate value either by chance or by design. This is what my suggestion would work around.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
shazeal
Apprentice
Apprentice


Joined: 03 May 2006
Posts: 197
Location: New Zealand

PostPosted: Mon Aug 04, 2014 10:39 pm    Post subject: Reply with quote

Ahh ok I see what you're getting at.
_________________
CFLAGS="-OmgWTFR1CE --fun-lol-loops --march=asmx86go"
Back to top
View user's profile Send private message
dcljr
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 139
Location: Austin, TX

PostPosted: Tue Aug 05, 2014 12:53 pm    Post subject: Reply with quote

I had a similar problem with parted -- although in my case I was getting unaligned partitions, which I could not get parted to stop creating following the Handbook's suggestion to use "unit mib".

Witness (note that this was a newly purchased empty drive):
Code:
# parted -a optimal /dev/sdb
GNU Parted 3.0
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? yes
(parted) unit mib
(parted) mkpart primary 1 3
(parted) name 1 grub
(parted) set 1 bios_grub on
(parted) print
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 2861588MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start    End      Size     File system  Name  Flags
 1      1.00MiB  3.00MiB  2.00MiB               grub  bios_grub

(parted) mkpart primary 3 131
Warning: You requested a partition from 3.00MiB to 131MiB.
The closest location we can manage is 3.00MiB to 131MiB.
Is this still acceptable to you?
Yes/No? yes
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? i
(parted) print
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 2861588MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start    End      Size     File system  Name     Flags
 1      1.00MiB  3.00MiB  2.00MiB               grub     bios_grub
 2      3.00MiB  131MiB   128MiB                primary

(parted) align-check opt 1
1 aligned
(parted) align-check opt 2
2 not aligned
(parted) unit b
(parted) print
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 3000592982016B
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start     End         Size        File system  Name     Flags
 1      1048576B  3146239B    2097664B                 grub     bios_grub
 2      3146240B  137363967B  134217728B               primary

See what parted has done? The first partition starts at 1MiB exactly, but the second one is starting at 3.000488281MiB -- more precisely, 6145 512-byte sectors -- who the hell would want their partitions to start at an odd number of 512-byte sectors? Especially nowadays when many drives actually report 4096-byte physical sectors (like the one above).

EDIT: Note that this seems to have been caused by my use of GNU Parted 3.0 (on my current/old Gentoo system) instead of GNU Parted 3.1 (the latest version, and presumably the one I would have been using if I had booted from an installation CD).

What I finally ended up doing was (the "cyl" alignment option probably was not really necessary, but I had already done it when things started working, so I stuck with it -- also, this is edited output):
Code:
# parted -a cyl /dev/sdb
(parted) unit s
(parted) mkpart primary 2048 8191
(parted) name 1 grub
(parted) set 1 bios_grub on
(parted) print
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 5860533168s
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start       End          Size         File system  Name     Flags
 1      2048s       8191s        6144s                     grub     bios_grub
(parted) mkpart primary 8192 262143
(parted) name 2 boot
(parted) mkpart primary 262144 8388607

And so forth, always keeping the partitions starting on a multiple of 2048 512B sectors (= 256 4096B sectors = 1MiB) and ending on one less than such a multiple. In fact, all of the subsequent partitions I created started on multiples of 4096MiB, just for extra "peace of mind". (Obviously, this all required a calculator, but it's better than getting misaligned partitions.) The resulting partitions all passed "align-check opt" checks.

The "unit b" (bytes) equivalent of the above (up to that point, anyway) is:
Code:
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 3000592982016B
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start         End             Size            File system  Name     Flags
 1      1048576B      4194303B        3145728B                     grub     bios_grub
 2      4194304B      134217727B      130023424B                   boot
 3      134217728B    4294967295B     4160749568B                  primary


Oh, and as a general tip, I actually prefer to use "print free" instead of just "print" (shown above) because it gives additional information about unpartitioned space on the drive.

BTW, when the OP said "I skipped all the networking parts", I think he meant his networking "just worked", so he didn't need to do any additional configuration on it.


Last edited by dcljr on Fri Aug 29, 2014 2:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Tue Aug 05, 2014 2:27 pm    Post subject: Reply with quote

Thanks for the help Doctor, however I started to follow this video http://www.youtube.com/watch?v=sJwwcw56d6c
And managed to pass the partitioning stage with the commands he uses.

Regards
_________________
k.
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