LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2004, 01:23 PM   #1
bigeeguy
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 9

Rep: Reputation: 0
Complete Reinstall of Debian


I have been doing a good job of mucking up my first linux system. I cannot boot my new kernel with anything. I can only boot an older version with a floopy. I have jumped from LILO to GRUB to LILO without success. I am sufficiently frustrated with the whole mess and want to start anew, but I dont want to totally blow away the programs I installed and the config files that go with them. I do not have a burner on the system so its not easy for me to transfer stuff off. So, is there a way to format hda1 (my primary boot partition), and reload only the original kernal and supporting files from my Debian CD's. I dont even know what is required on my hda1 in order for it to work right again. I dont have any other OS on my system either which I would hope makes things easier.

If I must kill everything, do I have to initialize each partition over again when I reload Debain from my CD's.


Thanks, from a broken shell of a man
 
Old 04-16-2004, 03:31 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Can you explain what has gone wrong with the new kernel that is preventing you booting and why you don't want to use the old kernel?
 
Old 04-19-2004, 09:24 AM   #3
bigeeguy
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Well, I dont think the problem is with the kernel, rather, it is with my boot loader. I messed something up with the boot loader and have not been able to make it boot with out the floppy. I described the initial problem here:

http://www.linuxquestions.org/questi...295#post878295

I then got frustrated with LILO and tried to move to GRUB. I found a howto on converting from LILO to GRUB and followed it word for word. When I rebooted with GRUB, I got "Error 13: Invalid or unsupported executable format". I tried every kernel on the list, my old one 2.2.18 and my new one 2.4.25 with the same result. Then I got even more frustrated with GRUB and tried to convert back to LILO. I removed GRUB with apt-get. I was then able to merge the 2 problems into one. The system currently boots to the grub screen, but then restarts itself after 5 seconds or so. I have sufficently wrapped myself around the axial to a point where I think it will be easier to start fresh. So this is the scoop. Any assistance you could lend would be a great help. Thanks
 
Old 04-19-2004, 02:26 PM   #4
Marc A
Member
 
Registered: Mar 2004
Location: Bxl Europe
Distribution: Debian/Ubuntu
Posts: 84

Rep: Reputation: 15
I think that if you installed Home on a differnet parition, you should be able to install everything anew without loosing your data.
So start the install and take care not to format your Home partition (it's not needed)

Good luck, Marc A
 
Old 04-19-2004, 11:47 PM   #5
Qucho
Member
 
Registered: Mar 2004
Location: Colorado, US
Distribution: Debian "Sarge"
Posts: 228

Rep: Reputation: 30
Quote:
in my /usr/src, I have
kernel-image-2.4.25_MyKernel2.4.25.deb
Quote:
in /boot, there are the files
system.map-2.4.25
config-2.4.25
vmlinuz-2.4.25
You never installed your new custom compiled kernel.

~$ cd /usr/src
~# dpkg -i kernel-image-2.4.25_MyKernel2.4.25.deb

Then you should see in /boot

vmlinuz-2.4.25_MyKernel
system.map-2.4.25_MyKernel
config-2.4.25_MyKernel

with all the other files you already had there.

Grub is WAY easier to update with new kerneles.
after you install a new kernel you just need to do:
~# update-grub
and you are done, but this is usually done automaticaly after you install your custom kernel image.
 
Old 04-20-2004, 08:33 AM   #6
bigeeguy
LQ Newbie
 
Registered: Apr 2004
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
No, I definitly did that and created the system.map-2.4.25, config-2.4.25, and vmlinuz-2.4.25 files. Thats what is so confusing. I think I did everything as outlined in tho howto (well apparently I didnt).

It doesnt make any difference anyway. I reformatted last night and killed everything. Now, I have new problems to fix.

Thanks for everyones thoughts.
 
Old 04-20-2004, 08:45 AM   #7
jolly1701
Member
 
Registered: Nov 2003
Location: England, UK.
Distribution: SuSE 10
Posts: 126

Rep: Reputation: 15
insert the install disc hold the shift key while booting it should bring up a menu
choose restore
this restores the boot loader to its defaults
let it do its stuff then restart after removing the disc

if u set your system up like this
boot = mbr
x? amount of ram = /swap
5GB= /
rest of hdd = /home
but the set up will require a full reinstall, but u will only have to do this the once.

this way any reinstall of the os goes to root but your home directory is safe and u will be able to use all the info on as if it had never happened

also if playing with upgrades from different repositries ie sarge, sid check out
apt pinning

Last edited by jolly1701; 04-20-2004 at 08:48 AM.
 
  


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
Can't get Debian "netinstall" to complete. buckwheat12 Debian 6 09-20-2005 07:05 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM
MBR deleted - I need to reinstall LILO without reinstalling Debian chaca1983 Linux - Software 12 03-26-2005 11:06 AM
Long shot... Reinstall Debian bfloeagle Debian 2 02-10-2004 04:20 PM
reinstall kde in debian how to x2000koh Debian 1 08-21-2003 01:15 AM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration