Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A little help please
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
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 11:21 am    Post subject: A little help please Reply with quote

Hi
I think I have done pretty well so far @ 90% transferring Gentoo from the Live DVD to Hard disk using a 'Boot into the LiveDVD' Tutorial but I am stuck at the last section.
""Copy kernel image and initramfs from the LiveDVD to your new system
mkdir -p /mnt/cdrom/
mount /dev/cdrom /mnt/cdrom/
cp /mnt/cdrom/boot/gentoo /boot/kernel
cp /mnt/cdrom/boot/gentoo.igz /boot/initramfs""
After entering ‘mount /dev/cdrom /mnt/cdrom/’ I get the following error
Mount : block device /dev/sr0 is write protected, mounting read only.

Any pointers please
John
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Tue Mar 31, 2015 11:48 am    Post subject: Re: A little help please Reply with quote

Hi,

jbvideo wrote:
Hi
After entering ‘mount /dev/cdrom /mnt/cdrom/’ I get the following error
Mount : block device /dev/sr0 is write protected, mounting read only.

Any pointers please
John


It just means you cannot write to it.
It should be mounted anyway.

You can check using
Code:
ls /mnt/cdrom

and see if the content of the cd is visible...

Alex.
Back to top
View user's profile Send private message
dab_s_bad
n00b
n00b


Joined: 08 May 2008
Posts: 54
Location: Toledo City, Cebu, Philippines

PostPosted: Tue Mar 31, 2015 2:09 pm    Post subject: Re: A little help please Reply with quote

jbvideo wrote:
Hi
After entering ‘mount /dev/cdrom /mnt/cdrom/’ I get the following error
Mount : block device /dev/sr0 is write protected, mounting read only.

Any pointers please
John

follow-up with your "problem"
1. this is just a warning not an error.
2. "WHAT" is the actual problem?, what are you trying to accomplish? or you wanting to "write" to /mnt/cdrom?
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 2:39 pm    Post subject: Reply with quote

Hi
Many thanks Guys for getting back me, all help appreciated as you say it's not a problem and I don't want to write to the CD/DVD.
I have now moved on to the last part,
Configure and install GRUB
File: nano -w /boot/grub/grub.conf
default 0
timeout 30
title Gentoo Linux
root (hd0,0)
kernel /boot/kernel real_root=/dev/sda3 vga=791 splash=silent,theme:livecd-12.0 console=tty1 quiet
initrd /boot/initramfs
grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

I have edited as shown and saved it but not sure it has gone to the boot/grub hard drive.
The hard drive won’t boot up after a restart without the DVD.
If I restart again with the Live DVD is there a way in the terminal to view the Grub.conf file on the hard disk?
jb
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Tue Mar 31, 2015 3:20 pm    Post subject: Reply with quote

Did you follow this page ?

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Default:_Using_GRUB2

using :

Code:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub/grub.cfg


( you say you moved to the last part).
Can you use the 'code' layout for code, on your above mail it is unclear what is the content of the file ?
( i.e. nano is the editor, so that is a command on the commandline, but the lines after that should be the content of the file, but not the grub> part....).
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 536

PostPosted: Tue Mar 31, 2015 4:00 pm    Post subject: Reply with quote

lexflex wrote:
Did you follow this page ?

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Default:_Using_GRUB2

using :

Code:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub/grub.cfg


( you say you moved to the last part).
Can you use the 'code' layout for code, on your above mail it is unclear what is the content of the file ?
( i.e. nano is the editor, so that is a command on the commandline, but the lines after that should be the content of the file, but not the grub> part....).


I think he's on grub:0. He did say grub.conf
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 4:18 pm    Post subject: Reply with quote

Thanks guys,
In the earlier post I used nano-w /boot/grub/grub.conf which showed the a basic grub.conf with all the lines # out.
I then edited it to that shown in my post and saved it but not sure if or where it save it to so Gentoo will not boot from the Hard disk at present.
@ mrbassie
Not followed that page.
jb
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Tue Mar 31, 2015 5:23 pm    Post subject: Reply with quote

jbvideo wrote:

I then edited it to that shown in my post and saved it but not sure if or where it save it to so Gentoo will not boot from the Hard disk at present.
jb


You say "Gentoo will not boot" , but does grub boot to the grub-menu, or does that not work either?
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 6:18 pm    Post subject: Reply with quote

lexflex wrote:
jbvideo wrote:

I then edited it to that shown in my post and saved it but not sure if or where it save it to so Gentoo will not boot from the Hard disk at present.
jb


You say "Gentoo will not boot" , but does grub boot to the grub-menu, or does that not work either?

Hi
Got a little further now, I get the (Grub>) on screen at the hard disk boot up but when typing boot I get 'Error 8 : Kernel must be loaded before booting.
I think the grub.conf file is not saving to the hard disk.
When in the Terminal (after booting from the LiveDVD) I am not sure how to find/check/look or edit the grub.conf file on the hard disk (hd0?), as I have only started using Linux this week but I think it should be on hd0 in boot/grub. I only using 2 devices on the PC, for this, a hard drive and a cdrom.
jb
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 354
Location: the Netherlands

PostPosted: Tue Mar 31, 2015 6:45 pm    Post subject: Reply with quote

The grub.conf should be written to the mbr when you issue the setup command.
Is the gub.conf written after editing with nano ?
You can check using:
Code:
cat /boot/grub/grub.conf


You should now see the input of the file you just created using nano.
If so, re-run the setup step.

