LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-13-2006, 02:11 AM   #1
leenuk
LQ Newbie
 
Registered: Jan 2006
Location: Malaysia
Distribution: SuSe 9.3
Posts: 8

Rep: Reputation: 0
My Lilo/grub lost after installing Win Xp


My first partition is Win2003 Server.
Then I installed SuSe 9.3. Everything was ok and I managed to logon on both partition by using the LiLo/grub.

After that I installed Win XP in my third partiton. Then I realized that I cant logon to my SuSe any more. The Grub/LiLo is lost. I only can logon to WinXp and Win2003Server. I can see the linux partition by using Computer Management ( in Win XP).

How can I get back my lovely SuSe. I dont want to format or reinstall my SuSe.(If there is a way out).

Thank you.

Last edited by leenuk; 01-13-2006 at 02:21 AM.
 
Old 01-13-2006, 02:30 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
I don't know which boot-loader SuSE 9.3 was using, but you should
be able to get to the installed version of SuSE using the install-CD
as a rescue-CD. From there (if it's using lilo) all you need to
do is to run 'lilo' as root (and maybe adding XP to lilos menu
before running it - matter of taste and choice, of course ;}).

Not sure how grub is re-installed after it's been wiped out,
I think it might be grub-install ...



Cheers,
Tink
 
Old 01-13-2006, 03:01 AM   #3
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
This works only if your boot sector is on a seperate partition right? Because I thought all windows installs over write the master boot record. Please correct me if I'm wrong.
 
Old 01-13-2006, 03:04 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Happy to correct, there's no boot-sector partition, the boot-sector
is simply the beginning of the physical device. Yes, windows DOES
overwrite that, but no, the installed SuSE will still be able to re-
cover the loss. I've never tried to install windows after Linux,
though, and in a worst case scenario XP won't boot.


Cheers,
Tink
 
Old 01-13-2006, 03:28 AM   #5
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
In the installation manual for SuSE it says it may be useful to create a "boot-sector" (/boot) as a seperate partion to hold the kernel & boot mechanism. But I suppose partion or not it's a section of the beginning on the disk (at least 8M or one cylinder.)
 
Old 01-13-2006, 01:47 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
A /boot partition has nothing to do with the boot-sector. If SuSEs
manual says that they need to re-write it.


Cheers,
Tink
 
Old 01-13-2006, 01:49 PM   #7
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Thanks for clearing that up.
 
Old 01-13-2006, 02:19 PM   #8
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
The boot-record, or Master Boot Record (MBR), is the program that is found and loaded by your BIOS. Its job is to find and load the "boot loader," which may be LILO or GRUB or NTLDR.EXE.

Many OSes rewrite the MBR as part of installation.

Boot up a Linux LiveCD. From there it may simply be: grub-install /dev/hda.

See info grub.

---
Partitions, including your "boot partition," are physical subdivisions of hard-disk real estate. That's a separate fish from the MBR, because after all, disks can be partitioned but not "bootable."
 
Old 01-16-2006, 02:42 AM   #9
leenuk
LQ Newbie
 
Registered: Jan 2006
Location: Malaysia
Distribution: SuSe 9.3
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by micxz
This works only if your boot sector is on a seperate partition right? Because I thought all windows installs over write the master boot record. Please correct me if I'm wrong.
Thanks for replying, but I am not understand about the boot sector.

I installed Win Server 2003 and made 4 partitions (10 Gb each partition).
Then I installed SuSe, but somehow (might be my mistake) it was installed in the same partition with Win 2003. I realized that the first partition was resized during the SuSe installation.

Both Win2003 and SuSe were running smoothly. SuSe was holding the boot-loader at that time.

Then I installed WinXP in the 3rd Partition. I could not logon to my SuSe after the installation.

I can view the linux partition, by using Computer Management.

Could any one tell me how to recover from SuSe bootable CD.

Thanks.
 
Old 01-16-2006, 03:24 AM   #10
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 468

Rep: Reputation: 35
logon to suse 9.3

Quote:
Originally Posted by leenuk
My first partition is Win2003 Server.
Then I installed SuSe 9.3. Everything was ok and I managed to logon on both partition by using the LiLo/grub.

After that I installed Win XP in my third partiton. Then I realized that I cant logon to my SuSe any more. The Grub/LiLo is lost. I only can logon to WinXp and Win2003Server. I can see the linux partition by using Computer Management ( in Win XP).

How can I get back my lovely SuSe. I dont want to format or reinstall my SuSe.(If there is a way out).

Thank you.
Dear Linux user.

It's very simple to logon back to your lovely Linux. Just put in your Suse installation CD/DVD, and boot it. The Installer will appear, and there you will find a menu where you can install again the system, or boot it from harddisc (There are other options too). Here you can boot your linux. An advise here: next time install Linux the last time, after you installed other non linux op. systems. An other advice: for being sure that it will not happen again: make a boot floppy. How to make it? It's simple. Go to Yast, then start the bootloader config tool (and NOT the bootfloppies). And here select the installation destination: your floppy drive instead the MBR. And voalah, here's your rescue floppy. But, don't forget to reinstall your GRUB to MBR, otherwise you must use your floppy every time. Good luck!
 
