ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: Community@altlinux.ru
Subject: [Comm] Increase initrd size created by lvmcreate_initrd
Date: Tue, 05 Apr 2005 10:58:20 +0400
Message-ID: <4252370C.7010600@stc.donpac.ru> (raw)

Здравствуйте!

Необходимо добавить модуль xfs.o в initrd, созданный lvmcreate_initrd. 
Делаю следующее:

# cat ./mkbiglvm

#!/bin/bash -x
ls -l initrd-lvm-2.4.26-std-up-alt6
mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
df | grep /mnt/disk
umount /mnt/disk
dd if=/dev/zero of=appendix bs=1M count=1
cat appendix >> initrd-lvm-2.4.26-std-up-alt6
ls -l initrd-lvm-2.4.26-std-up-alt6
resize2fs initrd-lvm-2.4.26-std-up-alt6 8192000
e2fsck -f initrd-lvm-2.4.26-std-up-alt6
mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
df | grep /mnt/disk
umount /mnt/disk

Вывод:

# ./mkbiglvm
+ ls -l initrd-lvm-2.4.26-std-up-alt6
-rw-r--r--  1 root root 6729728 Apr  5 05:06 initrd-lvm-2.4.26-std-up-alt6
+ mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
+ df
+ grep /mnt/disk
                           4134      3834       300  93% /mnt/disk
+ umount /mnt/disk
+ dd if=/dev/zero of=appendix bs=1M count=1
1+0 records in
1+0 records out
+ cat appendix
+ ls -l initrd-lvm-2.4.26-std-up-alt6
-rw-r--r--  1 root root 7778304 Apr  5 07:51 initrd-lvm-2.4.26-std-up-alt6
+ resize2fs initrd-lvm-2.4.26-std-up-alt6 8192000
Please run 'e2fsck -f initrd-lvm-2.4.26-std-up-alt6' first.

+ e2fsck -f initrd-lvm-2.4.26-std-up-alt6
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create<y>? yes

Pass 4: Checking reference counts
Pass 5: Checking group summary information

LVM-2.4.26-std-u: ***** FILE SYSTEM WAS MODIFIED *****
LVM-2.4.26-std-u: 19356/19416 files (0.0% non-contiguous), 6273/6572 blocks
+ mount -o loop initrd-lvm-2.4.26-std-up-alt6 /mnt/disk/
+ df
+ grep /mnt/disk
                           4134      3835       299  93% /mnt/disk
+ umount /mnt/disk

Почему после монтирования размер не изменился?

Можно, конечно, было создать файл с нуля и отформатировать его под ext2, 
но тогда появляются другие проблемы : /dev из оригинального initrd  не 
умещается на fs большего размера. Как с этим бороться?

--
С уважением, Прокопьев Евгений


                 reply	other threads:[~2005-04-05  6:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4252370C.7010600@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=Community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git