Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.