IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Win98 HD upgrade / migration using Linux?

I have before me not the bottle of choice, but a frontal lobotomy, in the guise of an HP Pavilion 6355, with its stock 4 GB HD and a newly added 40 GB drive. Linux has, of course, been migrated without issue, and I'm in the process of happily converting larger partitions to reiserfs as I write this.

\r\n\r\n

Drives are both IDE. 4 GB: /dev/hda, 40 GB: /dev/hdb.

\r\n\r\n

Windows is a bitch.

\r\n\r\n

Objective: Get More Space for Windows. If nothing else, resize the 1.4 GB partition it's on to give it breathing room on the 4 GB. Preferably, move it to a 10 GB partition allocated at the start of the 40 GB drive. No Partition Magic or wotnot. The only installation media I can find are an HP Pavilion "rescue disk", which I suspect won't do.

\r\n\r\n

The infamous [link|http://support.microsoft.com/default.aspx?scid=KB;en-us;q166172|q166172] MSFT knowledgebase article seems to suggest that a full reinstallation is required, followed by a restore from backups. I don't think this is going to work, given the recovery media available.

\r\n\r\n

What I've tried so far, unsuccessfuly, is to:\r\n\r\n

    \r\n
  • Partition the new drive.
  • \r\n
  • Create a DOS filesystem on it, from within Linux: mkdosfs -F 32 /dev/hdb1
  • \r\n
  • Copy contents of old partition to new partition via tar: cd /mnt/oldwindows; tar cvf - --preserve . | ( cd /mnt/windows; tar xvf - --preserve )
  • \r\n
  • Boot the old Windows partition, reboot into DOS, and run sys > d:
  • \r\n
  • Attempt booting new partition (using LILO, which works for the old partition). Resulting message is "Operating system not found".
  • \r\n
\r\n

\r\n\r\n

/etc/lilo.conf. The new Windows boot stanza is the last given.

\r\n\r\n
\r\n
\r\nlba32\r\nboot=/dev/hda\r\nroot=/dev/hdb3\r\ninstall=/boot/boot.b\r\nmap=/boot/map\r\nmessage=/boot/bootmess.txt\r\n#       single-key\r\n        prompt\r\n        delay=40\r\n        timeout=80\r\nvga=6\r\n\r\n# Boot up Windows by default (ugh!).\r\n#\r\ndefault=Windows98\r\n\r\n# Other OS -- Windows98\r\n        other=/dev/hda1\r\n        label=Windows98\r\n        table=/dev/hda\r\n\r\nimage=/vmlinuz\r\n        label=linux\r\n        initrd=/initrd.img\r\n        read-only\r\n        vga=6\r\n\r\nimage=/vmlinuz.old\r\n        label=linux-old\r\n        read-only\r\n        optional\r\n\r\nimage=/vmlinuz\r\n        label=linux-olddisk\r\n        root=/dev/hda5\r\n        read-only\r\n        optional\r\n        append=single\r\n\r\n# Other OS -- Windows98 -- new disk\r\n        other=/dev/hdb1\r\n        label=Windows98-new\r\n        table=/dev/hdb\r\n
\r\n
--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Shouldn't be difficult, but I've never done it with Linux.
As long as you get everything from the original Win partition, and make sure that Win is on the first primary partition seen by the system, you should be good to go. As I'm sure you know, Win 9x must be on the first primary partition seen by the system (C:). (Caveat: I don't know if LILO can do some magic to trick Win 9x into booting off another partition. If so, then ignore this post...)

You're removing/rejumpering/or similar the 4 GB drive before attempting to boot the Win on the 40 GB one I trust?

It is a little simpler process using DriveImage or the like because it can save you backup time, but it still takes far longer than it should (IMO). But if you don't have it, I'm sure the Linux tools you have will do the job.

I think if you copied everything, then the "sys d:" wouldn't be required (nor work as you intended if a C: drive is present).

HTH. GL!

Cheers,
Scott.
New 1st primary -- not yet

I haven't swapped drive positions yet. Need to look into doing that I guess. Will give parted a shot first though ;-)

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Windows won't boot from a D: drive.
Even if there are no valid FAT partitions on /dev/hda, it will *still* call that C: and look for its files there.

Swap the jumpers and see if it will boot.

Wade.

Microsoft are clearly boiling the frogs.

New can your new partition be booted from fdisk?
marking the new partition as active to ensure that it is bootable? Also the bios might be wondering which disk to boot from first.
luck,
bill
will work for cash and other incentives [link|http://home.tampabay.rr.com/boxley/resume/Resume.html|skill set]

You think that you can trust the government to look after your rights? ask an Indian
New I don't get it
Just install Windows on hda on all 4G and Linux on the new drive. If needed, make a vfat partition on hdb for more winspace.

You can install Windows over the old Linux stuff, use loadlin to start your Linux, then install a boot manager from Linux once Windows is functional.

BTW usually "Operating System not found" means that LILO is pointing to the wrong Windows partition.
-drl
New Resolution: more of same, plus more elsewhere.

Using parted, I expanded the existing Windows partition (well, it's now the same 4 GB it originally had ;-). The 8 GB at the end of the new drive wasn't visible to Windows, so "D:" is now the ~10 GB at the start of the second drive. Linux now has a good bit of room to play with. I'm going to forego jumpering the drives for the time being. This Works.

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
     Win98 HD upgrade / migration using Linux? - (kmself) - (6)
         Shouldn't be difficult, but I've never done it with Linux. - (Another Scott) - (2)
             1st primary -- not yet - (kmself) - (1)
                 Windows won't boot from a D: drive. - (static)
         can your new partition be booted from fdisk? - (boxley)
         I don't get it - (deSitter)
         Resolution: more of same, plus more elsewhere. - (kmself)

A user complaining that Facebook doesn't work well is like a cow complaining that the slaughterhouse doesn't work well.
55 ms