Easter Bunny
Expert Member
*sorry for the extremely long post - i just wanted to give you an idea of what i have done so far*
so i'm new at linux.
work sent me a link so i can do online training for a+ and n+. i logged on and saw linux+ as well, so i decided to play with that too. after doing a quick google search, i found that linux+ is meant to be "distro neutral", but mostly they focus on red hat, so the general feeling was that centOS is a good one to play with while they teach you things.
so i downloaded centOS 6.5 to try it out.
!suddenly! i got an idea: get ubuntu, centOS and fedora (the ones i have heard the most of) and install them all on different partitions on my harddrive and bam! i can use whichever one i want.
so today i decided to install centOS first.
i fiddled with the partitions and then somewhere i made a mistake. i have a 250gb harddrive, so i created a 30gb partition for centOS and a 3gb "swap" partition. then i forgot to make a boot partition, so i did it all over again and forgot to make the boot partition first, so it ended up being the last one i created (300mb if i remember correctly). went through the next things and it asked me where i want to put the mbr, but i can't remember which one i picked (carry on reading and you'll probably be able to tell me).
did the installation and then was excited to reboot.
bollocks. i almost reinstalled, but then realised this would be a great opportunity to learn something.
i went online and searched for some grub tips. i found one that said i must boot with the dvd, select the repair option and then do a reinstall of grub. i did that, but got no joy.
then i found this guy's procedure. fiddling around with that i managed to find where i think my boot files are.
"ls" gave me three partitions on my harddrive:
hd0,1
hd0,2
hd0,3
"ls (hd0,3)/" gave me what looks like all the boot images that i need:
.vmlinuz-2.6.32-431.el6.x86_64.hmac
system.map-2.6.32-431.el6.x86_64
config-2.6.32-431.el6.x86_64
symvers-2.6.32-431.el6.x86_64.gz
vmlinuz-2.6.32-431.el6.x86_64
initramfs-2.6.32-431.el6.x86_64.img
"ls (hd0,1)/boot" is empty. this is the 30gb partition that centOS is installed on.
i read up a little on "grub" here and it seems fairly straight forward. on that site he has an example like this:
so i reckon for me, it's trying to look in (hd0,1)/boot for everything when in actual fact it is in (hd0,3)/ however, fixing that seems to be where i am getting stuck. i found a site that said i should mount the partition in a folder (which, as i typed this, suddenly makes sense, because on my android phone i always had a folder for "sdcard" or something like that) and then i can browse them, but when i get into bash and try do that, it tells me i need to specify the filesystem type.
in the other guy's procedure (first link above), his steps worked up until "insmod linux" - i got "file not found". i'm not sure where that file is located though. i imagine it's like dos. you either need to be in that folder to use a file, or you need to put down the whole path of it. what i'd really like to do is open the grub config file and see where it's looking for the OS to load.
i'm refusing to reinstall because i feel i have figured out what is wrong, but fixing it is where i'm stuck. i'm gonna post this and then give it another go to see if i can fix it. i'll check back later for any replies here.
so i'm new at linux.
work sent me a link so i can do online training for a+ and n+. i logged on and saw linux+ as well, so i decided to play with that too. after doing a quick google search, i found that linux+ is meant to be "distro neutral", but mostly they focus on red hat, so the general feeling was that centOS is a good one to play with while they teach you things.
so i downloaded centOS 6.5 to try it out.
!suddenly! i got an idea: get ubuntu, centOS and fedora (the ones i have heard the most of) and install them all on different partitions on my harddrive and bam! i can use whichever one i want.
so today i decided to install centOS first.
i fiddled with the partitions and then somewhere i made a mistake. i have a 250gb harddrive, so i created a 30gb partition for centOS and a 3gb "swap" partition. then i forgot to make a boot partition, so i did it all over again and forgot to make the boot partition first, so it ended up being the last one i created (300mb if i remember correctly). went through the next things and it asked me where i want to put the mbr, but i can't remember which one i picked (carry on reading and you'll probably be able to tell me).
did the installation and then was excited to reboot.
error: file not found
grub recovery>
bollocks. i almost reinstalled, but then realised this would be a great opportunity to learn something.
i went online and searched for some grub tips. i found one that said i must boot with the dvd, select the repair option and then do a reinstall of grub. i did that, but got no joy.
then i found this guy's procedure. fiddling around with that i managed to find where i think my boot files are.
"ls" gave me three partitions on my harddrive:
hd0,1
hd0,2
hd0,3
"ls (hd0,3)/" gave me what looks like all the boot images that i need:
.vmlinuz-2.6.32-431.el6.x86_64.hmac
system.map-2.6.32-431.el6.x86_64
config-2.6.32-431.el6.x86_64
symvers-2.6.32-431.el6.x86_64.gz
vmlinuz-2.6.32-431.el6.x86_64
initramfs-2.6.32-431.el6.x86_64.img
"ls (hd0,1)/boot" is empty. this is the 30gb partition that centOS is installed on.
i read up a little on "grub" here and it seems fairly straight forward. on that site he has an example like this:
title openSUSE 10.2
root (hd0,2)
kernel /boot/vmlinuz-...
initrd /boot/initrd.img-...
so i reckon for me, it's trying to look in (hd0,1)/boot for everything when in actual fact it is in (hd0,3)/ however, fixing that seems to be where i am getting stuck. i found a site that said i should mount the partition in a folder (which, as i typed this, suddenly makes sense, because on my android phone i always had a folder for "sdcard" or something like that) and then i can browse them, but when i get into bash and try do that, it tells me i need to specify the filesystem type.
in the other guy's procedure (first link above), his steps worked up until "insmod linux" - i got "file not found". i'm not sure where that file is located though. i imagine it's like dos. you either need to be in that folder to use a file, or you need to put down the whole path of it. what i'd really like to do is open the grub config file and see where it's looking for the OS to load.
i'm refusing to reinstall because i feel i have figured out what is wrong, but fixing it is where i'm stuck. i'm gonna post this and then give it another go to see if i can fix it. i'll check back later for any replies here.