LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-24-2004, 09:00 AM   #1
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
on reboot files are missing from /boot folder


hi

I started to compile my own kernel. (Not yet a full success)
I amended my grub entry and new kernel needs no initrd image
I have a standard 10.1 kernel 2.6.8.1-10 that uses vmlinuz and symbolic links to the real kernel and associated System.map file

2) On first attempt with my compiled 2.6.9 kernel I saw a message that my system map was not found and (on reboot) my map file was missing.
So I deleted all symbolic links and amended grub for standard mdk kernel to boot and it works ok

Then I added my bzImage and its related system map file but called these
bzImage-269 and System.map-269 and grub amended etc

3) On reboot I can see its my new bzImage loading but altho my bzImage file remains in folder /boot the map file is gone on reboot.

4) Anyone know which service is playing with my boot directory?

ps I had root powers to add file each time
 
Old 12-24-2004, 09:06 AM   #2
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
try running df -h and make sure that your boot partition is mounted
if not, mount it and make sure the fstab entry for it is correct.

Jule
 
Old 12-25-2004, 07:44 PM   #3
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Original Poster
Rep: Reputation: Disabled
it appears that I cheated, who me? I had not used the correct kernel numbering that I had compiled.
I renamed my missing file System.map-269 instead of -2.6.9.

2) instead of cp and rename I used depmod -a and make install then edit my grub so my steps for those interested are

mkdir /opt/k and unpack new kernel there eg /opt/k/linux-2.6.9
delete link to /usr/src/linux from the k source
add new link.......... ln -s /opt/k/linux-2.6.9 /usr/src/linux
cd /opt/k/linuxetc
make mrproper
make menuconfig (or xconfig)
make bzImage; make modules; make modules_install
depmod -a
make install
(make install then attempts to mkinitrd but I have compiled in all I need [i think] so ignore error)
check /boot has vmlinuz-2.6.9 and System.map-2.6.9 and config-2.6.9
edit /boot/grub/menu.lst for new kernel and old kernels

My kernel is not perfect but it boots proving I do not need initrd.img and can now start to tweak it.

thanks for your help
 
Old 12-25-2004, 07:46 PM   #4
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
no problem, just a hint with 2.6 kernels all you need to run after you configure it is make && make modules_install && make install

-JSS
 
Old 12-26-2004, 05:25 AM   #5
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Original Poster
Rep: Reputation: Disabled
dizzutch

Ignoring the way I use ; and you use && ,......what do you mean?

no depmod -a ?
no make install ?

thanks for any news
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reboot and folder security. What the...? lowbrow Linux - Security 9 06-20-2005 06:02 PM
Missing /boot folder and others.... leapingfrog Linux - General 7 05-03-2005 05:17 AM
missing folder thebblack Linux - General 2 12-02-2004 05:52 PM
Missing boot.b and chain.b files sonofdbn Linux - Newbie 3 03-12-2004 09:52 AM
missing files in /boot dmikey Linux - Distributions 4 05-13-2003 07:13 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration