Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
...
"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.
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.