Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 3518 - Installer mkswaps all partitions the same size
Summary: Installer mkswaps all partitions the same size
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: installer
Version: 6.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Michael Fulbright
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-06-17 00:34 UTC by cadams
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-02-17 23:09:11 UTC

Attachments (Terms of Use)

Description cadams 1999-06-17 00:34:24 UTC
I have an existing system that I did a clean install on (I
didn't repartition the drives, but I did mke2fs them).  I
have a swap partition on both drives.  The swap partition on
the first drive is 50M and the one on the seconds drive is
90M.  It looks like the installer ran "mkswap" with the same
size on both swap partitions, because after installation and
reboot, I have 100M of swap (looking at /proc/swaps there
are two entries of 50M).

I don't know what would happen if I tried to install and the
first swap partition was bigger than the second; it looks
like it could overwrite stuff past the second partition.

Comment 1 David Lawrence 1999-07-06 20:07:59 UTC
I have verfiied this to be a problem with a standard 6.0 install.

Comment 2 Jay Turner 1999-07-07 17:07:59 UTC
*** Bug 3761 has been marked as a duplicate of this bug. ***

I was doing a fresh install on a machine
with a bit exotic setup:

/dev/hda1             1        32    257008+   6  FAT16
/dev/hda2   *        33       163   1052257+  83  Linux
/dev/hda3           164       527   2923830    5  Extended
/dev/hda5           164       172     72261   82  Linux swap
/dev/hda6           173       368   1574338+  83  Linux
/dev/hda7           369       527   1277136    7  HPFS/NTFS

/dev/hdc3             1       508    512032+   7  HPFS/NTFS
/dev/hdc4           509       827    321552    5  Extended
/dev/hdc5           509       574     66496+  82  Linux swap
/dev/hdc6           575       827    254992+  83  Linux

The hda6 is an old copy of Linux. I was installing
RH 6.0 on /dev/hda2 with swap space on /dev/hda5
and /dev/hdc5. The setup has detected both
swap partitions and I let it to reinitialise
them. Being curious as always I watched
the log messages on the other virtual screen.
To my horror I noticed that the size of the
both swaps was exact the same, corresponding
to the /dev/hda5 :-(

I verified the situation and corrected it
manually, but if unnoticed, this could
lead to severe problems.

------- Additional Comments From  06/28/99 09:22 -------
Verified in test lab.  Created 72M and 56M swap partitions, and the
log messages showed that the installer was creating two 72M
partitions.  Completed installation and rebooted to find the
following: "free" shows 144+M of swap space available to the system;
fdisk shows a 72M and a 56M swap partition with 8 sectors and 6
sectors in use.  Pretty strange!

Comment 3 Jay Turner 2000-02-17 23:09:59 UTC
This issus is resolved in the next cut of the installer.

Note You need to log in before you can comment on or make changes to this bug.