LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2003, 06:49 AM   #16
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30

My bad, I should have said put the XP disk in. If it is like the Win2K disk, it will default to starting your WinXP program. Try that first. Since our goal is to issue the sys command to C:\, using the XP sys files, try just doing it from within XP. Open up My Computer and look at what Windows thinks your drive set up is. Keep in mind that it will ignore the Linux partitions. It should show you a C:\ drive. Open it and make sure that it is still a valid drive (can you look around in it?).

Close My Computer and select Search for Files from the Start menu. Search for sys.com. Note which directory it is in.

Close that window and select Start/Accessories/Cmd Prompt (or in the Run window, type: cmd). This will bring up a DOS window. Change to the directory that has sys.com in it and issue this command:

sys c:\

Let me know if this does or doesn't work.
 
Old 01-29-2003, 05:57 PM   #17
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, I had somehow broken my XP CD here, and so had to ask my bro in India to ship it to me to Canada. :/

Sorry about it again.

Ok, I took the floppy, went and copied sys.com from a win98 pc of a roommate's friend. And also the normal startup files which win98 makes for you.

But still, I logged in with the XP CD and went to the command prompt, it asked me which OS I want to go on

1) G:\WINNT
2) C:\WINDOWS

I clicked on 2 (win2k), and typed my pass and entered, did the fixbmr and fixboot, and rebooted, still it showed me NTLDR is missing stuff (this time, grub was'nt there too). So, I again went back to the same cmd prompt the XP CD brought me to, and then I tried doing the sys c:\ stuff, and it said unrecognized command, so I take it that it doesnt have dos or something, so from there itself, I put the floppy in (which has sys.com) and did the sys c:\ thing again, no good again..


This is what happened.
 
Old 01-29-2003, 08:42 PM   #18
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Snake,

Try starting both XP and Win2K with it--can you bring them both up?

Also, what sys.com does is transfer the io.sys and msdos.sys files--you don't want the ones from Win98--they don't work with an NT system. When you get XP started, follow the instructions in my last post about running the sys.com program from a command prompt.

Let me know what happens.
 
Old 01-29-2003, 09:09 PM   #19
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
First off, how do I bring them up from the command prompt the WinXP Recovery CD gives me?

I mean how do i start the windows GUI from the command prompt?

And I dont have sys.com on my XP PC (i.e this pc) I searched for it. And it's not there.
 
Old 01-29-2003, 10:19 PM   #20
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
OK, it looks like XP is set up as your G:\ drive. Start things up and change to G:\. Then change to your Windows directory (probably WINNT) and then to the Command subdirectory. Sys.com should be there. DIR SYS.COM should show it. Try issuing the sys c:\ command from there.

As for starting the programs, at least for XP, the Rescue CD should give you the option to try.

If sys.com still doesn't fix your problem, put the CD in and reinstall XP. You won't lose any of your files, it will just overwrite itself and that should fix this part of your problem.

When you finish, you should have a computer that will boot both Windows operating system. When they are working well, we'll start on getting Red Hat working.
 
Old 01-31-2003, 12:44 AM   #21
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Well, right now I'm reinstalling winxp, as the other way did'nt quite work. But this time, it's installing to a new sysdir, i.e c:\windows1

AND, I deleted the damned, win2k which was causing all problems. Once, I get back, using partition magic, and with your help, i'll want to make the partition table proper, without any data loss. :/
 
Old 01-31-2003, 11:10 AM   #22
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, this is very frustrating now. It said, in the block 0 of the HDD, there's a non-xp compatible OS which it does'nt recognize, and it gave me 2 options, that it will install no matter what, but the data on the XP drives will be lost, and the other is to remove the non-xp compatible OS (i.e win2k) to go on. So I deleted the win2k partition *sniff* and then it asked me to create a xp-compatible partition in that same place, so I went ahead and created a 100mb partition.

But after that, it said, if I have to install on WINDOWS, it will erase all data and stuff, again.. So I said install on WINDOWS1, and it did. Now everything came up, and I can still see my old data here, but I dont want to use WINDOWS1, and want to use WINDOWS, as this feels like a new system. Please help me fix this, and I know we can do it soon for RH and XP, because 2K is out of the scene now.
 
Old 01-31-2003, 11:23 PM   #23
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Ok,

From some help from an IRC channel, I got around to using the original, old, C:\WINDOWS instead of C:\WINDOWS1 (new install) [Is it safe to delete WINDOWS1?]

And on boot.ini, I have 2 options, one for WINDOWS1, and one for WINDOWS, i'll be removing the WINDOWS1 option in 5 mins.. and after that, we'll be on track for putting up RH7.3 on NTLDR, yippies!
 
Old 01-31-2003, 11:55 PM   #24
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, great.. after everything.. I put my RH 7.3 boot floppy in and tried booting and I got this nice helpful message

VFS: Can't find ext3 filesystem on dev ide0(3,3)
mount: error 22 mounting ext3
Pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed:2
Freeing unused kernel memory (something blah)
kernel panic: No init found. Try passing init= option to kernel.

Now, what am I sposed to do?
I think this happened because of the deletion of the W2K partition and a small partition of 100MB being created there.

Please help me out with this, as I'm really persistent on getting back on Linux forever, and I also have some important data there. :/
 
Old 02-03-2003, 10:27 PM   #25
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Is the deadbug, alive or dead? :P
 
Old 02-08-2003, 07:29 PM   #26
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
oh man, you've had the longest downtime now, deadbug..please awaken!
 
Old 02-09-2003, 06:00 PM   #27
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Snake,

You're down to easy problems now! The boot disk you made depended on not changing the disk, which you did when you deleted a partition, added one and then added Windows1--what Red Hat expected to find on the thrid partition was somewhere else. Easy to fix.

As I understand what you wrote, you have Windows working. When you get Windows set the way you want it (and are done changing partitions!), it will then be time to get Linux back up and running. At your level of experience, the easiest and simplest way is to just reinstall it, making a new boot disk when it gives you the chance.

When you get to the part where it wants to install Grub, have it put it in the Master Boot Record. You don't want this--you want to change that to the primary boot partition.

When you get this done, Windows will boot from the hard drive and Linux will boot from a floppy.

Now to configure NTLDR. First read this big picture from Red Hat:

http://www.redhat.com/advice/tips/dualboot.html

There are some gotchas in there that they don't mention the boot.ini is a hidden, read-only system file. You have to change its attributes. Anyway, follow the instructions I gave you earlier, with one exception. You have to verify where to take the boot image from. I assumed hda3 in my original instructions, which were:

Get the boot image file NTLDR will need. In the same Run Program window, type this:

dd if=/dev/hda3 of=/dev/fd0/bootsect.lnx bs=512 count=1

You should see it report 1 record in and 1 record out.

Exit Linux and reboot Windows--either one.

Using file manager or at a Cmd prompt, copy the bootsect.lnx file from the floppy (A:\) to C:\ (the root portion). The Cmd line command would look like this:

copy a:\bootsect.lnx c:\bootsect.lnx

The rest of this is easiest at the Cmd prompt. Type these commands:

attrib -r -a -s -h c:\boot.ini
edit c:\boot.ini

At the bottom of the file, add this line:

C:\bootsect.lnx="Red Hat Linux"

Save the file and exit.

Reboot your computer.


Note: if in moving things around, your boot image is no longer in hda3 and you are having problems determining where it is, log on as root, go to a shell prompt and type this:

cat /etc/grub.conf

Post those results.

Let me know how far you get.
 
Old 02-11-2003, 06:10 PM   #28
snake
LQ Newbie
 
Registered: Jan 2003
Location: Toronto, Canada
Distribution: Redhat 7.3
Posts: 26

Original Poster
Rep: Reputation: 15
Well, PLEASE tell me of a way to do it without re-installing Linux again. I've some critical stuff on there now :/
 
Old 02-12-2003, 01:46 PM   #29
Tih8710
Member
 
Registered: Jan 2003
Location: Finland
Distribution: ElementaryOS Freya as main, every other ubuntu-based as testing
Posts: 124

Rep: Reputation: 15
Well, if i recall, the syntax that sys.com has should be:
sys A: C:
the above stands for system transfer from floppy into C-drive.
 
Old 02-13-2003, 09:03 PM   #30
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Use the CD to get it started--as long as you don't repartition or reformat, you should be fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NTLDR is missing after reboot robertko SUSE / openSUSE 37 11-10-2005 11:52 AM
Lilo and ntldr missing problem kryptobs2000 Linux - Software 2 09-14-2005 01:57 AM
NTLDR Missing rob0t Linux - Hardware 10 10-08-2004 04:01 PM
More NTLDR is missing - Sorry :) forge107 Linux - Newbie 6 06-07-2004 05:15 PM
ntldr is missing beowulf Linux - General 2 03-14-2003 05:39 AM


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration