Deutsch   English   Français   Italiano  
<67df3057@news.ausics.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Message-ID: <67df3057@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: F2FS On USB Sticks?
Newsgroups: comp.os.linux.misc
References: <vrikv7$icpd$1@dont-email.me> <sm0v7s2spt5.fsf@lakka.kapsi.fi> <lYednSXFeZiM00D6nZ2dnZfqnPudnZ2d@giganews.com> <g520blxb3v.ln2@Telcontar.valinor> <vrkdlc$257qv$3@dont-email.me> <m46f8sFcqfqU2@mid.individual.net> <67de157b@news.ausics.net> <vrmefg$1sbl$3@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 23 Mar 2025 07:49:11 +1000
Organization: Ausics - https://newsgroups.ausics.net
Lines: 43
X-Complaints: abuse@ausics.net
Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail
Bytes: 2608

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 22/03/2025 01:42, Computer Nerd Kev wrote:
>> rbowman <bowman@montana.com> wrote:
>>> On Fri, 21 Mar 2025 19:11:40 +0000, The Natural Philosopher wrote:
>>>> My other usage is Raspberry Pi SD cards which are two partitions in IIRC
>>>> VFAT and EXT4
>>>
>>> That may be inherited from Debian.  vfat is used for /boot/firmware or /
>>> boot/efi for UEFI compatibility.
>> 
>> Not from Debian, but for the same reason that like UEFI, the RPi
>> firmware only has drivers for FAT (FAT32, or FAT16 works too,
>> I'm not sure if any new ones support exFAT).
>> 
>> To run in a tmpfs, I set up Linux on a FAT partition on an SD
>> card. No need for a separate EXT* partition if you're not mounting
>> any as / anyway.
>> 
> Then what are you mounting as / ?

The tmpfs.

> I don't understand Linux needs a root filesystem that accepts linux 
> permissions, VFAT does not

Yes, but it can hold a file containing the filesystem data which is
unpacked into RAM during start-up. In fact this is common behaviour
with initrd unpacked to RAM during kernel initialisation and
mounted as /, after which the kernel can set up the partition it
wants to use as / and chroot to that. That second partition can be
an ext4 filesystem such as RPi OS uses, or it can be a tmpfs or
ramdisk with contents unpacked from an archive on the FAT FS into
RAM by the init script in the initrd. Or / can even just stay in
the initrd forever (which is what happens in most distros if the
latter steps fail).

So a Linux file system is really optional. The only FS you _need_
for booting on RPi or UEFI is FAT, because that's what the firmware
can load the Linux kernel from.

-- 
__          __
#_ < |\| |< _#