Re: Partitioning problems on Maxtor 80Gb drive

From: Stefan Patric (phony1_at_notrealdomain.com)
Date: 11/08/04


Date: Sun, 07 Nov 2004 16:43:03 -0800

On Sunday 07 November 2004 05:06, Mark Hobley wrote:

> I have tried to partition my Maxtor 80Gb drive as follows, using
> cfdisk:
>
> hda1 Primary Linux ext2 [/boot]
> 32.00
> hda2 Primary Linux ext2 [/]
> 120.26
> hda3 Boot Primary W95 FAT32 (LBA)
> 32767.97
> hda5 Logical Linux ext2 [/usr]
> 120.26
> hda6 Logical Linux ext2 [/var]
> 649.77
> hda7 Logical Linux ext2
> 47506.13
> hda8 Logical Linux swap
> 767.96
>
> If I run fdisk, and print the partition table, I get the following
> information:
>
> Device Boot Start End Blocks Id System
> /dev/hda1 1 62 31216+ 83 Linux
> Partition 1 does not end on cylinder boundary.
> /dev/hda2 63 295 117432 83 Linux
> Partition 2 does not end on cylinder boundary.
> /dev/hda3 * 296 63787 31999968 c W95 FAT32
> (LBA) Partition 3 does not end on cylinder boundary.
> /dev/hda4 63788 158816 47894616 5 Extended
> Partition 4 does not end on cylinder boundary.
> /dev/hda5 63788 64020 117400+ 83 Linux
> /dev/hda6 64021 65279 634504+ 83 Linux
> /dev/hda7 65280 157328 46392664+ 83 Linux
> /dev/hda8 157329 158816 749920+ 82 Linux swap
>
> If I use the v command in fdisk to check the partition table, I get
> the following errors:
>
> Partition 1 does not end on cylinder boundary.
> Partition 1: head 227 greater than maximum 16
> Partition 2 does not end on cylinder boundary.
> Partition 2: head 130 greater than maximum 16
> Partition 3 does not end on cylinder boundary.
> Partition 3: head 82 greater than maximum 16
> Partition 5: head 240 greater than maximum 16
> Partition 6: head 239 greater than maximum 16
> Partition 7: head 143 greater than maximum 16
> Partition 8: head 236 greater than maximum 16
> 310 unallocated sectors
>
> What is going on? Is this some kind of Geometry issue?
>
> I have an Asrock K7S8XE motherboard.
>
> The BIOS reveals:
>
> Maxtor 6Y080P0 Type: Auto Cylinders: 39237 Heads: 16 Sectors: 255
> Maximum Capacity: 82Gb
>
> LBA Mode: On
> Block Mode: On
> 32 Bit Transfer Mode: On
> Fast Programmed I/O Modes: 4
> Ultra DMA Mode: Auto
>
> The settings for LBA and Block mode are greyed out as with the Type:
> Auto set in the BIOS.
>
> If I change the drive type to Type: User,
>
> I get the facility to enter the number of cylinders, heads and
> sectors, and the option to switch off LBA mode.
>
> I don't know what values to key in for non-LBA mode, if I can use
> this.
>
> In all of my other computers, I use Normal mode and have no problems
> partitioning the disks. (All other machines run Linux only, and LBA
> mode is not required). The BIOS on all other machines allows me to
> autodetect the hard drive and automatically fills in the values for
> cylinders, heads and sectors.
>
> This computer is going to dual boot into Windows 2003. I presume
> that I need LBA mode for Windows to work. (Does anyone know whether
> this is still a requirement for Windows?)
>
> The computer will boot both systems as it stands, but I want to
> correct the partitioning errors.
>
> I am also having problems with putting LILO on this computer, since
> it crashes out with a segmentation fault during the debian install.
> This has resulted in the grub boot loader being installed on the
> hard drive. LILO gives a segmentation fault from the command prompt.
> I presume this is due to the dodgy partitioning scheme that is being
> created on my drive.
>
> I want to repartition the drive, make the partitions end on a
> cylinder boundary, allocate all space on the hard drive, and dual
> boot into Windows 2003 using LILO.
>
> How can I achieve this ?

You're not going to be able to allocate ALL the space on the drive.
Windows usually reserves a "hidden" 8MB partition at the end of the
drive for its "private" system files. So, allow for that. If you
delete it, Windows won't boot or won't boot properly or it may just
wipe out the partition that's there and write a new 8MB one. Also,
when installing Linux and formatting your Linux partitions, do a
badblock check, too. This will take a long time, but it's worth it.

Now, try this: delete ALL the current partitions; then in Linux
create a single partition and format it in ext2, but don't install
anything. Reboot to your Linux install disk in Rescue Mode and do a
filesystem check on the new partiion -- fsck -t ext2 -v /dev/hda1 or
e2fsck -v /dev/hda1 -- to see that everthing is okay. If it is (It
should be.), reboot the Linux install disk and delete the single
partition and create your final partitioning (I like fdisk over
cfdisk. fdisk automatically ends a partition on the nearest block
boundary.), but plan to install Windows on the 1st, the C:, partition
and make it the ONLY bootable partition. Windows always works better
when it's on the 1st partition on the drive. (Arrogant little OS,
isn't it? Linux doesn't care. Gets along with everyone.) Once you're
all partitioned and the partition table is saved, shutdown the
computer, and reboot using your Windows install CD. Install Windows.
After that's done, shutdown and boot the Linux CD. Install Linux.
Linux should automatically recognize that Windows is installed and
ask, if you want to make a dual boot system. Say "Yes." You're
done.

FWIW, I find it better to partition for both Linux and Windows using
Linux rather than Windows. Windows sometimes does screwy things to
the HD geometry.

-- 
Stefan Patric
tootek2@yahoo.com


Relevant Pages

  • Re: Co-existing with Windows and Linux
    ... Windows XP and Linux can co-exist on the same laptop and hard drive ... one for Linux and much ... NTFS partition to give you room for Linux. ... Install XP first using the restore disk that came with your system. ...
    (comp.os.linux.portable)
  • Re: dual boot with xp on same drive
    ... >>i would like to install linux (i have downloaded fedora and burnt to ... >>i have partition magic to create a new partition. ... >>on partition 1 where i would like to put linux. ... Backup your Windows partitions. ...
    (comp.os.linux.setup)
  • Re: Boot advice, please.
    ... partition on which I installed Mandriva some time ago. ... install a second SAT drive. ... The Linux Emporiumm. ... No, unless Windows is opened, then I expect it creates its own version ...
    (uk.rec.sheds)
  • Re: Windows XP upgrade
    ... the machine came with Windows ME ... Eventually I used Partition Magic to create a d, e, and f, ... > installed Linux Fedora Core 3. ... > install Windows XP in that space, keeping the f partition and Linux ...
    (comp.os.linux.setup)
  • Missing applications after XP clean install/reinstall - Help!!
    ... Here's my problem in a nutshell: I've reinstalled Windows XP SP2 clean. ... I've managed to get my main user profile back so I have all of my documents, ... I have the install disks for a lot of my major applications - Microsoft ... 40GB partition. ...
    (microsoft.public.windowsxp.setup_deployment)