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: 38837
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: 1459

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: 38837
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
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