[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/fstab question (problem)?



On 4/22/23 08:24, David Wright wrote:
On Fri 21 Apr 2023 at 15:46:30 (-0700), David Christensen wrote:
On 4/21/23 08:12, Max Nikulin wrote:
On 20/04/2023 04:03, David Christensen wrote:
* What if root attempts to remove everything under /etc, in
anticipation of mounting a file system at /etc, when one or
more programs have one or more open temporary files?

With one exception, I've not seen root (whichever process that
refers to) doing anything like that in anticipation of mounting
a filesystem, so I wondered where that realisation came from.
The exception (which I haven't actually observed) is run-init
tearing down the initramfs before the true root is mounted.


You're right; what I wrote makes no sense -- because it is wrong:

On 4/21/23 08:12, Max Nikulin wrote:
> David, you were wrote /etc instead of /tmp in several messages

On 4/21/23 15:46, David Christensen wrote:
> I apologize for the errors.  :-(


<snip>

"Back in the day", people running Linux had computers with limited amounts of storage and memory. I imagine an initial ramdisk seemed like an good trade-off/ work-around at that time.


But today, this is my Linux daily driver:

2023-04-22 16:25:50 root@taz ~
# cat /etc/debian_version ; uname -a
11.6
Linux taz 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

2023-04-22 17:52:29 root@taz ~
# lsmem
RANGE                                 SIZE  STATE REMOVABLE  BLOCK
0x0000000000000000-0x000000007fffffff   2G online       yes   0-15
0x0000000100000000-0x000000087fffffff  30G online       yes 32-271

Memory block size:       128M
Total online memory:      32G
Total offline memory:      0B

2023-04-22 18:40:09 root@taz ~
# df /boot
Filesystem     1M-blocks  Used Available Use% Mounted on
/dev/sda2           921M  114M      744M  14% /boot

2023-04-22 16:26:05 root@taz ~
# ls -l /boot/initrd.img-5.10.0-21-amd64  /boot/vmlinuz-5.10.0-21-amd64
-rw-r--r-- 1 root root 47837534 Mar 18 19:23 /boot/initrd.img-5.10.0-21-amd64
-rw-r--r-- 1 root root  7019136 Jan 21 06:35 /boot/vmlinuz-5.10.0-21-amd64


The Linux kernel is ~7 MB and initrd.img is ~48 MB. My daily driver is complete overkill.


Even my 2007 laptop has 2 GB of memory an a 1 GB boot partition/ filesystem. Still overkill.


I would gladly accept a 48 MB vmlinuz to be rid of initrd.img and its complexities.


The resource hogs today are the apps, not the OS.  Give me a KISS OS.


David


Reply to: