LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2012, 07:11 PM   #1
ELABCYBER150
LQ Newbie
 
Registered: Dec 2012
Posts: 11

Rep: Reputation: Disabled
I can't access Linux anymore after having reinstalled Windows in Dual Boot mode


Hello, Thanks for all the input about where to start with Linux, i installed the Ubuntu along side the windows xp pro 32 bit. on the start up i allays got the option to choose what OS To Boot From, but i had to Re install the windows, did not delete or format the partition where Ubuntu is installed, but i don't get the option to boot to Linux or xp anymore, the system starts up automatically to xp, do i need to re install the Ubuntu? or is there a way to get back the options to choose the OS on start Up? I appreciate the help. thanks.
 
Old 12-28-2012, 10:22 AM   #2
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Rep: Reputation: 15
Hi!
Please boot from your live Linux (which distribution?), start a Terminal / Konsole and run
Code:
sudo su
to get admin rights; afterwards
Code:
parted -l print
or, if no output:
Code:
fdisk -l
Important: in both cases "l" is a lowercase "L" like list.
And
Code:
uname -a
and
Code:
cat /etc/*{version,release}
Hint: Please
copy and paste the commands into the Terminal;
outputs: Use code tags (last but one symbol '#') - copy and paste the output between the 2 pairs of [ ] [ ].
 
Old 12-28-2012, 11:03 AM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Re Installing GRUB

You will need to re install GRUB using your install CD or flash drive. I am attaching the instructions on how to do that in a PDF file, read them and understand them before.

The whole process is done through the command line so it will be fun.

Good luck to you
Attached Files
File Type: pdf GettingStartedwithUbuntu2010.04.pdf (47.5 KB, 69 views)
 
1 members found this post helpful.
Old 12-28-2012, 11:06 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
First, what's happened? When you start the computer, the BIOS looks to the Master Boot Record at the beginning of the disk to find where the operating system should be loaded from. When you installed Ubuntu, it set the MBR to point to its own bootloader, Grub, and set that up to give you a choice. When you re-installed Windows, it rewrote the MBR to use the Windows bootloader, and that doesn't give you a choice.

So, how do you get Ubuntu back? Boot up from your Ubuntu live disk and follow the instructions here:
https://help.ubuntu.com/community/Boot-Repair
 
1 members found this post helpful.
Old 12-28-2012, 07:08 PM   #5
ELABCYBER150
LQ Newbie
 
Registered: Dec 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks to all for helping, about how to get the option to choose the OS on the Boot Process, i got it Back!! I'm not well command implementer get, i tried with commands but the system ask for administrator user, so i tried the other way, thanks to DavidMcCann Senior Member i downloaded the ISO Boot Repair Disk
fallowed some instructions from the disc and i got it fixed. my system is UBUNTU 12.04 LTS the windows is xp pro.here is the link if anybody else needs to fix the same problem i got in to, after re installing Windows

https://help.ubuntu.com/community/Boot-Repair

http://sourceforge.net/projects/boot-repair-cd

/files/
 
1 members found this post helpful.
Old 12-28-2012, 07:38 PM   #6
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
It is good to hear you fix it. One way or another the important thing is that is working
 
Old 12-28-2012, 08:03 PM   #7
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
You can also repair your MBR like this.

Boot live cd.

mount file system to /mnt

Quote:
sudo mount -t auto /dev/sdxx /mnt

sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc

sudo chroot /mnt

sudo update-grub

exit

sudo umount /mnt/sys
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt

sudo reboot
there is another way you can do it as well which is a bit less work

Quote:
sudo mount /dev/sdxx /mnt
sudo grub-install --root-directory=/mnt /dev/sdx # sdx is the drive your install to. On my system it will be --root-directory=/mnt /dev/sda
sudo umount /mnt
reboot
I know you got it fixed the easy way I just wanted to give you some alternitives just incase your way fails or some others to try.
 
1 members found this post helpful.
Old 12-28-2012, 10:25 PM   #8
ELABCYBER150
LQ Newbie
 
Registered: Dec 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Got It, Thank You So Much. You Power Users Rock!!!
 
  


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 - MBR - reinstalled windows centguy Linux - Software 11 04-09-2008 12:49 AM
Linux dual boot gone since i reinstalled windows mossy464 Linux - Newbie 5 03-25-2008 01:28 PM
Reinstalled Win XP and repaired Grub, now I can't boot Linux or Windows. Please help. MegaSvensk Linux - Newbie 27 10-13-2007 05:12 PM
reinstalled windows in dual boot,,,grub disappeared,,,help ace.adi Linux - Newbie 3 03-18-2007 11:46 AM
Reinstalled Windows 98 lost linux dual boot llefty Linux - Newbie 0 08-01-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 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