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 08-31-2012, 05:05 AM   #1
dissposablehero
LQ Newbie
 
Registered: Nov 2007
Distribution: Pinguy 12.04
Posts: 12

Rep: Reputation: 0
Can't boot into linux


Hi,

I installed Pinguy the other day on a clean hdd, this morning i shrank the partition that pinguy is on using Gparted from the live cd, created a new NTFS partition to install Windows back on to my machine. Now when my pc boots, it goes straight into windows, theres no option to boot into linux.

I searched the forum and other people have had a similar problem but the other way round.

Does anyone know how to fix this?

Thanks
 
Old 08-31-2012, 05:09 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Windows systems simple overwrite the MBR with their own boot manager when it is installed later, reinstalling grub from the live cd should fix it.

Regards
 
Old 08-31-2012, 05:21 AM   #3
dissposablehero
LQ Newbie
 
Registered: Nov 2007
Distribution: Pinguy 12.04
Posts: 12

Original Poster
Rep: Reputation: 0
Is there an option to do that somewhere or do i have to use the terminal? If terminal, do you know what i have to type in?
 
Old 08-31-2012, 05:27 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
try bcdedit of windows, but not so sure whether it will help.
 
Old 08-31-2012, 05:31 AM   #5
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
There is an app boot-repair app do it from the live cd, that is one way, or, from terminal a manual grub reinstall is another way to fix, try the app 1st.

Regards
 
Old 08-31-2012, 07:57 AM   #6
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 347

Rep: Reputation: 85
Quote:
Originally Posted by JJJCR View Post
try bcdedit of windows, but not so sure whether it will help.
Bcdedit will not help unless you know how to obtain the ID Windows is using for the Linux partition, which I have never been able to figure out how to do (at least on the two times I've tried).

However, disposablehero, there is a free program for Windows called EasyBCD that will do what you need. It basically just lets you edit the Windows boot loader from a GUI. That's the Windows option.

The Linux option is to install grub or lilo (also boot loaders), either to the Master Boot Record (letting it boot both Windows and Linux and hoping this works), or to the superblock of the Linux partition, leaving the Windows boot loader in place in the MBR.

Personally, I have had more success installing grub to the superblock in dual-boot situations, rather than having grub try to get along with Windows. But if you choose this option, you will still have to use EasyBCD to edit the Windows boot sequence, or the Windows boot loader will not know Grub is even there.
 
Old 08-31-2012, 08:00 AM   #7
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Quote:
Originally Posted by BloomingNutria View Post
The Linux option is to install grub or lilo (also boot loaders), either to the Master Boot Record (letting it boot both Windows and Linux and hoping this works), or to the superblock of the Linux partition, leaving the Windows boot loader in place in the MBR.

Personally, I have had more success installing grub to the superblock in dual-boot situations, rather than having grub try to get along with Windows. But if you choose this option, you will still have to use EasyBCD to edit the Windows boot sequence, or the Windows boot loader will not know Grub is even there.
Getting grub to load Windows is not difficult at all in my experience, with either grub legacy or grub2 - so I would advise the OP to install grub to the MBR, and then you can chainload Windows easily without having to use EasyBCD.

Warning: if you forget steps, you will only have your linux install to boot into until you fix it: so make sure your internet is set up correctly in linux, or you have another computer to use.
 
Old 08-31-2012, 08:00 AM   #8
dissposablehero
LQ Newbie
 
Registered: Nov 2007
Distribution: Pinguy 12.04
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks all for the help

I fixed it using ukiuki's suggestion. The boot fix app worked like a charm

Thanks again
 
Old 08-31-2012, 08:02 AM   #9
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
In that case, please mark the thread as 'SOLVED' (there's a link at the top of the page) and click 'Yes' next to 'Did you find this post helpful?' on ukiuki's post.

Thanks,
 
1 members found this post helpful.
Old 08-31-2012, 08:02 AM   #10
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Glad to help!
Don't forget to mark thread as SOLVED and consider giving some reputation.

Regards
 
  


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
Dual boot Linux Suse 10.0/Windows XP Pro, Linux non-boot novice-user LinuxQuestions.org Member Intro 1 05-29-2009 02:54 PM
Cannot boot up on Linux, have to boot onto Linux-nonfb after installing nvidia driver /home/kyle Linux - Newbie 6 09-15-2004 12:23 PM
dual boot - XP and Linux - Need to reinstall XP without effecting linux -LILO boot godofmind Linux - General 1 05-05-2004 09:13 AM
Linux Boot Floppy Went Bad on W2K-Linux Dual Boot rzward Linux - General 2 01-15-2003 11:52 AM


All times are GMT -5. The time now is 06:46 AM.

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