Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-03-2010, 04:07 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 13

Rep: Reputation: 0
Partition Table question

Hello! I am trying to install Gentoo. Currently I have windows 7 on my primary Hard Drive.I decided to add in a second HDD that I got for free and use linux on that.I got through my entire install and at the end I accidently wrote grub to my second hard drive.When I rebooted it went straight to windows.So I have some questions. When installing to the secondary HDD does my boot partition and swap need to be on sda? or can they reside on sdb?Also I tried to re-issue the grub-install command and it said bash: command not found. How can I get grub to re-install? I tried to emerge it and same issue no command found.Do I need to redo the entire reinstall?My last question is If I have more then enough HDD space how much is too much for linux? Most people say 30 GB is all you need from what I have read but I assume 160 GB is going to go to waste? thank you for any help you can give.
Old 04-03-2010, 04:52 PM   #2
LQ Newbie
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Hi. When you boot your pc it will first run the program loaded in the "master boot record" (MBR) on the primary disk. This is probably the first disk on your machine, and since windows is installed in the MBR on that disk it will boot windows.
What you need to do is to install GRUB in the MBR on the first disk. GRUB's configuration files can still be on the second disk, but GRUB must be installed in the MBR on the first disk. You should then configure GRUB to either load linux from the second HDD or windows form the first HDD. You can install GRUB by booting with a live linux cd and run the linux command "grub-install".
Old 04-03-2010, 05:03 PM   #3
LQ Newbie
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
No boot/swap does not have to be on sda. You can boot up to your livecd that you used to install gentoo then mount your partitions
mount /dev/sdb3 /mnt/gentoo           
mount /dev/sdb1 /mnt/gentoo/boot
make sure to use your partition scheme

mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
this will chroot you into your install and you should be able to get the grub command again
as far as 160 gig being a waste that all depends what you are going to be using it for. You can make your home dir 30 gig and leave the other 130 gig to be used for whatever and just mount it were and when you want.
Old 04-04-2010, 10:10 AM   #4
LQ Newbie
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0

thank you for the responses.I had to pull out the second HDD someone wanted it so now I'm going back to a single drive configuration.So if you can I have another question when I end up getting my partitions set there are 6.the first has a small NTFS that is set as bootable, I was told that when windows 7 i installed it automatically creates this for recovery, but then why is it set as bootable? the second partition is the windows 7 itself.The third is linux boot, the fourth is extended, the fifth is my swap which I set to 2 GB as I was told it's needed to be as big as your RAM so when you go into sleep/hibernation that it can store it all. My last is the linux root.Should I only have one partition set as bootable or does each OS need to be labeled bootable? (I think just the linux boot partition needs to be right?) thank you again for reading and any helpful advice.


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
cloning linux partition to different laptop, invalid partition table dsollen Linux - Software 8 11-23-2009 09:50 PM
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 12:04 PM
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 11:48 AM
simple partition table question... breezewax Linux - General 5 10-21-2004 07:34 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration