--- Seth Alford <sethal@xxxxxxxxx> wrote: > > --- Martin Lichtin <lichtin@xxxxxxxxx> wrote: > > > Martin, when you run the mke2fs "manually" in > > %post, > > > is it a %post --nochroot or a regular %post? If > > it's > > > a regular %post, what happens if you try it with > a > > > %post --chroot? > > > > It's a regular %post, I basically have the > following > > code: > > > > echo , | sfdisk /dev/rd/c0d1 > > mke2fs /dev/rd/c0d1p1 > > cat <<EOF >>/etc/fstab > > /dev/rd/c0d1p1 /HardDriveBay1 > ext2 > > defaults 1 2 > > EOF > > mkdir /HardDriveBay1 > > mount /HardDriveBay1 > > > > I don't think this stuff would work using the > > --nochroot option. > > > > The sfdisk would not, since it is not in the > ramdisk environment, by default. But, it would > be in /mnt/sysimage/sbin/sfdisk. So if you > ran it with %post --chroot, and substituted > /mnt/sysimage/sbin/sfdisk, the script would at least > run. > > --Seth The problem with mke2fs may be due to the system running out of memory. This was discussed in the linux-kernel mailing list last February. See, e.g., Theodore Tso's comment on this: http://www.uwsg.indiana.edu/hypermail/linux/kernel/0102.2/0046.html (Sorry for the word wrap.) If mke2fs is causing the system to reserve pages, and the system releases the pages when they are written to disk, that might explain why mke2fs works sometimes, but not others. It works when the disk's sectors are in the right relationship to the read/write head, but not otherwise. So, depending on when you started the mke2fs, the disk sectors might be "right" or "wrong", and mke2fs would work or wouldn't, apparently randomly. I'm not sure if this explains why mke2fs works in the %post environment, and not during the ramdisk environment. Maybe something in %post causes the MKE2FS_SYNC environment variable to get turned on? Martin, or anyone else who is seeing this problem, what does the alt-f3 and alt-f4 screens show when mke2fs hangs? Also, are you using the 2.4.2-ac2 kernel which comes on the distribution, right? --Seth __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/