Kernel panic - Confused partitions

NetMasker netmasker at yahoo.com
Mon Dec 13 00:52:15 EET 2004


Thanks again Tommy,

but I think you misunderstood. My "lilo.conf" remains as it was originally
set up, no problem with it, it is surely ok.
The "scrambled" partitions are shown in the output of the "fdisk" command.
There is the problem. Can I fix it using "fdisk" itself ??


"Tommy Reynolds" <TommyReynolds at yahoo.com> wrote in message
news:pan.2004.12.11.07.52.30.637229 at yahoo.com...
> On Thu, 09 Dec 2004 23:55:18 +0200, NetMasker wrote:
>
> > # cat /etc/lilo.conf
> > prompt
> > timeout=50
> > default=linux
> > boot=/dev/hda7
> > map=/boot/map
> > install=/boot/boot.b
> > message=/boot/message
> > lba32
> > image=/boot/vmlinuz-2.4.18-3
> >         label=linux
> > initrd=/boot/initrd-2.4.18-3.img
> > read-only
> > root=/dev/hda8
> > other=/dev/hda5
> >         optional
> >         label=winxp
> > other=/dev/hda6
> >         optional
> >         label=DOS
> > other=/dev/hda1
> >         optional
> >         label=win2k
> >
> > #fdisk -l /dev/hda
> > Disk /dev/hda: 255 heads, 63 sectors, 4866 cylinders
> > Units=cylinders of 16065 * 512 bytes
> > Device    Boot    Start         End       Blocks   id   System
> > /dev/hda1    *        1         1402    11261533    7   HPFS/NTFS
> > /dev/hda2            1403       4863    27816545    f   Win95 Ext'd
(LBA)
> > /dev/hda5            1403       3442    16386268    7   HPFS/NTFS
> > /dev/hda6            3443       3448       48163   83   Linux
> > /dev/hda7            3449       4332      7100698  83   Linux
> > /dev/hda8            4333       4462      1044193  82   Linux swap
> > /dev/hda9            4463       4865      3237066   b   Win95 FAT32
> >
> > Now I am sure that the partitions are confused! (I remeber them and I
can
> > also recognise them from their size - you can see it in "lilo.conf"
also):
> > hda6 was set up to be the dos partition
> > hda7 was set up to be the boot partition
> > hda8 was set up to be the root partition
> > hda9 was set up to be the swap partition
> > the rest are ok.
>
> I guess the partitions were not really "scrambled", but that you
> created a new Windows partition or something like that which renamed
> all your partitions.  You may be able to recover by booting back into
> rescue mode, doing the "chroot /sysimage" trick and then editing your
> "/etc/lilo.conf" file to look like the one below.  Remember to rerun
> "lilo" to update your configuration before rebooting.
>
> Warning: I haven't tested this.  It may fry something.  No
> warrantee.  Hope this helps.
>
> prompt
> timeout=50
> default=linux
> boot=/dev/hda6
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> lba32
> image=/boot/vmlinuz-2.4.18-3
>         label=linux
> root=/dev/hda7
> initrd=/boot/initrd-2.4.18-3.img
> read-only
> other=/dev/hda1
>         optional
>         label=win2k
> other=/dev/hda5
>         optional
>         label=winxp
> other=/dev/hda9
>         optional
>         label=DOS
>
> ---cut----cut----cut----cut---
>
> HTH.
>





More information about the Linux-greek-users mailing list