LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-01-2009, 05:52 PM   #1
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Rep: Reputation: 0
reloaded windows vista and now I have no access to linux - how do I reestablish it


I had a problem with windows vista and I reloaded it. Before reloading vista I had the option of either using vista or Linux. Now on boot up I go directly into vista. How do I re-establish the option of choosing what os system I want to use?
 
Old 11-01-2009, 05:59 PM   #2
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
You need to reinstall your Linux bootloader. Exactly how you do this will depend on the distribution, but if you boot from its installation CD you might find it under an option to 'reapair broken system' or similar.
 
Old 11-01-2009, 06:25 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Assuming you were booting both vista and your Linux installation with Grub, all you need to do is reinstall grub which entails entering 2-3 short lines in the grub menu.lst file. Which distribution of Linux are you using? You don't need to repair your system. Load the installation CD of Linux (post the version you are using here), open a terminal and enter the command:

fdisk -l (lower case letter L)

do this as root user. If you're using Ubuntu or derivative do: sudo fdisk -l, if you are using a different Linux distro, type su or su - to get to root, enter password.

Post the output here to get specific help

The reason this happened is because windows always overwrites the master boot record and does not ask users if they wish to do this nor inform users it is happening, AFAIK.
 
Old 11-01-2009, 08:05 PM   #4
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
linux version

I'm using linux mint gloria
 
Old 11-01-2009, 08:34 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
reinstall grub .
it is very well known that MS will over wright grub or lilo ( for tht matter ANY NON Microsoft bootloader )

"we are the Microsoft, resistance is futile . you will be assimilated . "

Last edited by John VV; 11-02-2009 at 02:05 PM.
 
Old 11-01-2009, 08:39 PM   #6
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
how do I reinstall grub?

please tell me in detail how I reinstall grub microsoft I know thinks it owns the computer world
 
Old 11-01-2009, 08:54 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Boot up from any live CD version of Linux, open a terminal (you will need to be "root", but that will happen automatically with most live CDs)

Let's assume that your /boot/grub is on /dev/sda3. sda3 to GRUB is hd0,2 (counts from zero)

In the terminal:
Code:
grub          ##starts the grub shell
root (hd0,2)    ## tells grub where /boot/grub is
setup (hd0)     ## puts grub on the mbr of  sda (drive #1)
Before doing this, it's good to run "fdisk -l" to determine how you partitions are being seen.
 
Old 11-02-2009, 07:58 AM   #8
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
posted sudo fdisk -l

device boot start end block id system
/dev/sda1* 1 37188 298711586 7 hpfs/ntfs
/dev/sda2 37515 38913 11236352 7 hpfs/ftfs
/dev/sda3 37189 37514 2618595 5 extended
/dev/sda5 37189 37492 2441848+ 83 linux-
/dev/sda6 37493 37512 160618+ 82 linux swap/solaris
/dev/sda7 37513 37514 16033+ 14 hiddenfat 16<32m

partition table entries not in disk order
also note that I tried to reload lenux when reloading vista failed I think I have to copies of linux now
 
Old 11-02-2009, 08:27 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
two copies?

According to your partition table, you have: (Listing them in the order on the disk)

NTFS 298 GB sda1
extended 2.6 GB, sda3, containing:
....linux 2.4 GB sda5
....linux swap 160 MB sda6
NTFS 11.2 GB sda 2
hidden FAT 16 MB sda7

First, how big is the disk? (fdisk -l shows this)
Second, 2.4 GB is too small for most Linux distros (and your swap is too small)

If you have lots of free space, then start over and give Linux a bigger partition. Otherwise, you'll need to re-size the main Windows partition to make more room.

With a large disk like this, I would set up as follows:

partition #1: Windows, 20GB
#2 Linux, 15 GB
#3 Linux swap, 4 GB, at the end
#4 Extended
#5 Shared data (can be formatted FAT, NTFS, or even ext3----there are drivers to allow Windows to read ext_) Make this ~100 GB to start

Leave the rest empty (unpartitioned) for future changes.
 
Old 11-02-2009, 03:00 PM   #10
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
disk size

the computer has a 320 gig hard drive partitioned with 20 gig for vista rebooting I don't know about partitions so please explain in detail I'm a little slow ( kidding) and this is new to me - just been back into computers after about 10 years
 
Old 11-02-2009, 03:00 PM   #11
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
P.S. thank you for helping
 
Old 11-02-2009, 03:13 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
It appears your Mint partition is on sda5 so use the Mint Install CD, let it load and open a terminal/konsole and enter:

sudo su (should be prompted for user password, enter passwd, hit Enter)
grub (should get grub prompt: grub>)
at the grub prompt enter:

root (hd0,4)
setup (hd0)
quit

I'm assuming Mint Gloria still uses grub legacy and not grub 2. You should see which when you enter grub at the command line. If it is grub 2, the above won't work.

If you are able to boot into Mint, check the /boot/grub/menu.lst file for the windows entry. Should be:

rootnoverify (hd0,0)
chainloader +1

Last edited by yancek; 11-02-2009 at 03:14 PM.
 
Old 11-03-2009, 03:05 AM   #13
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Yancek: did what you said.It now says Probing devices to guess Bios drives. This may take a long time. Its been over six hours - is this normal? should I terminate or still wait.

Pixellany: this sounds great but how do I modify these partitions.
 
Old 11-03-2009, 10:17 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Yancek: did what you said.It now says Probing devices to guess Bios drives. This may take a long time. Its been over six hours - is this normal? should I terminate or still wait.
Terminate.


Quote:
I'm assuming Mint Gloria still uses grub legacy and not grub 2. You should see which when you enter grub at the command line. If it is grub 2, the above won't work
Did you check this?

Just re-read other posts and looked at your fdisk output. Your window partitions take up too much drive space. If you only have that much space for Linux, I would suggest just using a Live CD to learn it or install something like Puppy Linux or Damn Small Linux. If you want to use Mint, I'd suggest following pixellany's suggestion.

Modifying partitions can be done with GParted which is a program that should be on your Mint CD. If not, just google "GParted" or "Parted Magic" and download. Parted Magic does the same thing. If you have problems, re-post with specifics.
 
Old 11-03-2009, 12:56 PM   #15
joecool19555
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
thank you for the help I can access linux now
 
  


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
kqemu in Windows Vista access is denied Sam Hobbs General 6 01-23-2009 02:06 AM
wanted to have suse 11 and vista both on my computer... I can't access vista now jstnc Linux - Newbie 4 09-14-2008 11:56 AM
Dual Boot, and then reloaded windows... bonito SUSE / openSUSE 8 04-13-2005 04:30 AM


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