View previous topic :: View next topic |
Author |
Message |
Trotskey n00b
Joined: 16 Jul 2009 Posts: 38
|
Posted: Tue Jul 21, 2009 11:24 pm Post subject: [SOLVED] alternative to delete-reinstall? |
|
|
I just recently (unsucessfully) installed gentoo using the Minimal Install CD. The most obvious problem is that I messed up my GRUB conf.d file, though I wouldn't be suprised if I had messed a few more things up. But what I'm really after is:
Do I have to restart the whole process to fix my mistake at the end? Does a simple chroot fix everything? _________________ If it works the first time, there must be something terribly wrong with it.
Last edited by Trotskey on Wed Jul 22, 2009 3:40 pm; edited 2 times in total |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Tue Jul 21, 2009 11:51 pm Post subject: |
|
|
If all you did was mess up your grub.conf, but the actual installation of grub worked (the boot loader was correctly installed to the MBR of the right disk), then you don't even need to chroot. Just boot the install CD and mount your boot partition, then edit the grub.conf file. If you need to reinstall grub, then you'll need to follow the instructions in the handbook for mounting your partitions and chrooting. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
Trotskey n00b
Joined: 16 Jul 2009 Posts: 38
|
Posted: Wed Jul 22, 2009 2:25 am Post subject: |
|
|
yabbadabbadont>
no good. I entered:
Code: | #mount /dev/sda5 /mnt/gentoo/boot |
as you said, but when I go to open up grub.conf, I just get a blank document. I also tried chrooting, but it didn't recognize the command. _________________ If it works the first time, there must be something terribly wrong with it. |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Wed Jul 22, 2009 2:52 am Post subject: |
|
|
Then you did something wrong. Go back and re-read the handbook from the beginning through the chroot and grub sections. If it still doesn't work, start the install from scratch. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Jul 22, 2009 11:54 am Post subject: |
|
|
Hi, can you post this :
Also, can you tell us what partition do you use for your / and also for your /boot.
Finally, can you post the command that you use to chroot your box ? |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Wed Jul 22, 2009 12:20 pm Post subject: |
|
|
Trotskey, you need to mount and mkdir in order, something like this
installation doc wrote: | livecd ~ # mount /dev/sda3 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda1 /mnt/gentoo/boot
livecd ~ # cd /mnt/gentoo |
Then you should be able to chroot and/or edit your config files. |
|
Back to top |
|
|
Trotskey n00b
Joined: 16 Jul 2009 Posts: 38
|
Posted: Wed Jul 22, 2009 1:46 pm Post subject: |
|
|
ugh.. how lysdexic of me. I only mounted the /boot partition even though all the good stuff is was in the / partition. Thank you yabbadabbadont. I can now boot gentoo without a CD, but I still need the CD to fix a few things, such as the lack of an internet connection. _________________ If it works the first time, there must be something terribly wrong with it. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Jul 22, 2009 5:38 pm Post subject: |
|
|
Nice. |
|
Back to top |
|
|
|