From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4252370C.7010600@stc.donpac.ru> Date: Tue, 05 Apr 2005 10:58:20 +0400 From: Eugene Prokopiev User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: ru, en MIME-Version: 1.0 To: Community@altlinux.ru Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: [Comm] Increase initrd size created by lvmcreate_initrd X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 06:58:25 -0000 Archived-At: List-Archive: List-Post: Здравствуйте! Необходимо добавить модуль 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? 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 большего размера. Как с этим бороться? -- С уважением, Прокопьев Евгений