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 - 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 08-19-2011, 08:05 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
creating separate boot partition, issues


Hello, i got my new Thinkpad x220, the other day and am now trying to set it up the way i want it. I want a separate boot partition, a shared data partition which will be mounted in home, the swap and root partitions for each distro.
Anyways, i currently have no os installed. I have deleted everything with gpart. I am trying to setup the boot partition with grub1, while in gpart, but i'm having issues. I tried following some instructions that went like this:

"mount /dev/sda1 /mnt/mnt (I made a mnt directory in mnt, as this command wouldn't work other wise)
cd /mnt/mnt
mkdir -p boot/grub
cp /usr/lib/grub/i386-pc/* /mnt/mnt/boot/grub
grub
root (hd0,0)"

The last command gives out the message,
"Filesystem type is ext2fs, partition type 0x83"

googleing it, the gentoo wiki says
Quote:
First of all make sure that you changed root(hd0,0) and setup (hd0) according to your systems specifications.

It may also be possible that grub uses other numbers for your drives than your kernel. So although it may be hda it could be that it is not hd0. However usually this is not the case.
I am pretty sure that my boot partition i had made is hd0,0. It's the first partition on my only hard drive. It's a ssd if that makes a difference.
Just to make sure, i tried the command,
Quote:
find /grub/stage1
which produced "Error 15: File not found"
The Gentoo wiki again, says,
Quote:
Solution - Initial Configuration

This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

Frequently, the error notes a missing kernel image file. Make sure that the file it is referring to exists on your boot partition.

To find out the exact name of your kernel, boot from the installation cd, mount your root and (if applicable) boot partition. Next, chroot into your Gentoo system and do a listing of the available files to see what kernel images you have available:
(for the record, i am not installing Gentoo, it just happens to have very good documentation)

I have looked at several 'separate boot partition' instructions, and i didn't see anything about installing a kernel in these. I have been busting my brains over this for the last few hours this morning and last night. I have tried unmounting the partition then trying them commands too, but that was also unsuccessful. I have been getting more and more frustrated and it doesn't help that my girlfriend i cracking it because i'm spending so much time on the computer, GOSHH!. So any help would be greatly appreciated and thankyou to all who were patient enough to read this entire message.
 
Old 08-19-2011, 09:01 PM   #2
gammahermit
Member
 
Registered: Apr 2010
Distribution: Arch
Posts: 51

Rep: Reputation: 6
Installing grub is the last step and is handled by the install cd, you don't have to do it manually. Boot into the install cd for the distro you want to install first. It will have the utilities to setup the partitions and format them. Create all the partitions you need.

While doing that you also tell it what the partition is for e.g. swap, boot, home, var, etc. Then it'll copy all the files into the right partition and install grub to the mater boot record or to one of the partitions. Which ever you choose.
 
Old 08-19-2011, 09:04 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Knightron View Post
The last command gives out the message,
"Filesystem type is ext2fs, partition type 0x83"
This is an informational message, not a problem. In fact, if you don't get this message, then there is a problem.

Presumably the instructions say to "setup (hd0)" next - have you tried that ?. After making *sure* that ssd is hd0 of course.
 
Old 08-20-2011, 01:50 AM   #4
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hello, gammahermit, i wanted to do it manually, so i can get my partition setup exactly the way i wanted. Anyways, thankyou syg00, perhaps i should have tried the obvious, but instead i just assumed that that message was an error because i had been formatted in ext3 earlier, not ext2. either way, following the next step in the instructions which was setup, has worked and now i have my independent boot loader, thank you.
 
Old 08-20-2011, 02:23 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Ted tends to use ext2 as a generic name for all his derivatives, you will see this often with tools like fsck.
 
Old 08-20-2011, 03:34 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by Knightron View Post
...
"mount /dev/sda1 /mnt/mnt (I made a mnt directory in mnt, as this command wouldn't work other wise)
cd /mnt/mnt
mkdir -p boot/grub
cp /usr/lib/grub/i386-pc/* /mnt/mnt/boot/grub
grub
root (hd0,0)"
...
I have a problem here, should it not be (if /dev/sda1 = /boot and /dev/sda2 = / )
Code:
mount /dev/sda2 /mnt/mnt
mount /dev/sda1 /mnt/mnt/boot
because the boot-directory exists in any Linux filesystem and you'll have to mount the boot-partition in /boot if you want to use it. And within a chroot-environment (where / is mounted to /mnt/mnt) you'll need to have mounted the bootpartition to /mnt/mnt/boot
But it's possible that I didn't get what you really want to achieve.

Markus

Last edited by markush; 08-20-2011 at 05:00 AM.
 
Old 08-20-2011, 06:22 AM   #7
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
@markush, i wanted a separate boot partition with grub, which ultimately will chain boot to each distro which also have a boot loader inside. for example, i boot my computer, and it boots grub, which boots grub2, which boots Debian. The advantage of this is, if i screw up my boot files on a distro, i can still access my other distros from the first bootloader, and perhaps fix the problem from there.
 
  


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
[SOLVED] Boot from a separate external partition? lozontheweb Linux - General 3 11-15-2010 05:45 AM
Dual boot, two HDs. Separate /boot partition advisable? mailforbiz Ubuntu 3 06-14-2007 10:15 AM
/boot separate partition energiya Linux - General 7 03-27-2007 03:18 PM
[SOLVED] Moving /boot to separate partition and using 'grub' to boot eldiener Linux - General 4 11-28-2006 08:01 PM
[SOLVED] Creating and booting from a separate /boot partition eldiener Linux - General 5 11-12-2006 06:13 PM

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

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