Re: [ILUG] Partition Tables

From: Conor Daly (conor.daly at domain oceanfree.net)
Date: Fri 15 Jun 2001 - 22:32:32 IST


On Fri, Jun 15, 2001 at 06:02:19PM +0100 or so it is rumoured hereabouts,
Mark Page thought:
> Can someone help me here as I'm a bit lost.
>
> Running Progeny Debian and fstab looks a bit odd!!
>
> /boot is definitely over the 1023 cylinder mark as a newly compiled kernel
> refuses to boot.
>
> Even though I can boot into linux there are error messages concerning swap
> - fstab file as follows:
>
> # <file system> <mount point> <type> <options> <dump> <pass>
> /dev/hda6 / ext2 defaults,errors=remount-ro 0 1
> /dev/hda2 none swap sw 0 0
> /dev/hda5 none swap sw 0 0
> proc /proc proc defaults 0 0
> /dev/hdd4 /zip vfat defaults,user,noauto 0 0
> /dev/cdrom /cdrom iso9660 defaults,ro,exec,user,noauto 0 0
> /dev/fd0 /floppy auto defaults,user,noauto 0 0
>
> The fact that /hda2 is shown as swap seems confusing to me. How can I
> correct this and create a /boot entry to reside within the cylinder limit
> without re-installing? Should /dev/hda2 not be a ext2 filesystem?

You could do a 'fdisk -l /dev/hda' and post the output and compare its
output with your fstab.

/dev/hda2 is an extended partition and /dev/hda5 is a logical
drive/partition within that so hda2 shouldn't show at all in fstab. If
you're feeling adventurous, you could use fips to chop 16Mb or so off the
end of your windows partition and mount that as /boot (It will show as
/dev/hda3 AFAIR). That'll be below 1024 cyls since your original kernel
booted and that is in /dev/hda6. Before you mount /dev/hda3 as /boot,
mount it under /mnt/tmp, 'cp -a /boot /mnt/tmp', edit /etc/fstab to
include a line like

/dev/hda6 /boot ext2 defaults,errors=remount-ro 0 1

and reboot

Conor (How'd he know all that from so little info?)

-- 
Conor Daly <conor.daly at domain oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  8:36pm  up 20:53,  0 users,  load average: 0.08, 0.02, 0.01
Hobbiton.cod.ie
  8:36pm  up 20:54,  3 users,  load average: 0.03, 0.08, 0.04


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:40 GMT