Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get help on partitioning here [Part 3]
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
UechyLibre
n00b
n00b


Joined: 05 Dec 2016
Posts: 7

PostPosted: Wed Dec 14, 2016 5:56 pm    Post subject: Reply with quote

NeddySeagoon wrote:

Lasty, kernels can eat up a lot of space. They accumulate in /usr/src. Each kernel is about 800Mb.
Remove excess kernels, first with emerge, so portage knows, then remove the remainder.
Take care not to remove any useful kernel .config files.


Thanks for the help and pointing me the app and the manual so I can learn :D

Kernel (linux-4.4.26-gentoo) its eating 6.6GB :?

du -d 1 -h /
Code:

8,2M   ./bin
3,1M   ./lib32
du: no se puede acceder a './proc/4506/task/4506/fd/3': No existe el fichero o el directorio
du: no se puede acceder a './proc/4506/task/4506/fdinfo/3': No existe el fichero o el directorio
du: no se puede acceder a './proc/4506/fd/4': No existe el fichero o el directorio
du: no se puede acceder a './proc/4506/fdinfo/4': No existe el fichero o el directorio
0   ./proc
36K   ./tmp
101M   ./opt
4,0K   ./mnt
4,0K   ./grub
1,4G   ./lib64
132K   ./root
84K   ./dev
12M   ./etc
15G   ./usr
220M   ./var
4,0K   ./media
8,9M   ./sbin
4,6G   ./home
16K   ./lost+found
4,0K   ./data
4,0K   ./gome
4,0K   ./boot
0   ./sys
772K   ./run
21G   .

du -d 1 -h /usr

Code:

 
133M   /usr/bin
12M   /usr/lib32
78M   /usr/libexec
1,3G   /usr/lib64
267M   /usr/include
2,8G   /usr/share
6,6G   /usr/src
11M   /usr/sbin
16K   /usr/local
3,3G   /usr/portage
14M   /usr/x86_64-pc-linux-gnu
15G   /usr
Gentoo-Libre / # du -d 1 -h /usr/src/
6,6G   /usr/src/linux-4.4.26-gentoo
6,6G   /usr/src/


du -d 1 -h /usr/src/linux-4.4.26-gentoo/
Code:


496K   /usr/src/linux-4.4.26-gentoo/samples
325M   /usr/src/linux-4.4.26-gentoo/arch
697M   /usr/src/linux-4.4.26-gentoo/fs
5,3M   /usr/src/linux-4.4.26-gentoo/init
259M   /usr/src/linux-4.4.26-gentoo/sound
8,0K   /usr/src/linux-4.4.26-gentoo/distro
36M   /usr/src/linux-4.4.26-gentoo/lib
6,8M   /usr/src/linux-4.4.26-gentoo/.tmp_versions
46M   /usr/src/linux-4.4.26-gentoo/security
40M   /usr/src/linux-4.4.26-gentoo/include
51M   /usr/src/linux-4.4.26-gentoo/crypto
41M   /usr/src/linux-4.4.26-gentoo/mm
6,0M   /usr/src/linux-4.4.26-gentoo/usr
8,6M   /usr/src/linux-4.4.26-gentoo/firmware
312K   /usr/src/linux-4.4.26-gentoo/certs
3,0M   /usr/src/linux-4.4.26-gentoo/virt
904M   /usr/src/linux-4.4.26-gentoo/net
27M   /usr/src/linux-4.4.26-gentoo/block
3,4G   /usr/src/linux-4.4.26-gentoo/drivers
5,4M   /usr/src/linux-4.4.26-gentoo/ipc
12M   /usr/src/linux-4.4.26-gentoo/tools
33M   /usr/src/linux-4.4.26-gentoo/Documentation
133M   /usr/src/linux-4.4.26-gentoo/kernel
4,5M   /usr/src/linux-4.4.26-gentoo/scripts
6,6G   /usr/src/linux-4.4.26-gentoo/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Dec 14, 2016 7:57 pm    Post subject: Reply with quote

UechyLibre,

Code:
3,4G   /usr/src/linux-4.4.26-gentoo/drivers
6,6G   /usr/src/linux-4.4.26-gentoo/



That's huge. I've never seen a kernel tree that big but I do configure my own kernels.
Run
Code:
uname -a
just te be sure that you are actually using that kernel.
I get
Code:
/usr/src $ du -hd1
1.1G   ./linux-4.7.0-gentoo
1.2G   ./linux-4.8.1-gentoo
1.2G   ./linux-4.8.4-gentoo
753M   ./linux-4.8.6-gentoo
753M   ./linux-4.8.10-gentoo
347M   ./linux-4.6.0-gentoo
5.2G   .


My kernels are about 1.2G after they are built, 770Mb as installed by portage and 355M after they have been removed by portage.

For comparison, my running kernel shows
Code:
 /usr/src/linux-4.8.4-gentoo $ du -hd1
3.4M   ./security
36K   ./certs
6.1M   ./firmware
87M   ./net
964K   ./init
9.6M   ./mm
14M   ./tools
36M   ./Documentation
521M   ./drivers
67M   ./fs
700K   ./samples
190M   ./arch
88K   ./usr
7.8M   ./crypto
12M   ./lib
8.0K   ./distro
49M   ./include
44M   ./sound
4.2M   ./block
828K   ./ipc
1.1M   ./.tmp_versions
976K   ./virt
4.9M   ./scripts
21M   ./kernel
1.2G   .


You can reclaim some of the space safely by cleaning the build files out.
If you do this, you will need to rebuild the entire kernel if you want to change anything

Code:
cd /usr/src/linux-4.4.26-gentoo/
make clean
This removes all the binary files that were created by make. Its reversible.

To be a bit more agressive, the only thing you need to save is the .config file. Thats
Code:
/usr/src/linux-4.4.26-gentoo/.config

Copy it somewhere safe and rename it to config_linux-4.4.26-gentoo, so you can put it back if you need to.
Now you can delete all of /usr/src/linux-4.4.26-gentoo.

Restoring it is a bit more complex. First, you need to emerge it. It should be in your distfiles, so there will be nothing to download.
Then you restore the .config file.
Lastly, you build the kernel again.
It will need 6.6G of space again, unless you cut out some of the junk.

What is taking up all that space in /usr/src/linux-4.4.26-gentoo/drivers ?
_________________
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
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 4

PostPosted: Sat May 06, 2017 3:57 pm    Post subject: Reply with quote

Hi all,

I am new to Gentoo linux.
I am trying to install it on my old laptop Fujitsu-Siemens Amilo Pi 1505(core 2 duo 1.6, 2.5 GB RAM, 128GB disk) and I am stuck at Installation/Disks part.

It seems to me, that I need to use MBR label, because it is old computer, but I am not sure.
So I have created 4 partitions, as Handbook says and there is a sentence: "Mark the partition for UEFI purposes:"
and then: "Using UEFI with MBR partition layout is discouraged. If an UEFI capable system is used, please use GPT layout."

So, should I do it, or not? If not, should I make the partition? Mark it as what? Or maybe I can use GPT label? Can you help me?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1493

PostPosted: Sat May 06, 2017 5:56 pm    Post subject: Reply with quote

Use mbr and don't mark it it for uefi.
They should be marked as linux filesystem, lvm, or raid volume, depending on the way you're going to use them. It's usually a good idea to be sincere with your tools. If you don't specify it, they should default to linux filesystem and you can easily change it later if you want another layer between your files and the hard disk.
AFAIR Gentoo manual has several sections for making your system bootable. Follow either of those that has you install any bootloader. I personally like grub-legacy, though other options are available.
Back to top
View user's profile Send private message
Sergix8
n00b
n00b


Joined: 10 Aug 2017
Posts: 1

PostPosted: Thu Aug 10, 2017 6:29 pm    Post subject: W7+gentoo Reply with quote

Hi, i'm new, i would like to know how i can see the partition table in GENTOO, and also each time i put out the disk of GENTOO it seems it desinstall, so i can only use my W7 partition.

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


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

PostPosted: Thu Aug 10, 2017 7:04 pm    Post subject: Reply with quote

Sergix8,

Welcome to Gentoo.
Code:
fdisk -l /dev/sda
will show the partition table on the first HDD.

When you install gentoo and stop in the middle, all your work is still on the hard drive.
However, when you come back to do some more, you need to do the mount commands and the chroot steps.
Then you are back into your install like you had never left.

It is possible to try to install Gentoo into RAM if you don't mount a partition for gentoo to install onto.
Thats not an error. With the large RAM on todays systems, you might even succeed installing into RAM.
It would vanish at power off though.

