View previous topic :: View next topic |
Author |
Message |
reikdas Apprentice
Joined: 27 Nov 2018 Posts: 238
|
Posted: Wed Dec 26, 2018 12:50 pm Post subject: [Solved]Extend partition |
|
|
Here are how my partitions are (in sequence) -
/dev/sda1 -> EFI system partition. Mount - /boot
/dev/sda2 -> Some Windows partition
/dev/sda3 -> Windows storage
/dev/sda4 -> Windows recovery
/dev/sda5 -> Windows storage
/dev/sda7 -> Linux swap
/dev/sda8 -> Gentoo Mount - /
/dev/sda6 -> Windows BIOS partition
Note how the two Linux partitions are between two Windows partitions.
I am not sure what /dev/sda2 and /dev/sda6 are for. (Maybe /dev/sda2 is the Windows installation) But I would still like to keep them.
I inserted a new SSD.
/dev/nvmeOn1p1 -> Microsoft Reserved partition (Not sure what this is)
/dev/nvme0n1p2 -> Empty space
Is there any way for me to use part of my new SSD storage as an extension of /dev/sda8 and a part of it for my Windows installation? _________________ [19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer
Last edited by reikdas on Thu Dec 27, 2018 4:08 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Wed Dec 26, 2018 1:24 pm Post subject: |
|
|
reikdas,
Your partitions need not be in partition number order physically on the drive. That's one to keep under you hat for later.
Your on new SSD Code: | /dev/nvmeOn1p1 -> Microsoft Reserved partition | is a fake. The primary GPT partition table is here. Its not yours.
/dev/nvme0n1p2 is all the usable space on the drive. You can delete this and divide the space into several partitions.
Windows will see its share(s) as other drive letters.
In linux you add them to the filesystem tree with entries in /etc/fstab, after you have made filesystems.
If your existing /dev/sda is not an SSD, you should move windows and Gentoo to the SSD and use the old drive for user data and portages files.
That's /home, /usr/portage/distfiles and /usr/portage/packages.
Its good to put /var/tmp/portage into RAM too. It won't be measurably faster but it will save writes that will never be read. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
reikdas Apprentice
Joined: 27 Nov 2018 Posts: 238
|
Posted: Thu Dec 27, 2018 4:07 am Post subject: |
|
|
NeddySeagoon wrote: | If your existing /dev/sda is not an SSD, you should move windows and Gentoo to the SSD and use the old drive for user data and portages files.
That's /home, /usr/portage/distfiles and /usr/portage/packages. |
/dev/sda is also an SSD. But the new SSD is NVMe so it is faster than the old SSD.
I did not want a separate /home folder and I remember reading that it is good to keep the Windows EFI partition and the Linux EFI partition separately because of Windows update conflicts, did not want a separate /home and because of the dependency conflicts of switching from openrc to systemd(https://forums.gentoo.org/viewtopic-t-1090986-highlight-.html) I deleted my Gentoo installation and installed it as a contiguous partition on my new SSD.
Maybe I should not have done this because installation is hard xD - https://forums.gentoo.org/viewtopic-t-1091042-highlight-.html .
NeddySeagoon wrote: | Its good to put /var/tmp/portage into RAM too. It won't be measurably faster but it will save writes that will never be read. |
I have 16GB of RAM. How much space should I allocate to tmpfs? _________________ [19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Thu Dec 27, 2018 12:53 pm Post subject: |
|
|
reikdas,
Most of the time the default 8G allocated to /dev/shm will be plenty.
Be aware that the /dev/shm size setting is a maximum value but if its not used, the space is available for other things.
I only run into problems when failed emerges clutter up the space or a couple of big packages emerge together.
Then, it can be resized on the fly.
Its possible for tmpfs to use swap but thats slow, so don't let that happen. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
reikdas Apprentice
Joined: 27 Nov 2018 Posts: 238
|
Posted: Fri Dec 28, 2018 10:38 am Post subject: |
|
|
Jaglover wrote: | You may want to activate this option.
Code: | EMERGE_DEFAULT_OPTS="--fail-clean=y" |
|
In my make.conf right? _________________ [19:18] <@NeddySeagoon> Gentoo has an installer. Just like other distros. Go to the bathroom, look in the mirror. You will see the Gentoo installer |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Dec 28, 2018 3:11 pm Post subject: |
|
|
man make.conf wrote: | fail-clean
Clean up temporary files after a build failure. This is particularly useful if you
have PORTAGE_TMPDIR on tmpfs. If this feature is enabled, you probably also want to
enable PORTAGE_LOGDIR in order to save the build log. Both the ebuild(1) command and
the noclean feature cause the fail-clean feature to be automatically disabled.
|
You may want also to consult Gentoo make.conf man page and Gentoo Wiki. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
|