Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get help on partitioning here [Part 2]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 28, 29, 30  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jan 31, 2012 12:04 am    Post subject: Reply with quote

daglamier22,

With 8G RAM, you can build everything except libreoffice in RAM and you might just squeeze that in. It needs 6G at the moment.
You can also have /tmp in RAM, which you might as well, as its wiped on boot anyway.

A 512Mb swap will be plently - if you need more, you are doing something wrong.
You can add a swip file later if there is really the need.

/home should not inclcude your music/movies or other media stuff you want in another OS.
/home is for your users private data and personal settings.

/boot on the SSD will speed booting but only marginally. Its a personal preferance.
_________________
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
snoopy86
n00b
n00b


Joined: 19 Feb 2012
Posts: 1

PostPosted: Sun Feb 19, 2012 3:03 pm    Post subject: Reply with quote

Hi.

I'm installing gentoo for the first time. How should i partition my disk?

Whole 250gb disk is going to be used for gentoo, there will be no dual boot. There is 2gb of ram which will be increased to 4gb.

Computer is going to be used for programming, i have some music and videos.

Thanks for the help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 19, 2012 7:59 pm    Post subject: Reply with quote

snoopy86,

Welcome to Gentoo.

With >=2G ram you should do a amd64 install.
You do not need a separate /boot partition as every recent BIOS can read the entire HDD but its harmless and may make it easier for you to follow the handbook.
For swap, choose 512Mb or 4G, depending on your need to hibernate to RAM. 4G will allow hibernate to work with your bigger RAM.
You will need a / partition of 40G. This will let you build a esktop Gentoo without flushing source files.
You might also like a /home partition. The advantage of a separate /home is that it is easy to preserve over reinstalls, should you feel the need.

So,

/boot 64Mb ext2
<swap> 512Mb or 4G
/ <root> 40G or rest of drive ext4
/home rest of drive ext4

With 4G RAM you can consider putting /tmp and /var/tmp/portage into shmfs.
_________________
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
leozk
n00b
n00b


Joined: 25 Mar 2012
Posts: 1

PostPosted: Sun Mar 25, 2012 6:51 pm    Post subject: Reply with quote

I want to set up an encrypted partition
I have windows installed, I need a /boot partition and an encrypted luks volume like this:

---/boot
---luks
-----lvm
-------/root
-------swap
Back to top
View user's profile Send private message
gcb
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 81

PostPosted: Thu Mar 29, 2012 8:38 am    Post subject: Reply with quote

i usually split /var for performance/security reasons. set 4Gb for it

no problem until i tried to install libreoffice... it used a lot MORE than 4gb to compile.

had to do

Code:
export PORTAGE_TMPDIR=/home/extra-portage-tmp
emerge ...
Back to top
View user's profile Send private message
butaneko
n00b
n00b


Joined: 06 Aug 2012
Posts: 1

PostPosted: Mon Aug 06, 2012 8:20 pm    Post subject: Reply with quote

So, I have Windows 7 installation currently on a single HDD with three partitions - boot, C, D. I am wondering if I will be able to squeeze enough space to make a Gentoo installation and dual boot it with W7. I can free 360GB unallocated space from D: and would like to use it for the job. Now, how do I proceed? I was thinking about the following:

sda1 - windows boot partition
sda2 - C
sda3 - D
sda4 - extended to three logical partitions for boot, swap and root.
sda5 - first logical, boot
sda6 - second logical, swap
sda7 - third logical, root

Would that work? I am almost complete newbie, especially went it comes to dual boot configuration. I am not sure whether I actually need two boot partitions or not. Eventually I can completely erase D: to free even more space for partitioning, but I rather not do it if I can.

EDIT: I came up with another question, hope you don't mind. :D Is there a way to access files by the two OSs on the same HDD. I mean if I add a Gentoo installation now, would there be a way to access the files on my Windows installation and vice versa?

EDIT2: Everything works just fine using the layout above. Just don't set the linux boot partition as bootable and everything is fine. Also D can be accessed by the two OSs, just make sure you have the necessary packages to use ntfs file system.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Sat Sep 22, 2012 1:06 pm    Post subject: Reply with quote

