[lkml]   [2001]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Odd partition overlapping problem
On Tue, 13 Nov 2001, Robert A H Holmberg wrote:

> Hi,
> I have a dual-boot setup with win98 and linux. I primarily use linux, but
> I want to keep windows around for some inportant productivity
> applications, mostly games. My partition table is as follows:
> <snip>
> [root@localhost documents]# fdisk /dev/hda
> The number of cylinders for this disk is set to 3736.
> There is nothing wrong with that, but this is larger than 1024,
> and could in certain setups cause problems with:
> 1) software that runs at boot time (e.g., old versions of LILO)
> 2) booting and partitioning software from other OSs
> (e.g., DOS FDISK, OS/2 FDISK)
> Command (m for help): p
> Disk /dev/hda: 255 heads, 63 sectors, 3736 cylinders
> Units = cylinders of 16065 * 512 bytes
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 523 4200966 c Win95 FAT32 (LBA)
> /dev/hda2 524 525 16065 83 Linux
> /dev/hda3 526 2647 17044965 83 Linux
> /dev/hda4 2648 3736 8747392+ 5 Extended
> /dev/hda5 2648 2713 530113+ 82 Linux swap
> /dev/hda6 2714 3736 8217216 c Win95 FAT32 (LBA)
> Command (m for help):
> </snip>

The extended partition goes from 2648 to 3736. The first part of
this extended partition from 2648 to 2713 is swap. The second part
of 2714 to 3736 is the FAT32 partition. It looks as though M$ tries
to use the swap area, ignoring the 82 code for Linux swap. This
may be why the M$ partition gets trashed. To test this theory,
disable swap on this drive (comment it out in /etc/fstab). Re-do
the M$ partition and see if it remains clean. If it remains
clean, then do a `mkswap` from Linux. Reboot to M$ and verify that
the last partition is now corrupt. This will show that M$ is
trying to use the swap area. If it is, re-fdisk the extended
partition to put Linux swap at the end instead of the beginning.

This should work around the M$ bug.

Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.110 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site