Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] grub/grub.conf dir & file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Tue Sep 16, 2014 7:03 pm    Post subject: [SOLVED] grub/grub.conf dir & file Reply with quote

At stage 10 - https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10

It states

Quote:
Although GRUB is now installed, we still need to write up a configuration file for it and place GRUB in our MBR so that GRUB automatically boots your newly created kernel. Create /boot/grub/grub.conf with nano (or, if applicable, another editor):

# nano -w /boot/grub/grub.conf


I understand that I must create the grub.conf file, but in my system the parent directory /grub/ also does not exist.
Does this highlight I may have missed something, or is this normal and the dir must also be created?

Thanks
_________________
k.


Last edited by Zelt on Sat Sep 20, 2014 3:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Sep 16, 2014 7:11 pm    Post subject: Reply with quote

if you used a separate boot partition and it was mounted at the time you ran 'emerge sys-boot/grub:0' /boot/grub will have been created and grub files will have been installed in /boot/grub. In order to access /boot and /boot/grub in the future the boot partition must be mounted. Remember that the root file system will have the mountpoint /boot in it whether or not the boot partition is mounted. If you perform a write to /boot with the boot partition not mounted the write will still occur but not on the boot partition.

run
Code:
 mount
to verify the boot partition is mounted
then run
Code:
ls /boot/grub
to verify grub files are installed
then run
Code:
nano /boot/grub/grub.conf
to edit the boot menu
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Wed Sep 17, 2014 12:07 am    Post subject: Reply with quote

DONAHUE wrote:
if you used a separate boot partition and it was mounted at the time you ran 'emerge sys-boot/grub:0' /boot/grub will have been created and grub files will have been installed in /boot/grub. In order to access /boot and /boot/grub in the future the boot partition must be mounted. Remember that the root file system will have the mountpoint /boot in it whether or not the boot partition is mounted. If you perform a write to /boot with the boot partition not mounted the write will still occur but not on the boot partition.

run
Code:
 mount
to verify the boot partition is mounted
then run
Code:
ls /boot/grub
to verify grub files are installed
then run
Code:
nano /boot/grub/grub.conf
to edit the boot menu


mount returns nothing

But I do not understand why this is happening. I have not turned off the computer since Chapter 1 of the official docs.

The docs informed me to mount precisely here (chapter 4)- https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=4#doc_chap6

I dont understand how they have unmounted when I didn't run umount.

If going into the chroot or some other cmd unmounts these/all partitions, why doesn't the docs explicitly state this.

Have I completely ruined this installation? (If I remember correctly I recall on another documentation I read in the past that this specific grub section must only be ran once.)


Update

I noticed I am in livecd init.d # which when running mount doesnt return anything.
When I exited init.d back into livecd gentoo #, and ran mount /dev/sda1,2, then mount, this time all mounts displayed correctly - whether they was mounted all along and running the mount command from livecd init.d # caused them not not show or whether they just remounted after my new mount cmds I do not know...

The docs state here to cd /etc/init.d/ - https://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=8#doc_chap2_sect3

They should explicitly state to cd <correct dir> out of /etc/init.d when not required - From what I have read it does not state this.


I'll continue with the install and brace myself, if it doesnt work i'll start all over.

Thanks for the help.

Update

Now I see that going back into cd /etc/init.d then runnning mount displays all mounts (including 10+ others which I assume auto mount). I do not know why when I ran it a min ago before my wall of text nothing showed, yet when I go out of this dir and back in, mount shows all...

:?: :? :?: :?
_________________
k.


Last edited by Zelt on Wed Sep 17, 2014 1:08 am; edited 7 times in total
Back to top
View user's profile Send private message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 281
Location: Canada

PostPosted: Wed Sep 17, 2014 12:14 am    Post subject: Reply with quote

mount returns nothing
If mount returned nothing, it means the partition probably isnt mounted.
Try:
Code:
# mount /boot

then $ ls /boot and $ mount should give you something
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Wed Sep 17, 2014 12:49 am    Post subject: Reply with quote

running

emerge sys-boot/grub:0

returns

Quote:
bash: emerge: command not found


Tried in /mnt/gentoo dir, and (chroot) livecd gentoo #.

Installation seems very fragile, one slip and the whole thing brakes down...
_________________
k.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Sep 17, 2014 1:26 am    Post subject: Reply with quote

if you were using sysresccd/usb booted to the xfce4 desktop and a network connection you could have the gentoo handbook open in a browser window while installing in an adjacent terminal window. This technique allows copy from the handbook; paste in the terminal; minimizing typos and loss of place.

emerge needs to be run from the chroot.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Wed Sep 17, 2014 1:36 am    Post subject: Reply with quote

DONAHUE wrote:
if you were using sysresccd/usb booted to the xfce4 desktop and a network connection you could have the gentoo handbook open in a browser window while installing in an adjacent terminal window. This technique allows copy from the handbook; paste in the terminal; minimizing typos and loss of place.

emerge needs to be run from the chroot.


I will download the sys version tomorrow, its not the first time I have been advised.

as for emerge, I did try from the chroot, i dont know why it returns not found.

I will restart everything tomorrow
_________________
k.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum