Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. Is there a way to do a surface scan and/or a low level format on a FAT32 partition within Linux (preferably within Knoppix)?
2. Is there something other than just copying the files over and setting hda1 active to make a Windows98 partition bootable?
3. Is there anything in Linux (preferably Knoppix) which can copy a FAT32 partition the way "Ghost" does it? In the past, I've used Ghost to copy Windows 98 partitions and it "just worked". But I no longer have access to a (legitimate) copy of Ghost.
Thanks!
----------------------------------------------------------------
Here's my story so far:
I'm upgrading a Windows 98 computer from a 13gig drive to a 40gig drive, and installing Linux to boot. The new drive is partitioned:
I have no problem with the Linux side, and I modified GRUB to have a Windows entry. My problem is that I haven't been able to copy over the original Windows 98 setup successfully!
First, I tried using the Debian installer partition tool. I tried to copy over the 13gig drive over to hda1, and this seemed to go smoothly. I also set hda1 to be the "bootable" partition (set active).
However, when I actually installed Debian on hda6, the installer did NOT detect any other operating system and GRUB only had entries to boot up Linux. I wasn't too worried at that point--I manually edited /boot/menu.lst to create a Windows entry.
Unfortunately, this Windows chain boot didn't work quite right. It would actually flash the Windows 98 boot screen and then crap out. If I was fast with "F8", I could get to the boot menu and could boot to DOS prompt, but not safe mode. Going step-by-step, it would get through several steps but crash at some point. So, I tried to run scadisk from the DOS prompt and it ran into tons and tons of weird errors.
Okay, so at this point I figured that the disc copy went bad. Note that I have no issues whatsoever with the Linux side--it boots up just fine and I don't run into any disc errors so I THINK the actual drive is okay. There may be some bad sectors here and there, though. I don't know how to check for bad sectors.
So--I decide to boot up Knoppix and reformat the Fat32 partition with QTParted. No problem--although the "reformat" takes hardly any time so I know it's not actually touching most of the disc sectors. I couldn't find any option to do a low level format or do a sector scan of the disk. I did have the option to "set active" hda1.
I then decide to us a simple cp to copy over the files (cp -vr /mnt/hdb1/* /mnt/hda1/). This seems to go through just fine, with no complaints.
Now I try to reboot into Windows, but now the computer just sits there doing nothing after the GRUB chainload. No Windows98 splash screen, no boot menu, nothing. It just sits there doing nothing. Obviously I'm missing something. But what? I have no idea.
I found that unless the LBA flag (I think...) was set for the Win-doze partition, Windows' boot-loader just stared at me stupidly at boot-time and did nothing.
It turns out that what I was missing was DOS/Win9x "system files". In addition to what I did (format FAT32, make the partition active, copy files over, and configure GRUB), I needed to install the "system files". The way I did it was to use another Windows 98 computer to format a floppy disc as bootable. Then I manually copied C:\WINDOWS\COMMAND\SYS.COM to A:.
Then I booted up my non-booting PC with that floppy disc and ran the command:
SYS C:
After that, I was able to choose Windows 98 from GRUB like a charm!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.