Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Card Reader Help (SOLVED)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Thu Jun 19, 2008 3:43 pm    Post subject: Reply with quote

sall wrote:
so, I'm guessing theres a chance I can hose my system if I do this? :?


No not really, and you can always back your kernel files in /boot.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Thu Jun 19, 2008 4:37 pm    Post subject: Reply with quote

The simplest is probably to create a new entry in grub and point to a new kernel so that if it fails, you can just go to your original grub entry and boot.

Was that clear?

So, in short.
- Upgrade to the kernel version that is the same from the one on the live CD.
- compile the .config file after unziping it!
Don't forget to change the 'linux' link to point to the new kernel.
- Add a new entry in grub to avoid problems and for easy roleback to previous version/kernel.

Best of luck!
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Jun 19, 2008 5:21 pm    Post subject: Reply with quote

okay, so this is a really novice question :oops: my harddrives mount on /dev/hda which one would /mnt/gentoo be located on. I have grub, swap, and root partitions. However I can't find the /mnt/gentoo anywhere
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Thu Jun 19, 2008 5:31 pm    Post subject: Reply with quote

Hmmm, you might have been better off starting with a simpler distro like (k)ubuntu.

OK, when you run fdisk -l it should show you your disk and it's partition and partition type (ext3, swap, ...). You could of course simply look at /etc/fstab to see what is mounted where.

So in short, when you have the info, boot on the liveCD, mount your root filesystem (/) to anyplace.

If your root filesystem is say /dev/hda2, you could just do:

Code:

# mkdir /mnt/mymount
# mount /dev/hda2 /mnt/mymount


Then copy the config file to /usr/src, unmount the mounted filesystem, reeboot to your system and do all the work from there.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Thu Jun 19, 2008 5:43 pm    Post subject: Reply with quote

sall wrote:
okay, so this is a really novice question :oops: my harddrives mount on /dev/hda which one would /mnt/gentoo be located on. I have grub, swap, and root partitions. However I can't find the /mnt/gentoo anywhere


How did you install Gentoo? With the handbook?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Jun 19, 2008 6:28 pm    Post subject: Reply with quote

yes, I installed gentoo from the handbook.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Thu Jun 19, 2008 6:42 pm    Post subject: Reply with quote

sall wrote:
yes, I installed gentoo from the handbook.



Ok, you have to mount the partition on which you downloaded and extracted the stage3 (thus your root or '/' partition).
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Jun 19, 2008 7:55 pm    Post subject: Reply with quote

alright,

Code:

V2570nr craig # su
V2570nr craig # mount /dev/hda3 /mnt/gentoo
mount: mount point /mnt/gentoo does not exist


I do not think I am doing anything wrong? Feel slow today and watching euro cup game. Let me know what I am doing wrong.
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Thu Jun 19, 2008 8:24 pm    Post subject: Reply with quote

Hi,

Your installation is over and thus /mnt/gentoo no longer exists. Just mount it to any available mount point under /mnt or just create one as I mentioned above.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Thu Jun 19, 2008 9:29 pm    Post subject: Reply with quote

I can't get to cp to any directory. I can't access my /dev/hda or my / partitions from the rescue cd. weird. Can you give me a command to save the /proc/config.gz to my /home/craig directory and then i can install from there. Also, could I just download the same kernel to match the rescue cd and that would be the same thing?
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 4:16 pm    Post subject: Reply with quote

..bump...anyone?
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Fri Jun 20, 2008 4:50 pm    Post subject: Reply with quote

sall wrote:
I can't get to cp to any directory. I can't access my /dev/hda or my / partitions from the rescue cd. weird. Can you give me a command to save the /proc/config.gz to my /home/craig directory and then i can install from there. Also, could I just download the same kernel to match the rescue cd and that would be the same thing?


Please post the output of fdisk -l on the sysrecuecd.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 7:44 pm    Post subject: Reply with quote

output of fdisk -l:
Code:

/dev/sda1*   1        33          265041         Linux 83
/dev/sda2     34      546       41206724    Swap 82
/dev/sda3     547    7296    54219375     Linux 83

not exact, wasn't copy and paste but I thonk the /dev/ is what you needed.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Fri Jun 20, 2008 7:58 pm    Post subject: Reply with quote

sall wrote:
output of fdisk -l:
Code:

/dev/sda1*   1        33          265041         Linux 83
/dev/sda2     34      546       41206724    Swap 82
/dev/sda3     547    7296    54219375     Linux 83

not exact, wasn't copy and paste but I thonk the /dev/ is what you needed.


Ok,

Code:
*boot sysrecuecd*
*become root*
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo


Should do the trick
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 9:16 pm    Post subject: Reply with quote

Alright, I now have that accomplished..

Code:

# su
# mkdir /mnt/gentoo
# mount /dev/sda3 /mnt/gentoo
# cp /proc/config.gz /mnt/gentoo/usr/src
# reboot


Now, how do I go about setting this kernel up and set up a different option for the new kernel in grub. Also, will the newly compiled kernel have everything the one I originally used on it. Meaning, will my sound, wireless, etc. still worked as I've compiled and built it as or will that kernel begin at ground zero again? Good looks, on the help so far!
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 9:21 pm    Post subject: Reply with quote

I am thinking...

Code:

craig@V2570nr ~ $ su
Password:
V2570nr craig # cd /usr/src/
V2570nr src # gzip -dv config.gz


