Red Hat Bugzilla – Bug 75551
mkswap only formatted 128K
Last modified: 2007-04-18 12:47:23 EDT
Description of Problem:
I recently purchased a new MaxStor model 6Y080L0 80GB ide drive and installed it
as /dev/hdc. One interesting part is that the drive did NOT come up in LBA32
mode. Instead, fdisk -l reports a geometry of 16 heads, 63 sectors, 158816
cylinders. This seems to work OK and I was even able to install and run a
system in /dev/hdc1 which allocated:
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 8127 4095976+ 83 Linux
/dev/hdc2 8128 10159 1024128 82 Linux swap
As you can see, hdc2 is a swap area. I tried to format it with mkswap using the
mkswap -c /dev/hdc2
but it reported that it formatted only 131072 (128K). I tried this several
times but it repeated. I then tried specifying a size:
mkswap -c /dev/hdc2 512
This did nothing.
I then used parted to format the swap area and it did the full 1GB. After that,
I tried mkswap again and it now reported the full 1048576.
Version-Release number of selected component (if applicable):
yes, but not after I formatted with parted
I had to rebuild the disk. This time mkswap worked OK.
I am not sure how repeatable this will be and would understand this being closed