mfaridi said:in section 1.7 when I type
I see error about /var is not root file system , so it can not unmount itCode:umount /NEWROOT/var
I see this error about /usr
when I want umount /NEWROOT , Isee error about /NEWROOT is busy
mount
mount
/var
/usr
umount /var && unmount /usr && unmount /NEWROOT && reboot
caesius said:(...) output ofshows that /NEWROOT/*** isn't mounted anywhereCode:mount
fixit# [color="#0000ff"]mkdir /NEWROOT[/color]
fixit# [color="#0000ff"]mount /dev/label/rootfs /NEWROOT[/color]
fixit# [color="#0000ff"]zfs set mountpoint=/NEWROOT/usr basefs/usr[/color]
fixit# [color="#0000ff"]zfs set mountpoint=/NEWROOT/var basefs/var[/color]
#point #device
/NEWROOT ad0s1a
/NEWROOT/var basefs/var
/NEWROOT/usr basefs/usr
fixit# [color="#0000ff"]zfs set mountpoint=/usr basefs/usr[/color]
fixit# [color="#0000ff"]zfs set mountpoint=/var basefs/var[/color]
killasmurf86 said:root itself [if configured properly] takes very little space.
I have been using 512MB on root for a long time, when I was using GPT, it's enough space to install new kernel
current kernel takes less then 150MB
df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad10s1a 484M 437M 8.7M 98% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad10s1d 989M 14M 897M 1% /tmp
/dev/ad10s1f 137G 95G 31G 75% /usr
/dev/ad10s1e 1.9G 1.3G 458M 75% /var
37M ./kernel
37M ./kernel.old
DutchDaemon said:[cmd=]cd / && du -h -d 1[/cmd]
Code:37M ./kernel 37M ./kernel.old
There is really no need for kernel directories to be bigger. Don't you have a lot of kernel.old directories lying around, all with huge debugging symbol files in there too?
killasmurf86 said:Is that kernel for server?
I bet you have tuned make.conf not to build many kernel modules. Am I right? Build only stuff that you really need
bsd# [color="Blue"]ls /boot/kernel | wc -l[/color]
610
bsd# [color="Blue"]du -sh /boot/kernel[/color]
41M kernel
# rm /boot/kernel/*.symbols
vermaden said:Stock 8.0-RELEASE i386 GENERIC kernel here:
Code:bsd# [color="Blue"]ls /boot/kernel | wc -l[/color] 610 bsd# [color="Blue"]du -sh /boot/kernel[/color] 41M kernel
You just need to remove the debuging symbols to save about 80-90MB:
# rm /boot/kernel/*.symbols
rm /boot/kernel/*.symbols
/dev/ad10s1a 484M 268M 177M 60% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad10s1d 989M 14M 897M 1% /tmp
/dev/ad10s1f 137G 98G 28G 78% /usr
/dev/ad10s1e 1.9G 1.3G 462M 75% /var
killasmurf86 said:Is that kernel for server?
I bet you have tuned make.conf not to build many kernel modules. Am I right? Build only stuff that you really need
oliverh said:That said, nice to see such a good tutorial. Thx Vermaden
mfaridi said:root use 268M
bsd# [color="Blue"]du -m -x -d 1 / | sort -n[/color]
0 /proc
1 /.snap
1 /dev
1 /libexec
1 /mnt
1 /root
1 /tmp
1 /usr
1 /var
2 /bin
2 /etc
5 /rescue
6 /sbin
7 /lib
44 /boot
64 /
bsd# [color="Blue"]du -sh /boot[/color]
44M /boot
bsd# [color="Blue"]df -h /[/color]
Filesystem Size Used Avail Capacity Mounted on
/dev/label/rootfs 496M 63M 393M 14% /
vermaden said:Thanks mate
One of the reasons to create own KERNCONF can be power saving (on laptops mostly). Move all hardware you would like to disable temporary to save power (with [cmd=]hw.pci.do_power_nodriver=3[/Cmd] in /boot/loader.conf). This way devices without attached driver would not consume power.
Code:bsd# [color="Blue"]du -m -x -d 1 / | sort -n[/color] 0 /proc 1 /.snap 1 /dev 1 /libexec 1 /mnt 1 /root 1 /tmp 1 /usr 1 /var 2 /bin 2 /etc 5 /rescue 6 /sbin 7 /lib 44 /boot 64 / bssd# [color="Blue"]du -sh /boot[/color] 44M /boot bsd# [color="Blue"]df -h /[/color] Filesystem Size Used Avail Capacity Mounted on /dev/label/rootfs 496M 63M 393M 14% /
The / filesystem does not only contain kernel ...
Check [Cmd=]du -m -x -d 1 / | sort -n[/Cmd] command on your box.
du -m -x -d 1 / | sort -n
/ # du -m -x -d 1 / | sort -n
1 /.snap
1 /cdrom
1 /dev
1 /dist
1 /libexec
1 /media
1 /mnt
1 /proc
1 /tmp
1 /usr
1 /var
2 /bin
2 /etc
5 /rescue
5 /sbin
6 /root
7 /lib
245 /boot
269 /
du -sh /boot
245M /boot
# du -m -x -d 1 /boot | sort -n
DutchDaemon said:Run the same command from within /boot and see what's eating up this space.
# du -m -x -d 1 /boot | sort -n
du -m -x -d 1 /boot | sort -n
/ # du -m -x -d 1 /boot | sort -n
1 /boot/defaults
1 /boot/firmware
1 /boot/modules
1 /boot/zfs
38 /boot/kernel
207 /boot/kernel.old
245 /boot
/
mfaridi said:and run this command
and outputCode:du -sh /boot
Code:245M /boot
# du -m -x -d 1 /boot | sort -n