[Rule-list] detecting hard drive space from slinky
Devon
devon at tuxfan.homeip.net
Mon Apr 8 06:23:49 EEST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 07 April 2002 01:43 pm, hairylarry at deltaboogie.com 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-----
_______________________________________________
Rule Project HOME PAGE: http://www.freesoftware.fsf.org/rule/
Original Rule Development Site http://savannah.gnu.org/projects/rule/Rule-list at mail.freesoftware.fsf.org
http://mail.freesoftware.fsf.org/mailman/listinfo/rule-list
This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here