LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-26-2008, 12:45 PM   #1
jonnyhawes
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Rep: Reputation: 0
Dual Boot with 98SE


I have an older computer (Year 2000 lol) with 2 harddrives inside. The Primary 30GB HD holds Windows 98SE & all my (Parents) files lol. The second 10GB HD was for me and my stuff. I formatted the entire thing so I could put Fedora 8 on the computer for my Linux class this semester. However I ran into some big trouble, hence me being here.

I installed Fedora on the 2nd HD (10GB), ran it and it works great. But now my parents need 98SE back, so I restarted and low and behold, 98SE is missing!!

I figured this wasnt a big deal, so I opened the chassis and took my HD out, rebooted. It attempted to launch Fedora, but fails. So I plug the 10GB back in, take the Primary out, reboot. It says there is no OS detected.

So it apppears to me that Fedora has killed Windows 98SE, but again I am a total Linux noob. But I did not install it at all on the Primary, so why would this happen?

I am hoping you guys can tell me (1)What is going on? (2) Is 98SE gone? (3) Can it be saved short of reinstalling it?

Thanks, I am about to head off to work but I will have more info when I get back tonight.
 
Old 01-26-2008, 01:40 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
First thing to do is use Linux to see if there is a filesystem on the Windows drive. Put the system back together as it was when you installed Linux. Use mount to see what the Linux drive is; probably either /dev/hda or /dev/hdb. The WIndows drive will be the other. Then, as root, do
Code:
/sbin/fdisk -l /dev/hdx
(use either hda or hdb, as appropriate). With luck, you should see a Windows FAT32 partition listed. Note its partition name; hdb1, hdb2, etc.
Then, you can try to mount the Windows partition:
Code:
mkdir -p /mnt/Win98   (use a mountpoint that makes sense to you, its arbitrary)
mount -t vfat /dev/hdb /mnt/Win98  (use partition name observed above)
Now, you should be able to browse the Win98 filesystem, starting at /mnt/Win98. Other than using grub to allow the system to boot to Windows, I'm not sure how to restore the Windows boot loader. Others on this forum may know how.
To use grub, you will have to make an entry in /boot/grub/grub. Try adding an entry like this:
Code:
title Windows 98SE
        rootnoverify (hd0,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        chainloader +1
(Hopefully, grub is already installed by Fedora)
If the Windows drive is already /dev/hda, you should be able to remove the two map commands. On the next reboot, you should see an entry for the Windows 98 OS.

--- rod.
 
Old 01-26-2008, 03:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The Win98 disk will likely be /dev/hda with the MBR (boot-loader) overwritten. No big deal.

Couple of comments on the response above;
- do the fdisk command as "/sbin/fdisk -l" (no device, so you see everything)
- the mount needs a partition; I'm thinking this would be closer;
"mount -t vfat /dev/hda1 /mnt/Win98"
- try the new grub entry without the map commands - add them if it fails.
 
Old 01-26-2008, 03:49 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by syg00 View Post
The Win98 disk will likely be /dev/hda with the MBR (boot-loader) overwritten. No big deal.

Couple of comments on the response above;
- do the fdisk command as "/sbin/fdisk -l" (no device, so you see everything)
- the mount needs a partition; I'm thinking this would be closer;
"mount -t vfat /dev/hda1 /mnt/Win98"
- try the new grub entry without the map commands - add them if it fails.
Hmm. My fdisk without any drive named supplies nothing. Mileage may vary, apparently.
Good catch on the partition number, though. Thanks.
I wanted to show the way to add the map commands in the grub entry. You're right to add them as necessary.

syg00, do you know how to correct the overwritten Windows boot record?

--- rod.

Last edited by theNbomr; 01-26-2008 at 03:51 PM.
 
Old 01-26-2008, 04:00 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by theNbomr View Post
My fdisk without any drive named supplies nothing.
Only time I have had that happen was on Ubuntu - no message, nothin'.
Needed "sudo" - don't get me started ...

As for the Win98 MBR, a (DOS, not Linux) "fdisk /mbr" will work. Generally done from a floppy, but there may be rescue CDs now that will do it.
Shouldn't be needed here.
I'd bet that fixmbr from rescue console on a Win2k or XP CD would also work, as the code is the same.
 
Old 01-26-2008, 08:38 PM   #6
jonnyhawes
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Its quite obvious both of you gentlement know lots about this, so hopefully we can resolve this.

Here is the computers response when I use the Mount command:

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw, gid=5,mode=620)
/dev/sdal on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_piepfs (rw)

I see nothing of HDB or HDA in there, but again you guys know a lot more than me.

But in any case I went ahead to the next step to see if I could figure it out by trying both, since all we were doing was looking for partitions. However, when I try the "/sbin/fdisk -l /dev/hdx" (either hda or hdb) it takes the command and just drops me to the next prompt.

So more info is required for me to continue. If you guys can fix this I will dance at your respective weddings, assuming you are not married, in which case I would then have to come up with something else to repay you. lol

Thanks!

Last edited by jonnyhawes; 01-26-2008 at 08:41 PM.
 
Old 01-26-2008, 08:46 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Do these commands and post the output
Code:
/sbin/fdisk -l
cat /etc/fstab
 
Old 01-26-2008, 09:01 PM   #8
jonnyhawes
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
/sbin/fdisk -l

Disk /dev/sda: 30.0GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xealaa9c7

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 3649 29109780 8e Linux LVM

Disk /dev/sdb: 10.0GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004993c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488+ 8e Linux LVM

Disk /dev/dm-l: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-l doesn't contain a valid partition table



And cat /etc/fstab gives me:

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

There ya go!
 
Old 01-26-2008, 09:14 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
According to that, Fedora has taken over both disks. Reinstall (probably of both 98 and Fedora) is probably required.
Hope you had your folks data backed up.
 
Old 01-26-2008, 09:19 PM   #10
jonnyhawes
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
According to that, Fedora has taken over both disks. Reinstall (probably of both 98 and Fedora) is probably required.
Hope you had your folks data backed up.
lol nope. Why did it do that if I just installed it on 1 drive though. Not that it really matters now.
 
Old 01-26-2008, 09:31 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Dunno - it shouldn't have unless you accepted an option you didn't really understand. I don't use Fedora.
Then again I never use the automatic partitioner in any (distro) installer either.
 
Old 01-26-2008, 10:13 PM   #12
jonnyhawes
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Dunno - it shouldn't have unless you accepted an option you didn't really understand. I don't use Fedora.
Then again I never use the automatic partitioner in any (distro) installer either.
I am not gonna lie I didnt totally understand all that was going on, but I know I didnt tell it to get on that harddrive lol. I restarted in the Installation 3 times to double check myself, and then it did it anyways.

Oh well, it was time for an upgrade anyways lol

Thanks alot guys.
 
  


Reply

Tags
boot, dual, fedora, partitions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual booting Windows 98se and Slax drewinabox Linux - Newbie 10 04-18-2006 01:11 PM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 02:37 PM
dual boot with fedora core 1 and 98SE doralsoral Linux - Software 5 11-19-2003 02:50 PM
Linux & Windows 98SE dual boot... will defrag mess up linux partition? herrtool Linux - General 5 10-31-2003 02:43 PM
Need to reinstall Windoze 98SE on dual boot with linux mandrake 8 athon_solo Linux - Software 2 10-19-2001 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration