[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ext2 resize problem
From: |
Phil Williams |
Subject: |
ext2 resize problem |
Date: |
Sat, 24 Aug 2002 12:16:33 +0100 |
User-agent: |
Mutt/1.3.28i |
Hi,
I have just seen a problem similar to that reported by wen shaohua (on 06 Jun
2002 10:38:32 +0800).
Here is the ouput of the command 'parted /dev/hda print':
Disk geometry for /dev/hda: 0.000-58644.140 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 8.367 primary ext2 boot
4 8.367 21000.164 extended lba
5 8.398 4104.351 logical ext2
6 4104.382 20500.101 logical ext2
7 20500.132 20756.039 logical linux-swap
3 21000.164 36000.070 primary ext2
2 49999.852 53000.226 primary ext2
Using the Parted boot and root (1.6.2) disks (so that no /dev/hda filesystems
were mounted), I created /dev/hda5 using
mkpartfs logical ext2 8.367 4104.367
and then copied /dev/hda2 using
cp 2 5
So the /dev/hda5 filesystem should be 4GB, but 'df -m' reports:
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda5 2952 1282 1490 47% /
/dev/hda1 8 3 5 35% /boot
/dev/hda6 16137 7222 8095 48% /home
I have since tried using the resize command to enlarge the filesystem, but that
had no effect. Do you have any suggestions? Am I doing something wrong?
Also, when I followed the suggestion of running lilo using
mount /dev/hda2 /mnt/linux
chroot /mnt/linux lilo -v
umount /dev/hda2
I got the following error message from lilo:
LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 20:57:26 on Apr 13 2002.
MAX_IMAGES = 27
Reading boot sector from /dev/hda
Merging with /boot/boot.b
Fatal: open /boot/boot.b: No such file or directory
On my system, /boot/boot.b is a symbolic link to the regular file boot-menu.b
Maybe this is a problem with lilo? Anyway, I used a Linux boot disk to boot
and then ran lilo with no problems.
Phil.
p.s. Parted is an excellent tool. Thanks for all of your work on it!
- ext2 resize problem,
Phil Williams <=