>> util-linux 2.9 was released by Andries Brouwer Andries responded right away, and after some back-and-forth, I am attaching the relevant clips. It seems like no one has found a current kernel that supports what is indicated in the man pages of mkdisk regarding cpuinfo, but formally it's OK as stated there (see also his note at the bottom regarding Mandrake's customization).
In my opinion, Neil wins the contest: dd if=/dev/hdXX bs=4096 count=1 | strings (increase count as needed) Although this discussion seems only relevant for installations prior to 2.2 kernels, you can trick yourself if you have used older 3rd-party tools like PartitionMagic (e.g. V4.0) on that drive along time ago: In that case even a recent distro installs itself w/o giving you a hint that old style swap is used........................ Horst ######################################### On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote: > > cat /proc/meminfo > > Hmm. > > On the first three Linux machines I try, neither /proc/cpuinfo nor > /proc/meminfo give the machine page size. > > What kernel version and what field in /proc/meminfo > works for you? > > Andries > < my response: > I am looking first at 2.4.18-6 (mandrake). This shows for /proc/meminfo Swap(total) and nrSwapPages --so I conclude 559276032/136542 = 4096 byte/page. (entire output ###below###) <snip'ed report for RH 8.0 > - Horst ############# /proc/meminfo 2.4.18-6 (mdk 8.2) ################# total: used: free: shared: buffers: cached: Mem: 261910528 53567488 208343040 0 4870144 23990272 Swap: 559276032 0 559276032 MemTotal: 255772 kB MemFree: 203460 kB MemShared: 0 kB Buffers: 4756 kB Cached: 23428 kB SwapCached: 0 kB Active: 14616 kB Inactive: 28708 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 255772 kB LowFree: 203460 kB SwapTotal: 546168 kB SwapFree: 546168 kB NrSwapPages: 136542 pages ############################################# Linux version 2.4.18-6mdk ([EMAIL PROTECTED]) (gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Fri Mar 15 02:59:08 CET 2002 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Date: Fri, 3 Jan 2003 13:52:52 +0100 (MET) From: [EMAIL PROTECTED] Subject: Re: [util-linux] man pages, MKSWAP(8), about swap type; "Linux 2.2.4 25 March 1999" > NrSwapPages: 136542 pages Must be a Mandrake extension. The stock 2.4 kernel has "MemTotal: %8lu kB\n" "MemFree: %8lu kB\n" "MemShared: %8lu kB\n" "Buffers: %8lu kB\n" "Cached: %8lu kB\n" "SwapCached: %8lu kB\n" "Active: %8u kB\n" "Inactive: %8u kB\n" "HighTotal: %8lu kB\n" "HighFree: %8lu kB\n" "LowTotal: %8lu kB\n" "LowFree: %8lu kB\n" "SwapTotal: %8lu kB\n" "SwapFree: %8lu kB\n", in proc_misc.c. So, it is no good to refer to /proc/meminfo. Andries ######################################### _______________________________________________ Eug-LUG mailing list [EMAIL PROTECTED] http://mailman.efn.org/cgi-bin/listinfo/eug-lug