My installation fails with "Fail to mount root" error. I need your comments on the partitioning schme I used>
Code:

/dev/sda1     /boot           ext2
/dev/sda2/     swap
/dev/sda3  -- extended
/dev/sda5/    /usr            ext3
/dev/sda6     /var            ext2
/dev/sda7     /tmp           ext2
/dev/sda8     /                 ext3
/dev/sda9     /home        reiserfs


Before chrooting we mount the partitions into
Code:
/mnt/gentoo
and that's how I do it:
Code:
mount /dev/sda8 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot    etc.


So my confusion is about the so-called "root partition" -- is it /dev/sda3 or /dev/sda8 in this case?
What kind of fstab should I have with this partitioning scheme?
The fstab file lists something like "real_root" -- what is it in this case? /dev/sda8?

The problem is in my lack of the conceptual knowledge of partitioning. If we partition /dev/sda3
to accommodate /usr, /var, /home, logically it follows that /dev/sda3 is root,
so why do we need to create another partition for "/"?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Sep 27, 2012 9:11 pm    Post subject: Reply with quote

Sigma Kappa,

root here refers to /dev/sda3

You do not use real_root in /etc/fstab, thats a parameter on the kernel command line for use by the inotramfs.

root (hdx,y) is the way that grub identifies your partitions. It cannot use the kernel names at boot time as the kernel is not yet running.
The numbers x and y relate to the way that the BIOS sees your HDDs and partitions. BIOS and kernel HDD may not be the same.

root=/dev/sda8 or /dev/ram0 or whatever, tell the kernel where to find the root filesystem
The kernel cannot yet read the root filesystem (and /etc/fstab) as the root filesystem is not yet mounted.

The initramfs is only a temporary root filesystem intended to be used to do anything required to mount the real root filesystem.
root=/dev/ram0 tells the kernel to use /dev/ram0 as the root filesystem, which grub has populted by loading the initramfs into memory at the right place.
real_root=/dev/sda8 then tells the initramfs where to find the real root filesystem.

The problem with bootstrapping is that several circular dependencies must be broken to load the operating from disk, using a method stored on the same disk that you need the operating system loaded to be able to read. It all starts with the BIOS reading the MBR. Thats all the BIOS can do- read Logical Block 0 from the boot drive and jump to its start address.
_________________
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
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Wed Oct 03, 2012 5:27 pm    Post subject: Reply with quote

NeddySeagoon,

thank you for a pointer to initramfs, I've read its wiki and found out that since my root partition (/dev/sda8, that is) is a logical one,
I may need a package called sys-fa/lvm.

Now I'm starting to get it: first BIOS mounts /dev/sda1 and then looks inside grub.conf.
In grub.conf there is a string of the form "root (hdx,y)", that basically tells where "/" is.
Then the system (kernel or still BIOS?) mounts "/" and looks inside /etc/fstab to mount other partitions.
Is this correct? And if this is indeed so, then why does one need to write an entry
such as "/dev/sda8 / ..." to /etc/fstab?

So, is initramfs the only way one can mount a root partition that resides in a logical partition?
If not, how does one find out what values should be given to x and y in "(hdx,y)"?

--Thank you.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Oct 03, 2012 7:13 pm    Post subject: Reply with quote

Sigma Kappa,

Let me expand on my earlier answer. This is how a AMD/Intel based PC boots, using grub.

When the CPU is freed from reset, it is in 16 bit real mode and fetches its very first instruction from address 0xffff0, which is near the top of RAM.
The BIOS starts here. The BIOS does its thing, setting up the memory controllers, running th power on self test, setting up the hardware. When its done all that, it loads logical block zero from the boot drive into RAM. Some brain dead BIOSes expect to find an MSDOS partition table with one partition flagged bootable. IF its not found, they complain about No Operaing system Found.
If all is well, the BIOS jumps to the load address of LBA 0. (The master Boot Record).