As a side-note: is there any specific reason why you use the old grub and didn't follow the handbook ?
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 8:16 pm    Post subject: Reply with quote

Hi
The grub file shows correctly after using nano then your code to view it but not correctly after rebooting from the livedvd, so I assume its looking at the DVD's unsaveable version and not the hard disk version?
As the side note I am using the link below as I found it reasonably easy to follow but I would appreciate anything that would be an improvement. I may have to try it again from scratch, I do have the time and patience as I am at retirement age so no work place to have to got to.
http://gentoo-en.vfose.ru/wiki/Install_LiveDVD_12.1_to_hard_disk_drive
jb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Tue Mar 31, 2015 8:51 pm    Post subject: Reply with quote

jbvideo,

The
Code:
Grub>
prompt means that the machine has loaded grub but grub cannot find its config file.

If you type
Code:
root (hd0,0)
kernel /boot/kernel real_root=/dev/sda3 vga=791 splash=silent,theme:livecd-12.0 console=tty1 quiet
initrd /boot/initramfs
at the grub prompt, the system should boot, or you will move on to your next Gentoo learning experence.

As you are copying the liveDVD to your HDD. you will have grub legacy.
The normal setup is to have a symlink called menu.lst (thats a lower case L, not a digit 1) that points to grub.conf.
Not all filesystems support symlinks. If your /boot is on a vfat filesystem, you don,t have any symlinks.

Copying the DVD to your HDD is a very bad thing. It will give you likewhoas Gentoo, not yours.
It will give you a 2012 Gentoo which will be a wonderful educational experience to update. You get heartbleed and shellshock for free.
Mostly, it deprives you of the skills you will need to maintain your Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Tue Mar 31, 2015 9:37 pm    Post subject: Reply with quote

Thanks for your valued input NeddySeagoon, I have followed your instructions and after entering the long kernel/boot line I get error15: 'File not found'.
After the initrd /boot/initramfs line I get error19: 'Linux kernel must be loaded first' so I think I need a rethink or restart from fresh, after more reading but not going to give up yet.
jb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Tue Mar 31, 2015 9:56 pm    Post subject: Reply with quote

jbvideo,

Lets break it down into stages. Its actually quite promising. error15: 'File not found'. , weans that grub could not find the file called kernel, at this point.
Code:
kernel /boot/kernel

You don't need the
Code:
vga=791 splash=silent,theme:livecd-12.0 console=tty1 quiet
part to get started. That provides the pretty splash screen on boot.

All you need to get going is
Code:
root (hd0,0)
kernel /boot/kernel real_root=/dev/sda3
initrd /boot/initramfs
However, we know that kernel /boot/kernel fails. So ... Type this much
Code:
root (hd0,0)
kernel /boot/
and press the tab key. Grub will list the files it can see. Type the name of your kernel file if you can spot it, then contine with the rest.

If this bit, from your first post worked,
Code:
mkdir -p /mnt/cdrom/
mount /dev/cdrom /mnt/cdrom/
cp /mnt/cdrom/boot/gentoo /boot/kernel
cp /mnt/cdrom/boot/gentoo.igz /boot/initramfs
then your kernel is indeed called kernel.
Keep in mind that *NIX is case sensitive, so Kernel <> kernel. The capitalisation must match.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Wed Apr 01, 2015 5:18 am    Post subject: Reply with quote

@Neddy
Wow, thanks, I will get back to you, when I have got stuck into it, appreciate your experience and valued learning curve.
jb
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Wed Apr 01, 2015 8:30 am    Post subject: Reply with quote

@Neddy
Update, Success after trying your check codes I could confirm that the kernel was not being found or not asked to be loaded so I backtracked, in fact I started from scratch which only took me an hour. The main thing is I have gained some experience from this exercise both from yourself and the other guys who gave input. I next intend to look at the Symlink setup you mentioned. As there are so many tutorials on this have you a recommended or a popular one you could point me to. The only reason I like it working from the hard drive is that I can leave it connected and multiboot with (Windows, hope that's not a swear word onsite) instead of CD/DVD or USB Sticks in and out
Regards jb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Wed Apr 01, 2015 7:22 pm    Post subject: Reply with quote

jbvideo,

You can do mulitboot if you do a real install and not copy the binary from the liveCD.
Unlike binary distros, Gentoo does not have releases or versions.
There are versions of the liveDVD, stage3 tarballs and minimal CDs but these versions are defined by the date that they were made.

If I update my gentoo today, I have todays gentoo. Its actually worse that that as commits appear on the master mirror every 30 min.
Gentoo is a meta distro. Its a set of tools you use to build your own distro. Gentoo is the ebuild tree and the package manager. Everything else is upstream.
This means that every Gentoo install is unique, and why I said you have likewhoas Gentoo, not your own.

The liveDVD is quite old in Gentoo terms and is a bad place to start, as I have already outlined.
Reinstalling won't fix Gentoo. It just offers you the opportunity to make a different mistake next time.

If multiboot is a bit scary, run Oracle VirtualBox on your Windows and install Gentoo as a guest.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jbvideo
n00b
n00b


Joined: 29 Mar 2015
Posts: 31
Location: uk

PostPosted: Wed Apr 01, 2015 8:26 pm    Post subject: Reply with quote

Many thanks for your helpfull and speedy advice on Gentoo. A very helpful and active forum you have here.
Back to more reading now, thanks to all, no doubt "I'll be back"
jb
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