[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Rule-list] detecting hard drive space from slinky
From: |
Devon |
Subject: |
Re: [Rule-list] detecting hard drive space from slinky |
Date: |
Sun, 7 Apr 2002 22:23:49 -0500 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 07 April 2002 01:43 pm, address@hidden wrote:
> Hi,
>
> If we could detect hard drive space from slinky we could.
>
> Warn if the selected install will not fit. Give information about other
> options.
>
> Adjust swap size on auto installs. Down to 32 Meg on a minimum
> install. Up to 128 Meg on drives above a certain size. (1 gig?)
We can detect drive size. We just need to get the info, and do some math.
For example:
# fdisk -l
Disk /dev/hda: 64 heads, 63 sectors, 524 cylinders
Units = cylinders of 4032 * 512 bytes
Once the drives are partitioned, it's easier.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 986M 667M 269M 72% /
/dev/hda1 29M 4.7M 22M 18% /boot
Then, get rid of info we don't care about...
# df -h | grep -v Filesystem | cut -d M -f 1
/dev/hda2 986
/dev/hda1 29
- -D
- --
pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.freesoftware.fsf.org/rule/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8sQ1FeMAUbzJhSVcRAgYIAJ9kxDruSGBNlGYPdPaqjGkSmy5rNACdE7f+
zs+domUou2xtbDfpPVXLXRo=
=Myyj
-----END PGP SIGNATURE-----