Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Maintenance Help Please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
crayztechnique
n00b
n00b


Joined: 03 Apr 2016
Posts: 30

PostPosted: Fri Apr 15, 2016 7:56 pm    Post subject: Kernel Maintenance Help Please Reply with quote

I need to access my current kernel to add support that is needed for a system utility. It is minor change and otherwise my kernel is running just fine. I'm looking for instructions that will give me access to my current kernel easily enough and then obviously tell my system to use the revised kernel. I'm still a newbie so please keep it simple. I did read the gentoo wiki on Kernel/Upgrade but I got lost at makesilentoldconfig. I'm wondering how to get back to the GUI like make menuconfig using the current kernel and then how to save the changes if that clears things up more hopefully.

As a side note while following the Kernel/Upgrade intructions when I ran

Code:
cp /usr/src/linux-4.1.15-gentoo-r1/.config /usr/src/linux
cp: /usr/src/linux-4.1.15-gentoo-r1/.config and /usr/src/linux/.config are the same file


Am I doing something wrong?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Apr 15, 2016 10:23 pm    Post subject: Re: Kernel Maintenance Help Please Reply with quote

crayztechnique wrote:
I'm wondering how to get back to the GUI like make menuconfig using the current kernel and then how to save the changes if that clears things up more hopefully.

crayztechnique ... all you need to is 'cd' to the directory and run 'make menuconfig'.

Code:
# cd /usr/src/linux
# make menuconfig

... on exit you will be prompted to 'save', select 'yes' (its the default).

crayztechnique wrote:
As a side note while following the Kernel/Upgrade intructions when I ran

Code:
cp /usr/src/linux-4.1.15-gentoo-r1/.config /usr/src/linux
cp: /usr/src/linux-4.1.15-gentoo-r1/.config and /usr/src/linux/.config are the same file

Am I doing something wrong?

/usr/src/linux is traditionally a symbolic link to linux-<version> (and such a link will have been created if you run 'eselect kernel set {n}'), so those files are the same. The kernel upgrade instructions are assuming a seperate linux-<version>, and copying the old config to the new source tree ... this is not necessary in your case.

best ... khay
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2586

PostPosted: Fri Apr 15, 2016 10:35 pm    Post subject: Reply with quote

Since presumably you now have X and some sort of window manager working, make menuconfig is actually not the most usable interface.

I recommend using make xconfig instead. You may need to run xhost +local: first if, and only if, it complains.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sat Apr 16, 2016 12:13 am    Post subject: Reply with quote

For machines without QT do make gconfig. I personally use make nconfig, better for remote access.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Sat Apr 16, 2016 12:32 am    Post subject: Reply with quote

Run 'eselect kernel list' to see your available kernels. 'eselect kernel set <some number>' will create the symbolic link for you.

If the kernel wasn't changed since you built it, the .config file should still be there. Don't run genkernel because it will overwrite the config file.

If you are lucky the config was compiled into the config. Run 'zcat /proc/config.gz' If a stream of stuff like CONFIG_XXXX appears then the config is in the kernel, just 'zcat /proc/config.gz >/usr/src/linux/.config'

Set it in the menuconfig general setup selected by the first page, the menu prompt is 'kernel .config support'. Either the Doctor or NeddySeagoon told me about this years ago.

Often, the wiki tells you to do something the hard way or the old way.
Back to top
View user's profile Send private message
crayztechnique
n00b
n00b


Joined: 03 Apr 2016
Posts: 30

PostPosted: Sat Apr 16, 2016 2:45 am    Post subject: Reply with quote

Ultimately I was looking for the instructions khayyam provided. I have not installed a GUI yet. To perform a quick maintenance I had to:

Code:
cd /usr/src/linux
cp .config ~/kernel-config-`uname -r`
make menuconfig
make                      #make && make modules_install if I added modules
mount /boot
make install
grub2-mkconfig -o /boot/grub/grub.cfg
reboot


Thank you all for your time and help I have support for mounting NTFS external hard drives now =D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 16, 2016 9:06 am    Post subject: Reply with quote

crayztechnique,

I hope you are not using the kernel NTFS driver. Its 'mostly harmless' now though.
_________________
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
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Sat Apr 16, 2016 10:28 am    Post subject: Reply with quote

NeddySeagoon wrote:
crayztechnique,

I hope you are not using the kernel NTFS driver. Its 'mostly harmless' now though.


???? I've been using it for years, mostly to read but occasionally to write. Is there a better alternative?
Back to top
View user's profile Send private message
crayztechnique
n00b
n00b


Joined: 03 Apr 2016
Posts: 30

PostPosted: Sat Apr 16, 2016 11:12 am    Post subject: Reply with quote

I built in support for fuse.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7072

PostPosted: Sat Apr 16, 2016 11:19 am    Post subject: Reply with quote

Tony0945 wrote:
NeddySeagoon wrote:
crayztechnique,

I hope you are not using the kernel NTFS driver. Its 'mostly harmless' now though.


???? I've been using it for years, mostly to read but occasionally to write. Is there a better alternative?

emerge -1 ntfs3g
unlike kernel you have no limits to write/create.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Apr 16, 2016 11:49 am    Post subject: Reply with quote

++ for make nconfig

(Don't worry about silentoldconfig: it's run for you by the others.)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 16, 2016 1:13 pm    Post subject: Reply with quote

Tony0945,

Kernel NTFS works for read.
Write is limited to changing an existing file provided the file size does not change.
It used to full NTFS write and trash the filesystem it the process. That's why I say its 'mostly harmless' now because it does what it can without doing any damage.

FUSE and ntfs3g is the way to go for NTFS.
_________________
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
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Sat Apr 16, 2016 4:48 pm    Post subject: Reply with quote

Code:
tony@CASTI ~ $ cat /etc/fstab|grep ntfs
/dev/sda1      /cdrive      ntfs-3g      users,noauto,uid=1000,gid=10   0 0
/dev/sda5      /mnt/edrive   ntfs-3g      users,noauto,uid=1000,gid=10   0 0
/dev/sdc1      /mnt/video   ntfs-3g      users,noauto,uid=1000,gid=10   0 0
UUID="647A-695C"        /media/kingston    ntfs-3g   users,noauto,uid=1000,gid=0     0 0


I thought I was running the kernel driver, but I guess not. I profoundly apologize for giving bad advice!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 16, 2016 5:08 pm    Post subject: Reply with quote

Tony0945,

You can install ntfs-3g and the kernel driver and decide at mount time which to use.
The kernel driver may well be faster as it won't do all the context switches that FUSE has to do.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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