LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-28-2011, 06:33 AM   #16
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229

First all your partitions are large enough to setup a 20 meg partition with no problems. To be on the safe side we should add the partition to sdb3 if you are now booting sda. Use your Gparted and make a new partition from sdb3.


Something to think about for the future is using one partition for / and one for /home,
and one for swap on larger distros. I noticed you have two swap partitions, you should only need one.I make / partition approx 12 gig and 10 for /home on larger distos then the 245 gig left I use for storing all my data which then is available to each one of my distros. I have limited myself to booting eight at present and four of them get ignored most of the time. I allowed for two smaller distros which each one is on 2 gig partiton.
 
1 members found this post helpful.
Old 08-28-2011, 09:56 AM   #17
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Original Poster
Rep: Reputation: 53
fdisk-l again
Quote:
fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4f234f23

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 8032 44032000 83 Linux
/dev/sda3 8032 13641 45056000 83 Linux
/dev/sda4 13641 19458 46718976 5 Extended
/dev/sda5 13642 19251 45056000 83 Linux
/dev/sda6 19251 19458 1660928 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d3a7b

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7295 58597056 83 Linux
/dev/sdb2 7296 14346 56637157+ 83 Linux
/dev/sdb3 14347 14474 1024000 83 Linux
/dev/sdb4 14474 60802 372127744 5 Extended
/dev/sdb5 14474 14602 1024000 82 Linux swap / Solaris

Disk /dev/sdc: 8004 MB, 8004304896 bytes
35 heads, 21 sectors/track, 21269 cylinders
Units = cylinders of 735 * 512 = 376320 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 1 21270 7816688 b W95 FAT32

One gig or bigger I always say so the grub primary partition is 1g.
Attached Thumbnails
Click image for larger version

Name:	Screenshot--dev-sdb - GParted.png
Views:	12
Size:	65.7 KB
ID:	7906  
 
Old 08-28-2011, 01:24 PM   #18
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
#Boot from your live ubuntu cd the following commands

sudo mkdir /mnt/sdb3

sudo mount /dev/sdb3 /mnt/sdb3

sudo grub-install --root-directory=/mnt/sdb3 /dev/sdb

#Now we need to build a grub.cfg file

sudo nano /mnt/sdb3/boot/grub

#grub.cfg

set default ="0"

set timeout =12

menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}

#Now save as grub.cfg and exit nano.

#Now we will see if everything works so far.

sudo rmdir /mnt/sdb3

sudo umount /dev/sdb3

#reboot and set sdb to be first boot in bios. If your windows #selection comes up it should #boot in 12 seconds or if you mouse #click it should start booting.

#If there are any problems just put sda to boot first in bios again.

Last edited by Larry Webb; 08-29-2011 at 07:23 AM.
 
1 members found this post helpful.
Old 08-29-2011, 07:27 AM   #19
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you read this recheck above, I had a couple of errors that I corrected.

1
Quote:
sudo grub-install --root-directory=/mnt/sdb3 /dev/sdb
2
Quote:
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
 
Old 08-29-2011, 06:07 PM   #20
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Original Poster
Rep: Reputation: 53
I'll repost

I'm trying to understand this before I do it because I want to learn about it.
Quote:
sudo mkdir /mnt/sdb3

sudo mount /dev/sdb3 /mnt/sdb3

sudo grub-install --root-directory=/mnt/sdb3 /dev/sdb

This looks like-

1- First making a mount point to the live disk.

2- Mounting the grub partition to the live disk.

Normally there will be a root directory so we would not have to make one but we have not made a directory in the grub partition yet.There is not a directory at all.
I need to create a directory there correct.
 
Old 08-29-2011, 07:00 PM   #21
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
sudo mkdir /mnt/sdb3 This is a directory used to mount the sdb3 partition.(may be named anything that you can remember, I used sdb3 because it is easy to remember.

sudo mount /dev/sdb3 /mnt/sdb3 This mounts the dir /mnt/sdb3 to /dev/sdb3.

sudo grub-install --root-directory=/mnt/sdb3 /dev/sdb This tells it to install grubs root directory to /mnt/sdb3 and write the master boot record of sdb.

After this operation the only file you will need to create is your grub.cfg.

Last edited by Larry Webb; 08-29-2011 at 07:03 PM.
 
1 members found this post helpful.
Old 08-30-2011, 11:25 AM   #22
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Original Poster
Rep: Reputation: 53
I got it done

List of (Junk)_Rescue disks that could not (grub-install)

1- Fedora 13
2- CentOS 6
3- Ubuntu 7.10
4- SystemRescue

I think not mounting them to an Installed O.S was the issue but a rescue disk should not have to.

Various errors of not doing simple things they should. I made the wrong directory and made a menu.lst and they would not remove it.Gave up and used Knoppix.
Knoppix did it but listed errors. I does not work though. It hangs at a blank screen.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-grub - File Browser.png
Views:	10
Size:	87.9 KB
ID:	7913   Click image for larger version

Name:	Screenshot-menu.lst [Read-Only] (1.0 GB Filesystem) - gedit.png
Views:	6
Size:	42.7 KB
ID:	7914  

Last edited by theKbStockpiler; 08-30-2011 at 11:34 AM.
 
Old 08-30-2011, 01:06 PM   #23
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Your distros all use grub legacy (1) not grub2. You will need to get a later version of ubuntu or say Linux Mint for grub2 or we can use grub legacy. The install directions are different.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub - multi OS boot hiteshmaisheri Linux - Software 3 01-15-2006 11:19 AM
multi-boot questions cwhh Fedora 4 09-18-2005 07:08 AM
multi-boot questions cwhh Fedora - Installation 4 09-17-2005 07:28 PM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 08:28 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:04 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
Open Source Consulting | Domain Registration