After the mount steps and before the chroot command,
Code:
df
should show your gentoo partition(s) at /mnt/gentoo/...
_________________
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
Sabongayam8
n00b
n00b


Joined: 15 Oct 2017
Posts: 7

PostPosted: Thu Oct 19, 2017 9:50 am    Post subject: Gentoo Install EFI Multiboot setup Reply with quote

8) Good day all... BACK to Gentoo... I did an install some years ago and quite honestly liked it. I have since played around with 'based on Gentoo" installs and found all the problems this forum speaks of.

Basically you did not set it up and even if you're familiar with Gentoo you end up "trying" to undo the setup of someone else to make it work or do what you wish it to do. It is ultimately easier to take the time to just do it yourself and have the setup you want.

So here I am. I had use Calculate for a bit. It always breaks if you try to use it or convert it to Gentoo. The latest version is so LOCKED into their Calculate setup with config files not quite in the usual place that I took one look and realized it would be way more work trying to UNDO their settings than just install.

I jumped over to Sabayon and their current installer is just the weirdest thing I've seen in my life of installing Linux distros. I can not make it choose my preset partitions and it quite seems to wish to do it's own thing. Plus I suspect I'll still have similar issues as Calculate though not as bad.

Somewhere else in the forum when I did a search I came across the suggestion to do your install in stages. A good idea not considered. Because I am a bit pressed for time and my 1st Gentoo Install which broke because I don't understand the config file changes that take place on updates took me 6 hours.

This time I hope to gain a better understanding of that.

My approach is to read the maual and I have, and I am... reading it again. :) before I start because I really have no time to fix problems.

I am installing on two different units.

Unit 1: Intel NUC6CAYH
Dual core Celerons
HDMI out
VGA out
4 USB ports and I can get the actual specs but it's just off the top of my head.

Obviously newer units. My confusion, sorry if it's clearer to others but these are my 1st EFI units because my previous but still working laptop is so old it's BIOS. :lol:

In reading the installation guide...

When I get to the part where we mount /dev/sdx /mnt/gentoo

that's pretty understandable and then we come to the instructions after unpacking the tar

It asks us to mount the "boot" partiton just before or after that when building the kernel

I put this question here under partition questions because my partition setup does not have a specific 'boot' partition.

where should I direct this?

having 2 Binary Distros here 'boot' is typically here in the:
/boot/

Basically I want to keep this arrangement at the moment. The Little Nuc is what I use daily so I don't want to mess around with it too much.

Even with Binary Distros I am a bit pressed for time so I haven't any intention of redoing my partitions at the moment.

The other Device is a NUC6i7KYK but that'll be after I learn on this one and I've found already that all but one project I used on it would not install on the NUC6CAYH.

Anyway, if someone might be able to give me a tip about this "boot" issue I would much appreciate it.

I don't usually start installs etc until I'm sure I've got the answers or problems worked out.

Thanks...

My partition scheme is pretty basic.
sda1 EFIboot fat32
sda2 linux Ext 4
sda3 linux btrfs
sda4 linux (plan to put gentoo here)
sda5
sda6 swap
sda7

I haven't gotten around to installing it but planning to try something called refind as a manager to the installs.

As a last parting note of info, I personally have no need of systemd in my usage and thefrore don't plan on installing it so a basic Gentoo install for a desktop system.

Just wondering what to do about the 'boot' when I do the kernel configuration. :oops:
Back to top
View user's profile Send private message
pensador_13
n00b
n00b


Joined: 15 Nov 2017
Posts: 7
Location: Portugal

PostPosted: Sat Nov 18, 2017 4:57 pm    Post subject: Reply with quote

Hello :)

I intend to use only Gentoo on my laptop.

The BIOS of my laptop has two boot modes: UEFI and Legacy.
UEFI has secure boot enabled and I couldn't disable it, it seems that if a computer includes Windows 10, manufacturers can choose to enable Secure Boot and not give users a way to turn it off :(

Then I switched to Legacy and I was able to boot the USB stick with the minimal Gentoo install.
I read the Preparing the disks section of the AMD64 Handbook, but the following question remain unanswered:
Is it possible to configure the partitioning in a way that will run with UEFI mode and Security Boot enabled?

Thanks in advance,
Luís Carneiro
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