I am taking that from "linux Kernel ina Nutshell' segment mentioned by Aniruddha. Keep in my mind my previous post as to having two kernels and different grub entry for new kernel. Thanks!
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Fri Jun 20, 2008 9:49 pm    Post subject: Reply with quote

I think the easiest way is to use genkernel

genkernel --install --bootloader=grub --kernel-config=path to your .config all

Should do the trick.

Update

I think you best install an older kernel with

Code:
emerge -av =gentoo-sources-2.6.24-r7

select this kernel with eselect:
Code:
eselect kernel list
eselect kernel set 1 (or 2 depending on the number in the eselect list)

Then run
Code:
genkernel --install --bootloader=grub --kernel-config=path to your .config all

_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:07 pm    Post subject: Reply with quote

am I to do everything in your previous post, or just what is after update?
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:12 pm    Post subject: Reply with quote

going with what you had after Update after a second look.
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:18 pm    Post subject: Reply with quote

sorry another question really quick.

Code:

genkernel --install --bootloader=grub --kernel-config=path to your .config all


Should I do a:

Code:

genkernel --install --bootloader=grub --kernel-config=/usr/src/config.gz all


or does the config.gz I copied have to be extracted?
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Fri Jun 20, 2008 11:25 pm    Post subject: Reply with quote

sall wrote:
sorry another question really quick.

Code:

genkernel --install --bootloader=grub --kernel-config=path to your .config all


Should I do a:

Code:

genkernel --install --bootloader=grub --kernel-config=/usr/src/config.gz all


or does the config.gz I copied have to be extracted?


Honestly I don't remember. If I were you I try them both. As long as you use the other (older) kernel your safe.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:31 pm    Post subject: Reply with quote

Update:

Heres what I did in full:
[code]
# emerge -av =gentoo-sources-2.6.24-r7
# cp /usr/src/config /usr/src/linux-2.6.24-gentoo-r7/
# mv /usr/src/linux-2.6.24-gentoo-r7/config /usr/src/linux-2.6.24-gentoo-r7/.config
# eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.24-gentoo-r7
[2] linux-2.6.24-gentoo-r8 *
# eselect kernel set1
# genkernel --install --bootloader=grub --kernel-config=/usr/src/linux-2.6.24-gentoo-r7/.config all
[code]

I hope this what was correct took me a few reads. I can get impatient, college summer classes are bumming me out. haha 8O
If you notice an error let me know, if not I will get back to you all with the results! Thanks again.[/code]
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:35 pm    Post subject: Reply with quote

Code:

V2570nr src # genkernel --install --bootloader=grub --kernel-config=/usr/src/lin                                                                                                                                ux-2.6.24-gentoo-r7/.config all
* Gentoo Linux Genkernel; Version 3.4.9
* Running with options: --install --bootloader=grub --kernel-config=/usr/src/lin                                                                                                                                ux-2.6.24-gentoo-r7/.config all

* Linux Kernel 2.6.24-gentoo-r7 for x86_64...
* mount: /boot mounted successfully!
* kernel: >> Running mrproper...
* config: Using config from /usr/src/linux-2.6.24-gentoo-r7/.config
*         Previous config backed up to .config.bak
cp: cannot stat `/usr/src/linux-2.6.24-gentoo-r7/.config': No such file or directory
* ERROR: Could not copy configuration file!

* -- Grepping log... --

* config: Using config from /usr/src/linux-2.6.24-gentoo-r7/.config
*         Previous config backed up to .config.bak
* Gentoo Linux Genkernel; Version 3.4.9
* Running with options: --install --bootloader=grub --kernel-config=/usr/src/linux-2.6.24-gentoo-r7/.config all

* ERROR: Could not copy configuration file!

* -- End log... --

* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.

* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!


Not sure where I went wrong.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Fri Jun 20, 2008 11:42 pm    Post subject: Reply with quote

sall wrote:
Update:

Heres what I did in full:
[code]
# emerge -av =gentoo-sources-2.6.24-r7
# cp /usr/src/config /usr/src/linux-2.6.24-gentoo-r7/
# mv /usr/src/linux-2.6.24-gentoo-r7/config /usr/src/linux-2.6.24-gentoo-r7/.config
# eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.24-gentoo-r7
[2] linux-2.6.24-gentoo-r8 *
# eselect kernel set1
# genkernel --install --bootloader=grub --kernel-config=/usr/src/linux-2.6.24-gentoo-r7/.config all
[code]

I hope this what was correct took me a few reads. I can get impatient, college summer classes are bumming me out. haha 8O
If you notice an error let me know, if not I will get back to you all with the results! Thanks again.[/code]



Why did you do this?
[code]# cp /usr/src/config /usr/src/linux-2.6.24-gentoo-r7/
# mv /usr/src/linux-2.6.24-gentoo-r7/config /usr/src/linux-2.6.24-gentoo-r7/.config[/code]


Where is config.gz located?

If I were yout I'd try running genkernel with the config.gz first
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Fri Jun 20, 2008 11:48 pm    Post subject: Reply with quote

I was under the impression from 'Linux ina Nutshell" where it said to rename config.gz .config. I don't know... haha.

config is located in :

/usr/src/

should i move to /usr/src/linux-2.6.24-gentoo-r7/config.gz? or run it from /usr/source as:

Code:

# genkernel --install --bootloader=grub --kernel-config=/usr/src/linux-2.6.24-gentoo-r7/config.gz all
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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