The code in the MBR, normally grub stage1, contains a loader that makes BIOS calls to load grub stage 1.5 from the logical blocks following the MBR. When its done loading stage1.5, stage1 jumps to the start address of stage1.5.

Grub stage 1.5 can read exactly one filesystem type. Thats the filesystem where /boot is. The correct stage1.5 is selected when you install grub to the MBR.
Grun stage1.5 reads the /boot filesystem to find and load stage2. (look in /boot/grub).
Stage1.5 exits by jumping to stage2.

Stage2 reads grub.conf and presents you with the grub menu. It can load a splashimage and the kernel of your choice. The kernel is not yet loaded.
Once you make you choice, grub loads the kernel and optionally the initrd, from the filesystem indicated by root (hdx,y).
This is usually your /boot filesystem, but grub turns the root (hdx,y) into BIOS speak.

The kernel is loaded, the initrd, if any, is loaded and left at /dev/ram0 for the kernel to find, if you use root-/dev/ram0. The kernel command line is left in RAM for the kernel.

With the kernel and initrd loaded, stage2 jumps to to the kernel start address. Thats grub done. The kernel is in RAM, the initrd is in RAM and the kernel has control.
The kernel decompresses itself, does its own internal setup then looks at the command line to find out where its root filesystem is. Thats the root=/dev/sda8 in your case.

Provided everything needed to mount the root filesystem is build into the kernel, the kernel runs the script /sbin/init, which brings up the rest of the system. The init script starts other things to get you to the login prompt. If the kernel is missing something and you don't use an initrd to provide it, you will get a kernel panic message that ends unknown-block(x,y)
x and y are the major and minor numbers of the device the kernel tried to mount as root. They indicate what might be wrong.

The kernel does not need any help to mount root on a logical partition. I think you are confusing logical partition with logical volume when you mention lvm. The two are not related.
_________________
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
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Dec 30, 2012 12:58 am    Post subject: Reply with quote

How to resize a FAT partition?

The question may appear stupid, because everybody probably knows that parted can do it. However, this is no longer true with parted-3.0: Apparently the parted developers seem to think that development means removal of the main functionality of the program. Note that all other tools like gparted just use parted to do this task!

In parted-3.1 some first sanity seems to be restored: At least there is now formally a library which they claim can do a subset of the resize tasks, but no corresponding command is provided in parted and apparently also no other tool which uses this library.

So my question: If you have a system/rescue-disc with >=parted-3.0; how can you resize a DOS partition? Has Linux become such a regression that such a simple and previously solved task is factually no longer possible?
Back to top
View user's profile Send private message
anchnk
n00b
n00b


Joined: 14 Mar 2013
Posts: 1

PostPosted: Thu Mar 14, 2013 12:02 pm    Post subject: Advice about partition scheme Reply with quote

Hello,

Well i'm back to linux in order to dive into programming.
I remenber 10years ago when i spend nights installing gentoo and that was kind of a nightmare to support hardware at that period. Well.

Basically i wanna go back to linux to set up a dev station (mainly c, python, network programming, web dev etc etc).
This is gonna be mainly programming (reading documentation online) and stuff but i'll may have to work with some assets (kind of 500Mo data but not frequently so not a big deal).
I'm running a computer with two sata 300 drive 200GO.

The first one have dedicated 60Go on the primary partition (/dev/sda1) for Windows 7 OS.
Currently the other Space is used by my works data (but there's a lot of free space because it's mainly text).
So i might have more than 100Go Free space on that hard drive.

The second hard drive is like storage device for music, assets, huge windows program and stuff like that.
Have lot of free space on it too but it's more full.

So my current partition scheme is like that :

/dev/sda1 -> windows 7 os
/dev/sda2 -> work data
/dev/sdb1 -> windows sandbox + temp files (small partition)
/dev/sdb2 -> huge chuck of data

So i wanna setup a gentoo box to work my programming. But i'm not sure how to set up exactly the partition. Maybe i should go using LVM2 in case of bad guess of partitionning scheme.

Any advice ?