Old 01-16-2006, 07:36 PM   #11
leenuk
LQ Newbie
 
Registered: Jan 2006
Location: Malaysia
Distribution: SuSe 9.3
Posts: 8

Original Poster
Rep: Reputation: 0
The Progress.

I used the SuSe linux Cd , there were 4 options, I choosed option Repair The Linux Installation.
It asked me if I want to repair the boot loader or not, then I answered YES.

The LilO/Grub is reinstalled and I can logon to my windows successfully. But I failed to logon the SuSe.

Here are the message:

..........
Start Unicode mode
fsck failed for at least one files system (not /).
Please repair manually and reboot.
The root file system is is already mounted rea_write

Give root password for login:
none:~#


What should I do next?

Thank you
 
Old 01-19-2006, 10:16 AM   #12
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 468

Rep: Reputation: 35
Well. You have to put in your installation CD/DVD, than select Installation and NOT rescue system. Now wait until the license agreement comes up, accept it of course, wait again, and now a menu with radio buttons will come up. Here you must choose Boot Installed system, and NOT Install new or Update existing OR repair. Now do as I wrote you before (In my last reply). Hope it will work.
 
Old 01-20-2006, 03:27 AM   #13
leenuk
LQ Newbie
 
Registered: Jan 2006
Location: Malaysia
Distribution: SuSe 9.3
Posts: 8

Original Poster
Rep: Reputation: 0
Hi there,

I have tried the pusrob suggestions. But it doesnt work.

here is what I see in my screen:

configuring serial port....
/dev/tty0 at 0x03f8 (irq=4) is a 16550A
Configured serial ports
Activating swap-devices in /etc/fstab..... [FAILED]
checking root filesystem..
fsck.1.36 (05 FEB 2005)

bread:Cannot read the block (2): (Invalid argument)
reiserfs_open: bread failed reading block 16

reiserfs_open: reiserfs superblock cant be found on /dev/hda4
Failed to open the failsystem

If the partition table has not been changed, and the partition is valid and it really contains a reiserfs partition, the superblock is corrupted and you nee to run this utility with
--rebuild-sb

Warning fsck.reiserfs for device /dev/hda4 exited with Signal 6.
fcsk.reiserfs /dev/hda4 failed (status 0x8). Run manually!

blogd:no message logging because /var file system is not accessible ehci-hcd ohci-hcd uhci-hcd usb-ohci usb-uhci wait 3 seconds for usb initialisation.....

fsck failed. Please repair manually & reboot. The root file system is currently mounted read-only. To remount it read-write do:

bash# mount -n -o remount,rw /



It is weird that I dont have any USB device attached on my PC. But why the usb error occured.


Thank you.

Last edited by leenuk; 01-20-2006 at 03:30 AM.
 
Old 01-21-2006, 11:42 AM   #14
pusrob
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 468

Rep: Reputation: 35
Dear leenuk

Now, I don't have any other suggestions, that can save your Linux and Win2k3 server system.
The only thing that I would do in this kind of situation:
Save all important data and settings you have (in all systems). Save it, to a different device, to a mobile rack or DVD. Now reinstall Your Win server, XP, and Linux. Remember: your linux must be the last installed sys all the time. It's much more flexible in multisys environment than Win. An other advantage here: You must not configure your grub, bec. the job will be done by yast. I suggest you this kind of partitioning (on a 40 GB HDD): hda1: Win Server (NTFS 3 or 4 GB), hda2: Win XP ( NTFS 3 or 4 GB), hda3: Linux (reiserfs, 10 GB), hda5 swap partition (300 Megs should be enough), hda7: the free space you have (FAT32, so you can access it with a read-write mode from linux, as you know linux can't write NTFS (you can cut it to half if you wish, and create a clone partition, like hda7 on hda8)). On the system partitions you should put the system stuff, like office multimedia players, all the stuff that belongs to that particular sys. The hda7 (and hda8) is good for data storage (it's great that you can write this/these from Lin, not like NTFS). Use Partition Magic 8 for partitionig, or download this: Ultimate Boot CD (UBCD33-full.zip, you can find it here: http://www.ultimatebootcd.com/download.html): it's freeware. This CD contains not only partitioning progs, but other useful stuff. You'll see on the home page.
Of course this is only my opinion, and only an opinion. What you gonna do: you deside.
 
Old 01-25-2006, 01:30 AM   #15
leenuk
LQ Newbie
 
Registered: Jan 2006
Location: Malaysia
Distribution: SuSe 9.3
Posts: 8

Original Poster
Rep: Reputation: 0
Ok. I will try it.

thank you
 
  


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
Installing Grub over LILO arpanetguru Linux - Software 3 01-02-2006 06:19 PM
Installing GRUB/Slackware 10 with Win 2k Pro Roblobob Linux - Newbie 6 09-30-2004 05:16 AM
lost access to win2k thru lilo &/or grub dwaynehoover Linux - Newbie 5 01-09-2004 05:12 PM
GRUB/LILO not installing... uranologist Red Hat 7 12-17-2003 08:16 AM
LILO/GRUB fail & Lost data pete_willis Linux - Newbie 2 11-15-2003 09:56 PM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration