LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-09-2017, 06:38 PM   #1
Discgolfkid
LQ Newbie
 
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
Unhappy Trouble launching Linux from on a dual boot hard drive


I have a nearly 6 year old Lenovo y500 on which I installed Ubuntu Linux on last year. It worked fine and every time I started my laptop I would get a purple screen where I could choose Linux or windows to launch. I recently had to remove my hard drive and now that I put it back in my computer only launches in Windows. I am a newbie with Linux and computers in general. I checked the BIOS and it says Linux is there. I just can't get it to launch. Whenever I start my computer I don't get the same purple screen anymore. Any help?
 
Old 10-09-2017, 07:20 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Mind telling us why you removed the disk ?. Was there problems with the machine ?. Was the motherboard reset ?.
Try hitting F12 during boot, and see if a boot menu appears - try selecting Ubuntu from there.
 
Old 10-16-2017, 03:19 AM   #3
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Quote:
Originally Posted by Discgolfkid View Post
Whenever I start my computer I don't get the same purple screen anymore. Any help?
Ok, that purple screen is GRUB, the GRand Unified Bootloader. It is installed in the MBR of your hard disk and it can boot both Windows and Linux distros. The thing I don't understand is how it got somehow replaced by the Windows bootloader. Anyway, to be able to get that dear purple screen again, you need to reinstall GRUB in the MBR.

So, get a bootable USB/CD/DVD of your favourite Linux distro and run it in live mode. Then you mount the partition of your Linux distro, chroot into it and install GRUB:
Code:
# make a mount point
sudo mkdir /mnt/ubuntu

# mount Ubuntu partition (replace X with partition number, e.g. /dev/sda3)
sudo mount -t ext4 /dev/sdaX /mnt/ubuntu

# mount a couple of necessary filesystems
sudo mount -t proc /proc /mnt/proc
sudo mount --rbind /sys /mnt/sys
sudo mount --rbind /dev /mnt/dev
sudo mount --rbind /run /mnt/run

# chroot into Ubuntu filesystem
sudo chroot /mnt/ubuntu env -i HOME=/root PATH=/usr/bin:/usr/sbin:/bin:/sbin bash --login +h

# install grub
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda

# exit chroot environment
exit
All the best.
 
  


Reply



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 but can't see linux hard drive from XP battlezonehawk Linux - General 15 06-10-2007 03:01 PM
Can I dual boot if Linux is installed to a 2nd hard drive? Traviswf Linux - Newbie 9 08-27-2006 01:46 AM
How to dual boot Suse linux and XP with only recovery disks and one hard drive Jonnyk429 Linux - Newbie 1 02-09-2006 02:51 PM
Dual boot win xp and linux on second hard drive metallicafan_316 Linux - Newbie 3 10-06-2005 09:38 PM
how do i install linux to second hard drive and dual boot to my first keeisha Linux - Newbie 1 11-29-2001 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:54 PM.

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
Open Source Consulting | Domain Registration