Excuse me if it's confusing i'm at work and could write something more easier to read & understand at home.

Thanks by advance and glad to be a future gentoo user again
Back to top
View user's profile Send private message
Xizlqk
n00b
n00b


Joined: 16 Oct 2013
Posts: 1

PostPosted: Wed Oct 16, 2013 8:36 pm    Post subject: Reply with quote

Hey. Sorry if this is the wrong place, but the partition help stickythread seems to be kind of dead. I've got an old G4 Powerbook that I'd like to try installing a still-supported OS on, so I have downloaded and burnt the minimal install CD for Gentoo. However, I would like to keep my old OS 10.4.11 install because I still like the feel. Problem is, I no longer have the install disks for OSX to partition my drive that way. Luckily, as I understandit, I can use
Code:
parted
to shrink my OSX partition without them.

The HD has a size of 93GB, of which 60.9 is free, and 40 of which I am willing to devote to Gentoo. While I will obviously be backing up all of my old files and the like, I would like to use parted right the first time and NOT mess my system up. I'm wondering what I would need to do to resize my OSX partition right. The handbook does not seem to be a lot of help on this point, as the parted command only seems to have an example for pegasos. GNU documentation claims the parted command has been removed! Anyway, I'm kind of lost. Any help on this would be appreciated.

Sincerely,

Xizlqk.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 16, 2013 9:20 pm    Post subject: Reply with quote

Yes, but if you post to it, it will no longer be dead.

Moved your post to the partitioning sticky. ;)


- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Nov 07, 2013 6:33 pm    Post subject: Reply with quote

which one is better parted or fdisk?

thanks.
Back to top
View user's profile Send private message
cfk
n00b
n00b


Joined: 24 Dec 2013
Posts: 2

PostPosted: Tue Dec 24, 2013 6:56 pm    Post subject: Cuggestion 4 Handbook ( GPT label related) + GRUB2 bug? Reply with quote

HIYA.
Didnt found anything about flag setting in handbook, when "GPT" label selected in "parted".

Somebody should add "set 1 bios_grub on" command, coz now parted "GPT" case in handbook incomplete\not working, if somebody choses GPT & knows nothing about it (like me =), when installing gentoo for 1st time.

BTW ive got some troubles with grub.
screenshots attached, i think imgs will tell you enough.

[img]http://s22.postimg.org/ljcl18ywd/parted_fstab.png[/img]

[img]http://s22.postimg.org/6yvi6f3xp/grub_inst_ok_probe_err.png[/img]

[img]http://s22.postimg.org/w8q9tiap9/booterr.png[/img]

PS i c, that there is strange error with grub2-probe that tells about "unknown filesystem", but idk how to handle it.

PPS yep, im using genkernel, so ext4 supported by kernel.

sry 4 bad english.
_________________
chaos is theory in action
Back to top
View user's profile Send private message
Albion
n00b
n00b


Joined: 07 Feb 2012
Posts: 31
Location: England

PostPosted: Tue May 27, 2014 2:26 pm    Post subject: Reply with quote

Hello all,

Earlier on today I posted a message about an installation problem I have where I asked for help. I think the problem arises from GPT partitioning errors... I've read the manual for my architecture, i7/AMD64 as well as relevant bits on the ia64 page and am a little confused.

I have a special EFI partition of 2MB followed by a 128MB /boot partition then an 80MB swap partition (my computer has 32GB RAM) and then the / partition takes up the rest of the 1TB disk. I've given the home partition the whole of my 3TB drive.

Please help.

Thanks in advance,

A.
Back to top
View user's profile Send private message
quantheory
n00b
n00b


Joined: 26 Oct 2012
Posts: 3

PostPosted: Sun Jul 20, 2014 9:33 pm    Post subject: Reply with quote

Is there a way to resize an ext4 filesystem and its partition in a way that changes the start point? Either to expand it toward the left/front, or shrink it toward the right/back? The only thing I've been able to think of is to make a copy of the entire filesystem, repartition the disk, and then put the filesystem in a new location. But that seems to need a lot of scratch space.
Back to top
View user's profile Send private message
LordHelmchen
n00b
n00b


