There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Windows borked linux

Reply  
Thread Tools
Marfin's Avatar
Junior Member with 9 posts.
 
Join Date: Dec 2007
Location: USA
Experience: Beginner
11-Jan-2008, 06:54 AM #1
Exclamation Windows borked linux
I've just re-installed my windows after failing to fix it, and everytime I do this it writes over the booty-thingy part (if someone knows the proper term please tell me) so now it just boots straight into windows instead of going into the screen where I choose which OS to use.

Is there a way to fix this without having to re-install suse?

_________________
He who asks is a fool for five minutes, but he who doesn’t ask remains a fool forever. Chinese proverb
arochester's Avatar
Member with 453 posts.
 
Join Date: Jan 2007
Location: Scotland
Experience: Intermediate
11-Jan-2008, 07:24 AM #2
It's called the MBR (Master Boot Record).

Windows can be very greedy and will want to take over all of the Hard Drive.

Have a look at "The definitive dual-booting guide: Linux, Vista and XP step-by-step" on http://apcmag.com/node/5162/
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
11-Jan-2008, 12:02 PM #3
When you are able to reboot Linux, you can save the MBR on your disk or disks if you use different disks for each OS:

As root, create a subdirectory to hold the MBRs on your Linux disk, and if this kind of thing happens in the future, you would be wise to either download and burn a Linux Live CD to fix the problem as I will show you how I did it in the past.

Let's assume you create, /root/MBRs as a subdirectory in your Linux root home account, and that you use different disks for Windows vs Linux - if you only have one, it will be obvious what to do as there will only be one MBR. That said, let's save some MBRs, after first identifying the two disks with MBRs. Note: if you only have one disk with both OSes, then do it anyway to identify the disk device name for the commands that follow:

# fdisk -l
assume it identifies /dev/sda and /dev/sdb (SATA drives) with Windows on /dev/sda and Linux on /dev/sdb, and that we are booted into the Linux OS.

To copy the MBR on the Linux disk and save it on the Linux disk:
# dd if=/dev/sdb of=/root/MBRs/sdbmbr bs=512 count=1
To copy the MBR on the Windows disk and save it on the Linux disk:
# dd if=/dev/sda of=/root/MBRs/sdambr bs=512 count=1

To restore the Windows MBR from the Linux OS (if you can boot from it and not Windows):
# dd if=/root/MBRs/sdambr of=/dev/sda bs=512 count=1

When using a Live CD environment (assuming 1GB RAM) it will build a faux filesystem in RAM for / and all of its normal subdirectories. Most likely the Windows disk which is the first in disk order (usually) is the MBR which has been trashed - but, how do you really tell?

Create a directory in which to save the current MBRs in the Live CD file system again as root:
Note: this is not on the Linux disk, but in RAM
# mkdir /root/MBRs

Now, Save the current (probably trashed) Window's MBR in /root/MBRs
# dd if=/dev/sda of=/root/MBRs/sdambr bs=512 count=1

Compare it with the already saved sdbmbr on the Linux disk:
# mkdir /mnt/sdb
# mount -t ext3 /dev/sdb /mnt/sdb
# diff /mnt/sdb/root/MBRs/sdambr /root/MBRs/sdambr

If they have no difference, you are ok there, however, if there is a difference you must replace the Windows MBR with it's original to get back the OS choice menu, as follows:

# dd if=/mnt/sdb/root/MBRs/sdambr of=/dev/sda bs=512 count=1

Most often it is the Windows MBR which becomes trashed, not the Linux MBR (if there is one).

Alternatively, it is advisable to save the MBRs off on another medium, like a floppy diskette or a CD if you have such device drives. Note, however, that floppy disk drives are usually less reliable than CD drives.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
net_newsy's Avatar
Computer Specs
Senior Member with 940 posts.
 
Join Date: Jan 2004
Experience: Intermediate
15-Jan-2008, 02:45 PM #4
download SGD (Super Grub Disk)
http://geocities.com/supergrubdisk/


reinstalled Windows and Linux no longer boots...

-boot your SGD floppy/USB/CD
-English Super Grub Disk
-Gnu/Linux
-Fix Boot of Gnu/Linux(GRUB)
-select your Linux partition
-message, 'SGD has succeeded'
-reboot
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:08 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.