From: "Антон Мидюков" <antohami@basealt.ru>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] Расширение раздела с корнем
Date: Fri, 29 Nov 2024 23:10:46 +0300
Message-ID: <4278e9d1-9468-49fa-a23d-4415d3a4ec6c@basealt.ru> (raw)
In-Reply-To: <Z0oPZG7WGqU9Pf3O@example.org>
29.11.2024 22:00, Alexey Gladkov пишет:
> On Fri, Nov 29, 2024 at 09:13:39PM +0300, Антон Мидюков wrote:
>>>>> Понятно. Это общая проблема:
>>>>>
>>>>> Из kicstart_not_resizefs.txt:
>>>>>
>>>>> ++ e2fsck -yf /dev/mmcblk1p2
>>>>> e2fsck 1.47.1 (20-May-2024)
>>>>> Pass 1: Checking inodes, blocks, and sizes
>>>>> Pass 2: Checking directory structure
>>>>> Pass 3: Checking directory connectivity
>>>>> Pass 4: Checking reference counts
>>>>> Pass 5: Checking group summary information
>>>>> /dev/mmcblk1p2: 36511/263472 files (0.3% non-contiguous), 603579/1051904 blocks
>>>>> ++ resize2fs /dev/mmcblk1p2
>>>>> resize2fs 1.47.1 (20-May-2024)
>>>>> Please run 'e2fsck -f /dev/mmcblk1p2' first.
>>>>>
>>>>> ++ ret=1
>>>>> ++ return 1
>>>>>
>>>>>
>>>>> Из kicstart_resizefs_success.txt:
>>>>>
>>>>> ++ e2fsck -yf /dev/mmcblk1p2
>>>>> e2fsck 1.47.1 (20-May-2024)
>>>>> Pass 1: Checking inodes, blocks, and sizes
>>>>> Pass 2: Checking directory structure
>>>>> Pass 3: Checking directory connectivity
>>>>> Pass 4: Checking reference counts
>>>>> Pass 5: Checking group summary information
>>>>> /dev/mmcblk1p2: 36535/263472 files (0.3% non-contiguous), 605515/1051904 blocks
>>>>> ++ resize2fs /dev/mmcblk1p2
>>>>> resize2fs 1.47.1 (20-May-2024)
>>>>> Resizing the filesystem on /dev/mmcblk1p2 to 7567872 (4k) blocks.
>>>>> The filesystem on /dev/mmcblk1p2 is now 7567872 (4k) blocks long.
>>>>>
>>>>> ++ return 0
>>>>>
>>>>
>>>> А что можно с этим поделать?
>>>
>>> Я запушил в for-master исправление. Теперь должно работать.
>>>
>>> https://github.com/osboot/make-initrd/commit/932f55f062e6cf7f7355b61c4da99d85f664b487
>>>
>>
>> Не помогло.
>>
>> ++ printf '%s\n' 'kickstart: Increase filesystem to partition size: /dev/mmcblk1p2'
>> kickstart: Increase filesystem to partition size: /dev/mmcblk1p2
>> ++ case "$fs" in
>> ++ e2fsck -y -p -f /dev/mmcblk1p2
>> /dev/mmcblk1p2: 36511/263472 files (0.3% non-contiguous), 603585/1051904 blocks
>> ++ '[' 0 -le 2 ']'
>> ++ resize2fs /dev/mmcblk1p2
>> resize2fs 1.47.1 (20-May-2024)
>> Please run 'e2fsck -f /dev/mmcblk1p2' first.
>>
>> ++ ret=1
>> ++ return 1
>> + rc=1
>
> Хм. А вот это неожиданно. Тогда думаю нужно делать resize2fs -f .
> Если добавить -f будет работать ?
>
Да. С -f работает.
--
С уважением, Антон Мидюков <antohami@basealt.ru>
next prev parent reply other threads:[~2024-11-29 20:10 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-16 5:23 Egor Shestakov
2024-11-16 13:28 ` Alexey Gladkov
2024-11-23 14:18 ` Антон Мидюков
2024-11-23 17:59 ` Alexey Gladkov
2024-11-24 10:34 ` Антон Мидюков
2024-11-24 12:51 ` Alexey Gladkov
2024-11-24 13:00 ` Антон Мидюков
2024-11-24 15:36 ` Антон Мидюков
2024-11-24 17:17 ` Alexey Gladkov
2024-11-24 17:29 ` Антон Мидюков
2024-11-25 19:02 ` Антон Мидюков
2024-11-26 16:01 ` Alexey Gladkov
2024-11-26 16:06 ` Антон Мидюков
2024-11-26 16:32 ` Alexey Gladkov
2024-11-26 16:47 ` Alexey Gladkov
2024-11-26 17:22 ` Антон Мидюков
2024-11-26 17:32 ` Alexey Gladkov
2024-11-26 17:44 ` Alexey Gladkov
2024-11-26 17:56 ` Антон Мидюков
2024-11-26 18:16 ` Alexey Gladkov
2024-11-27 14:32 ` Alexey Gladkov
2024-11-28 13:04 ` Alexey Gladkov
2024-11-28 13:07 ` Антон Мидюков
2024-11-29 15:15 ` Антон Мидюков
2024-11-29 16:01 ` Alexey Gladkov
2024-11-29 16:07 ` Alexey Gladkov
2024-11-29 16:17 ` Антон Мидюков
2024-11-29 16:34 ` Alexey Gladkov
2024-11-29 18:13 ` Антон Мидюков
2024-11-29 19:00 ` Alexey Gladkov
2024-11-29 20:10 ` Антон Мидюков [this message]
2024-11-29 21:39 ` Alexey Gladkov
2024-11-24 13:21 ` Alexey Gladkov
2024-11-24 13:22 ` Антон Мидюков
2024-11-24 13:34 ` Alexey Gladkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4278e9d1-9468-49fa-a23d-4415d3a4ec6c@basealt.ru \
--to=antohami@basealt.ru \
--cc=make-initrd@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Make-initrd development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
public-inbox-index make-initrd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.make-initrd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git