Joined: 10 Apr 2004
Posts: 21

PostPosted: Mon Jun 15, 2015 10:13 am    Post subject: Reply with quote

Greetings!

I'm getting a new shiny Lapto in a few days, and it dawns on me that I've been out of the loop of current developments... Last time I had to redo the whole boot-setup was before the days of SSD,UEFI and Secure Boot, so I could use some pointers on what to avoid.
There will be 120G ssd,500G hdd (and probably another 250G hdd, if I can fit it into the case). I'll have Win8 (perhaps 10) for gaming purposes and gentoo for general usefulness.
Since gentoo usually feels fast enough and Windows can use every boost it can get, the majority of the SSD should probably go to Windows and a few exceptionally ressource hungy games.

1) With all those new-fangled boot techs, what needs to be prepared before installing Windows to prevent later complications?
In the old days, I would have put a tiny sda1 /boot before sda2 Win. Is that still needed or even useful?

2) Which gentoo partitions would profit most from residing on ssd, while minimizing wear&tear ? How much room should be kept for non-windows ?

a first draft would be along the lines of
ssda1 128M /boot
ssda2 90G Win
ssda3 29G /

hdda1 250G Win/games
hdda2 8G swap (16 G to allow hibernate even after potential RAM upgrade?)
hdda3 100G /home/data (music/videos/etc , ntfs via fuse to be shared between OSs)
hdda4 --extended
hdda5 4G /var
hdda6 50G /usr
hdda7 50G /home
hdda8 12G /tmp

alternatively, hdda5 to 8 could go to hddb, but those things are easily changed later with a bootcd and dd :-)
Back to top
View user's profile Send private message
Dodec
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2012
Posts: 115

PostPosted: Sun Jun 21, 2015 1:00 am    Post subject: Reply with quote

Wow, the first post on this page is from 2012...I guess it's you and me bringing back the partitioning sticky, LordHelmchen. :) Although I'm not actually sure if this is the right place to post this...but it's the closest place to being relevant that I could figure out, considering that Googling it only got me 7 results, none of which were relevant.

As anyone familiar with my most recent topic, the hopefully aptly named "How to dual boot and not break anything", knows, I'm trying to dual boot my Toshiba Satellite C55D-B5219 that already runs Windows 8 with Gentoo. I've gotten most of the procedure figured out by now (big thanks to everyone who's been helping me out thus far), but I noticed something weird when I was shrinking my Windows partitions. My understanding is that hard disks only support 4 primary partitions, with the possibility to extend that with extended/logical partitions. However, all the example dual boot partition tables I've been seeing only have 2 Windows partitions, one of which is the factory restore and the other is Windows itself. However, when I look at my existing Windows partitions after shrinkage, I see this instead. (The 395GB of unallocated space is where Gentoo is going to go.) I have no idea why I have two recovery partitions. Anyone have any clue why this would be set up this way, and how I can get around this when I create the partitions for Gentoo as per Fitzcarraldo's procedure? I still want to keep the ability to restore Windows if something goes horribly wrong (I'll refrain from making a self-deprecating statement on the likelihood of that happening so as not to jinx myself), and I really don't want to mess with that EFI system partition and break everything. Any ideas?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Jun 21, 2015 1:55 am    Post subject: Reply with quote

