Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix

Reply
 
LinkBack Thread Tools
Old 12-28-07   #1 (permalink)
Intel Overclocker
 
JerseyDubbin's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Dirty
Posts: 1,089

Rep: 63 JerseyDubbin is acknowledged by some
Unique Rep: 55
Trader Rating: 8
Default Restoring Grub and Adding Windows (or any other OS) to Grub Menu

First off, if you have a clean hard drive i recomend installing windows first then ubuntu. 99% of the time that will save you from having to do this.

Now if it is reversed and you installed grub first and now just windows loads there is a solution.

First we need to get grub back up and running as the bootloader
to do this you need to open the terminal

type 'sudo grub' (without the ')
enter
it should search bios or something of the sort so give it some time.

eventually you should get a prompt
grub>
now type 'root (hd0,0)'
hd0 being the disk your linux is on and 0 being the partition it is installed on

next is setting up grub on hd0

'setup (hd0)'

'quit'

now that grub is restored we need to add windows to the boot menu (if it is not already there)

back in terminal
'sudo gedit /boot/grub/menu.lst'
scroll down to the bottom of the text file where you see the menu listing for ubuntu or your linux distro

here we add the lines

title Windows
root (hd0,1)
makeactive
chainloader +1

again hd0 is the hard drive windows is on and 0 is the partition

DON'T FORGET TO SAVE THE FILE!!


Hope This Helps!
__________________
System: C2D Fun
CPU
E6750 @ 3.6
Motherboard
ASUS P5N-E SLI 650i
Memory
G.SKILL 4GB (2 x 2GB) DDR2 1000
Graphics Card
EVGA GTX260 216
Hard Drive
SAMSUNG SpinPoint 500GB
Sound Card
Onboard
Power Supply
corsair 750TX
Case
XION Onyx modded
CPU cooling
Megahalem Push/Pull
GPU cooling
Ghetto Modded
OS
Windows 7 x64, Ubuntu x64
Monitor
19in Hanns G
1 Million+ Folding at Home points

Last edited by JerseyDubbin : 12-28-07 at 01:59 PM
JerseyDubbin is offline   Reply With Quote
Old 09-05-08   #2 (permalink)
4.0ghz
 
error10's Avatar
 
intel nvidia

Join Date: Sep 2008
Location: Manchester, New Hampshire
Posts: 9,737
Blog Entries: 4

Rep: 1167 error10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a starerror10 is a star
Unique Rep: 708
Hardware Reviews: 1
Trader Rating: 45
Default

Generally I run the Linux installation as far as setting up all the partitions. I'll set up the partitions for Windows and Linux and write out the partition table. Then, reboot and install Windows into the already-created partition. After that, go back and finish installing Linux. Make sure you set GRUB to /dev/sda1 instead of /dev/sda in the installation. Your new dual-boot setup will then Just Work.
__________________
System: Underground
CPU
Core i7 920
Motherboard
ASUS P6T6 WS Revolution
Memory
3x2GB Corsair Dominator DDR3-1600
Graphics Card
EVGA 9800 GT SC 512MB
Hard Drive
4x MBA3147RC RAID5
Sound Card
Intel ICH10 HD Audio / ADI Codec
Power Supply
BFG ES-800
Case
Thermaltake Armor VA8003BWS
CPU cooling
TRUE Lapped + Scythe Slip Stream 1900
GPU cooling
Stock
OS
Fedora 10 x86_64
Monitor
HP w19b
3 Million+ Folding at Home points
error10 is offline Overclocked Account error10's Gallery   Reply With Quote
Old 12-13-08   #3 (permalink)
Overclocker in Training
 
Aardobard's Avatar
 
intel ati

Join Date: Dec 2008
Posts: 450

Rep: 81 Aardobard is acknowledged by some
Unique Rep: 75
Folding Team Rank: 141
Trader Rating: 0
Default

Quote:
Originally Posted by JerseyDubbin View Post
First off, if you have a clean hard drive i recomend installing windows first then ubuntu. 99% of the time that will save you from having to do this.

Now if it is reversed and you installed grub first and now just windows loads there is a solution.

First we need to get grub back up and running as the bootloader
to do this you need to open the terminal
I just had to re-install Windows and this is exactly where I get stuck. If only Windows loads, then there is no terminal. The only solutions I can think of are to either enter the bios and disable my windows boot drive, a separate physical drive, so the Ubuntu partition will boot, or reinstall Ubuntu to 'reset' the Grub. Is there a third way that I'm missing?

[Edit] the third way is to boot a live CD and perform the actions from there... :facepalms:

If there is a way, it might help someone who only has one physical drive.

Thanks in advance.

Signed,
Can't see linux thru the window
__________________
I got all my rep the old fashioned way. If you rep'd me and haven't received payment, rest assured, "the check is in the mail".

http://valid.canardpc.com/show_oc.php?id=485448

"What are the facts? Again and again and again - what are the facts? Shun wishful thinking, ignore divine revelation, forget what 'the stars foretell,' avoid opinion, care not what the neighbors think, never mind the unguessable 'verdict of history' - what are the facts, and to how many decimal places? You pilot always into an unknown future; facts are your only clue. Get the facts!"
- Lazarus Long

System: Four Flashing Fiends at 4
CPU
q9550 4.00MHz 1.3V
Motherboard
GA-EP45-UD3P
Memory
2x2GB Gskill 800MHz
Graphics Card
HIS HD4870 512MB
Hard Drive
WD 500 GB
Power Supply
Corsair HX550
Case
Custom CM690
CPU cooling
Noctua U12P
OS
XP 64 / Linux / Win7
Monitor
HP 19"W 1440x900
1 Million+ Folding at Home points

Last edited by Aardobard : 12-14-08 at 12:10 PM Reason: Found solution and added it
Aardobard is offline I fold for Overclock.net   Reply With Quote
Old 12-20-08   #4 (permalink)
Intel Overclocker
 
JerseyDubbin's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Dirty
Posts: 1,089

Rep: 63 JerseyDubbin is acknowledged by some
Unique Rep: 55
Trader Rating: 8
Default

Quote:
Originally Posted by Aardobard View Post
I just had to re-install Windows and this is exactly where I get stuck. If only Windows loads, then there is no terminal. The only solutions I can think of are to either enter the bios and disable my windows boot drive, a separate physical drive, so the Ubuntu partition will boot, or reinstall Ubuntu to 'reset' the Grub. Is there a third way that I'm missing?

[Edit] the third way is to boot a live CD and perform the actions from there... :facepalms:

If there is a way, it might help someone who only has one physical drive.

Thanks in advance.

Signed,
Can't see linux thru the window
lol you answered your own question the third way is to boot from the live cd and run the terminal from there. Goodluck!

System: C2D Fun
CPU
E6750 @ 3.6
Motherboard
ASUS P5N-E SLI 650i
Memory
G.SKILL 4GB (2 x 2GB) DDR2 1000
Graphics Card
EVGA GTX260 216
Hard Drive
SAMSUNG SpinPoint 500GB
Sound Card
Onboard
Power Supply
corsair 750TX
Case
XION Onyx modded
CPU cooling
Megahalem Push/Pull
GPU cooling
Ghetto Modded
OS
Windows 7 x64, Ubuntu x64
Monitor
19in Hanns G
1 Million+ Folding at Home points
JerseyDubbin is offline   Reply With Quote
Old 04-15-09   #5 (permalink)
4.0 GHz
 
My arms stuck's Avatar
 
intel ati

Join Date: Jan 2007
Location: New York
Posts: 370

Rep: 23 My arms stuck is acknowledged by some
Unique Rep: 22
Folding Team Rank: 575
Trader Rating: 0
Default

I'm having trouble figuring out which partition windows is on...I have two partitions, one is 37.5 GB which is my linux partition, and the other is 21GB which is my windows XP partition, but I'm not sure how to differentiate the two as in hd(0,0) terms.

Maybe if I upload a screen shot someone out there could drop a hint? While working under a livecd (Ubuntu 8.10), everywhere you look that it's shown, the 37.5 GB partition is listed first. Trying to use hd(0,1) now, but I figured I would at least ask. Thanks.
__________________
Quote:
Originally Posted by Licht View Post
Anyone who isn't paranoid about Google taking over the world isn't a real overclocker...
http://valid.x86-secret.com/show_oc.php?id=180417
4.5 Ghz Prescott on air cooling.^

System: My System
CPU
Q6600 G0 @ 3.0
Motherboard
Asus P5B Deluxe
Memory
Corsair 2GB PC6400
Graphics Card
Saphire 4890
Hard Drive
~750
Sound Card
X-Fi Extreme Gamer
Power Supply
PC P&C Silencer 610
Case
Antec 900
CPU cooling
Blu Orb II
OS
XP Home & Ubuntu.
Monitor
22 In. Westinghouse
My arms stuck is offline I fold for Overclock.net   Reply With Quote
Old 04-16-09   #6 (permalink)
Linux Lobbyist
 
SilentPixel's Avatar
 
intel nvidia

Join Date: May 2008
Location: /home/ZA/jhb
Posts: 342

Rep: 44 SilentPixel is acknowledged by some
Unique Rep: 32
Trader Rating: 0
Default

also while on a live cd, go to the terminal and type df -h that will show you your drives(and partitions), the size and where they're mounted.

that then tells you what partition to look at, if Linux is using grub to boot then your linux partition (lets use partition 6, so df -h will show sda7) will be hd(0,6) (if your drive is the first drive)
__________________
mybrute
myminicity
The Tux Club

Proud Member of the Linux Gaming Community

System: Etern4lDragon
CPU
Q8200 / 2.33GHz
Motherboard
Intel DP35DP
Memory
2 x 2GB Transcend Jetram DDR800
Graphics Card
8800GT
Hard Drive
250GB SATA
Sound Card
Onboard
Power Supply
Raidmax Volcano 530W
Case
Antec Sonata III
CPU cooling
ThermalRight Ultra 120 Extreme
GPU cooling
Stock
OS
Arch Linux 32bit
Monitor
Samsung 2494HS
SilentPixel is offline   Reply With Quote
Old 04-17-09   #7 (permalink)
4.0 GHz
 
My arms stuck's Avatar
 
intel ati

Join Date: Jan 2007
Location: New York
Posts: 370

Rep: 23 My arms stuck is acknowledged by some
Unique Rep: 22
Folding Team Rank: 575
Trader Rating: 0
Default

Okay I will be trying this when I get back from work today, thank you.
__________________
Quote:
Originally Posted by Licht View Post
Anyone who isn't paranoid about Google taking over the world isn't a real overclocker...
http://valid.x86-secret.com/show_oc.php?id=180417
4.5 Ghz Prescott on air cooling.^

System: My System
CPU
Q6600 G0 @ 3.0
Motherboard
Asus P5B Deluxe
Memory
Corsair 2GB PC6400
Graphics Card
Saphire 4890
Hard Drive
~750
Sound Card
X-Fi Extreme Gamer
Power Supply
PC P&C Silencer 610
Case
Antec 900
CPU cooling
Blu Orb II
OS
XP Home & Ubuntu.
Monitor
22 In. Westinghouse
My arms stuck is offline I fold for Overclock.net   Reply With Quote
Old 04-20-09   #8 (permalink)
Intel Overclocker
 
JerseyDubbin's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Dirty
Posts: 1,089

Rep: 63 JerseyDubbin is acknowledged by some
Unique Rep: 55
Trader Rating: 8
Default

did you get it working? sorry i haven't been around

System: C2D Fun
CPU
E6750 @ 3.6
Motherboard
ASUS P5N-E SLI 650i
Memory
G.SKILL 4GB (2 x 2GB) DDR2 1000
Graphics Card
EVGA GTX260 216
Hard Drive
SAMSUNG SpinPoint 500GB
Sound Card
Onboard
Power Supply
corsair 750TX
Case
XION Onyx modded
CPU cooling
Megahalem Push/Pull
GPU cooling
Ghetto Modded
OS
Windows 7 x64, Ubuntu x64
Monitor
19in Hanns G
1 Million+ Folding at Home points
JerseyDubbin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 02:46 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.14751 seconds with 8 queries