Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #242154

Re: set the number of inodes during FS creation via pressed

From David <bouncingcats@gmail.com>
Newsgroups linux.debian.user
Subject Re: set the number of inodes during FS creation via pressed
Date 2021-11-13 23:50 +0100
Message-ID <Dja0p-7MI-1@gated-at.bofh.it> (permalink)
References <DiPfk-3FU-7@gated-at.bofh.it> <DiPfk-3FU-5@gated-at.bofh.it> <Dj4R4-4P7-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, 14 Nov 2021 at 04:10, David Wright <deblis@lionunicorn.co.uk> wrote:
> On Sat 13 Nov 2021 at 00:31:42 (+0000), phoebus phoebus wrote:

> > Do you know if it possible to set the number of inodes  to create in
> > the filesystem during the installalation with the pressed file?

> > If i start from this example for the filesystem /var/log, how to set
> > numbers of inodes inside it ?

> >                 500 550 1024 ext4 \            lv_name{ varlog } \
> >             method{ lvm } format{ } \
> >             use_filesystem{ } filesystem{ ext4 } \
> >             label{ varlog } \
> >             mountpoint{ /var/log } \
> >                         options/nodev{ nodev } \
> >                         options/nosuid{ nosuid } \
> >                         options/noexec{ noexec } \
> >             options/relatime{ relatime } \
> >             $lvmok{ } \
> >             . \

> > Hope to do it as mkfs do it: mkfs -t ext4 -N iNumberOfINodes /dev/XdY ?

> I don't know about the actual number, but I think there's a crude
> switch under   use_filesystem{ }   which can be set, from memory,
> to one of three options, Standard, large files (fewer inodes for,
> say, multimedia) and lots of files (more inodes, say, mail server).
> I've only seen the choice (years ago) in the interactive d-i,
> and don't know the magic preseed terms.

This site is quite useful:
  https://preseed.debian.net/debian-preseed/

>From there I found this file for bullseye:
  https://preseed.debian.net/debian-preseed/bullseye/amd64-main-full.txt

which contains this stanza which appears to match your description:

### Description: Typical usage of this partition:
#   Please specify how the file system is going to be used, so that
#   optimal file system parameters can be chosen for that use.
#   .
#   standard = standard parameters,
#   news = one inode per 4KB block,
#   largefile = one inode per megabyte,
#   largefile4 = one inode per 4 megabytes.
# d-i partman-basicfilesystems/specify_usage select <choice>
# Possible choices: ${CHOICES}

Which is not what the OP requested, but maybe it helps.  It is the only
occurrence of "inode" in that file.  I did not check the other two files
that contain the "contrib" and "non-free" data.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

set the number of inodes during FS creation via pressed phoebus phoebus <frphoebus@yahoo.fr> - 2021-11-13 01:40 +0100
  Re: set the number of inodes during FS creation via pressed Stanislav Vlasov <stanislav.v.v@gmail.com> - 2021-11-13 11:20 +0100
  Re: set the number of inodes during FS creation via pressed David Wright <deblis@lionunicorn.co.uk> - 2021-11-13 18:20 +0100
    Re: set the number of inodes during FS creation via pressed David <bouncingcats@gmail.com> - 2021-11-13 23:50 +0100
      Re: set the number of inodes during FS creation via pressed phoebus phoebus <frphoebus@yahoo.fr> - 2021-11-14 15:00 +0100
        Re: set the number of inodes during FS creation via pressed David Wright <deblis@lionunicorn.co.uk> - 2021-11-14 18:00 +0100
        Re: set the number of inodes during FS creation via pressed David <bouncingcats@gmail.com> - 2021-11-15 01:50 +0100
          Re: set the number of inodes during FS creation via pressed phoebus phoebus <frphoebus@yahoo.fr> - 2021-11-15 12:00 +0100

csiph-web