you should have a gpt not an msdos disklabel based on what you have said so far. https://support.microsoft.com/en-us/kb/302873 is gpt explained by the company that made the OS that partitioned your disk. Here I see:
Quote:
fdisk -l
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8E96CF21-65E3-478E-87CA-A3BBF5F7AA57

Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Windows recovery environment
/dev/sda2 616448 821247 204800 100M EFI System
/dev/sda3 821248 1083391 262144 128M Microsoft reserved
/dev/sda4 1083392 499195903 498112512 237.5G Microsoft basic data
/dev/sda5 499195904 500117503 921600 450M Windows recovery environment
/dev/sda2 contains the ESP created by windows8, recreated by windows 8.1, with rEfind added to it. When I first installed windows8, I did not have /dev/sda5, the second windows recovery environment. I made a /dev/sda5 gentoo and a /dev/sda6 swap and installed gentoo in /dev/sda5. I usually, and perversely, forego having a separate boot partition. When windows8.1 showed up, I decided to move gentoo and swap to another disk reclaim the disk space on /dev/sda4 for windows and "upgrade" to windows 8.1. I create all my kernels with make && make modules_install && make install. they are named vmlinuz, they are configured as efi-stub kernels with a built in command line that overrides any external command line. These kernels function as their own bootloader. With rEFInd the kernels do not need to be recopied to the ESP or renamed. rEFInd picks them up from the vmlinuz name and as boot manager adds them to the available boot options. The only extra management is removing old kernels from /boot.
Creating a second ESP is frequently a bad idea. Many implementations of uefi get confused.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Jun 21, 2015 1:56 am    Post subject: Reply with quote

you should have a gpt not an msdos disklabel based on what you have said so far. https://support.microsoft.com/en-us/kb/302873 is gpt explained by the company that made the OS that partitioned your disk. Here I see:
Quote:
fdisk -l
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8E96CF21-65E3-478E-87CA-A3BBF5F7AA57

Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Windows recovery environment
/dev/sda2 616448 821247 204800 100M EFI System
/dev/sda3 821248 1083391 262144 128M Microsoft reserved
/dev/sda4 1083392 499195903 498112512 237.5G Microsoft basic data
/dev/sda5 499195904 500117503 921600 450M Windows recovery environment
/dev/sda2 contains the ESP created by windows8, recreated by windows 8.1, with rEfind added to it. When I first installed windows8, I did not have /dev/sda5, the second windows recovery environment. I made a /dev/sda5 gentoo and a /dev/sda6 swap and installed gentoo in /dev/sda5. I usually, and perversely, forego having a separate boot partition. When windows8.1 showed up, I decided to move gentoo and swap to another disk reclaim the disk space on /dev/sda4 for windows and "upgrade" to windows 8.1. I create all my kernels with make && make modules_install && make install. they are named vmlinuz, they are configured as efi-stub kernels with a built in command line that overrides any external command line. These kernels function as their own bootloader. With rEFInd the kernels do not need to be recopied to the ESP or renamed. rEFInd picks them up from the vmlinuz name and as boot manager adds them to the available boot options. The only extra management is removing old kernels from /boot.
Creating a second ESP is frequently a bad idea. Many implementations of uefi get confused.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Dodec
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2012
Posts: 115

PostPosted: Sun Jun 21, 2015 2:11 am    Post subject: Reply with quote

Oh, that makes sense. I'm not exactly sure why I thought I would have MBR if I'm booting with UEFI, which I am. :oops: So essentially, what you're saying is that I don't need to even touch the existing Windows partitions because there's no problem with the number of partitions? And definitely do not install grub to the ESP if I'm using EasyBCD, because it'll break Windows?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Jun 21, 2015 2:17 pm    Post subject: Reply with quote

I don't use grub2 or easybcd on my uefi dual boots so had best not comment on them. At the time I started using uefi dual boot easybcd was not efi compatible.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 21, 2015 2:28 pm    Post subject: Reply with quote

quantheory,

If you use partitions, thats exactly what you need to do. If you make a habit of resizing partitions, use logical Volumse and logical volume manager.

You can shrink extX and the partition by removing space from tha end.
First, make the filesystem smaller with resize2fs
Next shrink the partition. This step is scary. Delete the existing partition
Recreate the new partition with an identical start point but smaller.

Warnings:
1. if its an MSDOS logical partition, several partitions may get renumbered in the process.
2. If the partition is smaller that the filesystem, you will be unable to mount the filesystem as its too big for the partition. (Your data will not be harmed - yet)
3. Don't allocate any freed space until you have checked that mount works or you will overwrite the end of the filesystem you tried to shrink.

Continued in Get help on partitioning here [Part 3]
_________________
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:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 28, 29, 30
Page 30 of 30

 
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