On Mon, 3 Jul 2000, Stephen Liu wrote:
> Hi Mikkel,
>
> Thanks for your advice. After having Window partition mounted
>
> typed
>
> # cfdisk (at root. Also tried cd /mnt/win98)
>
> Warning:
>
> FATAL ERROR: Bad logical partition 4: partition ends after end-of-disk
> Press any key to exit cfdisk.
>
> Could not proceed further. Any idea to rectify?
>
> Thanks in advance.
>
> (Remark: One thing I forgot to post.
> The partition was made with a MSWin98 boot/rescue disk. Linux was installed
> first and MSWindows98 afterwards, therefore MSWindow98 resides in hda3)
>
> B.R.
> Stephen
>
This is going to be a fun one. If you don't have any logical partitions
on the disk, (/dev/hda3 is the last one listed in /etc/fstab, and Windows
only had drive C:), you can try deleting the forth primary partition. See
if fdisk /dev/hda will work. In the expert mode, you can try dumping the
partition table, and writing it down or printing it so that you have it if
you realy mess up. (p command.) You may also be able to use the p
command from the normal menu to view the table in a more friendly form.
Also try the v command and see what it says. If this works, try using the
d command from the normal menu and delete partition 4. Then save the new
table and exit. If this works, then cfdisk should work on it again, and
you can check the type of the windows partition. Windows may even work
after this. This may be what is keeping windows from booting.
If this doesn't work, then there is are a couple of things left to try -
if fdisk doesn't error out when you start it, use the o command to create
an empty partition table, and re-enter the info you saved from before.
If this doesn't work, but you have the partition info, you can try and
zero out the partition table with dd. Then rebuild it. Make backups
BEFORE you try this - if you enter the DD commands wrong, or reboot before
rebuilding the partition table, you may lose everything. You will also
have to run LILO after using the dd command - it will wipe the boot sector
too!
dd if=/dev/zero of=/dev/hda bs=512 count=1
The command below may give you a listing of your table...
fdisk -lu /dev/hda
Good luck!
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.