installing newer version over old on multi-os configuration

If none of the more specific forums is the right place to ask

installing newer version over old on multi-os configuration

Postby doug » 2006-05-18 17:35


Greetings..

okay... i am very new here (very first post/question), and you may, for the moment, consider me an idiot.

i DID look to see if this was covered in another topic - didn't see it.
(that being said:)
i have installed debian 2.4.27-2-386.
i wish to install the latest etch version of 2.6.15(?).
i have the iso image cd (netinstall), and also access to net connection.

i am on an AMD desktop and am using grub to go between Linux and windoze (work required).
windoze is on one disk, and debian on another, but grub is in the boot sector.

problem:
last night, on another machine/install, i tried to remove the debian install, completely from the drive, and when i rebooted, i could not get past the grub loader, getting an error 22. eventually, i used an installation disk for windoze to edit the boot and was able to restore the windoze load and remove the references to a (then) non-existant debian install.

i wish to completely remove 2.4.27-2-386 from my WORK machine without running into the same problem, THEN, install 2.6.15(?).

question(s):
is there a way to install 2.6.15(?) OVER 2.2.27-2-386 without having to
first remove the older version, AND STILL have grub recognize the
difference, and opperate correctly?

if not, what is the safest way to remove 2.4.27-2 and have grub
correctly recognize the change?

can anyone please explain to me the correct way to do this without affecting my (required) windoze xp install, and clearing grub without having to use a very messy cli register editor?

thanks for any and all useful help in this.

-g
doug
 
Posts: 4
Joined: 2006-05-18 16:52
Location: here

Postby Lou » 2006-05-18 18:00

"i have installed debian 2.4.27-2-386."
You don't say which Debian, is it Sarge, Etch? All you're telling us is that you installed the default kernel.

"i wish to install the latest etch version of 2.6.15(?)"

Assuming you're on Etch, you just want to switch kernels: from 2.4 to 2.6 .

Or you're on Sarge and want to move up to Etch, with the kernel 2.6 which is it?

Also from your writing i get the impression that both are being booted correctly by Grub and that Windows and Debian are on different hard drives.

Please clarify this.
Lou
 
Posts: 1775
Joined: 2006-05-08 02:15

Postby doug » 2006-05-18 18:17

Lou wrote:"i have installed debian 2.4.27-2-386."
You don't say which Debian, is it Sarge, Etch? All you're telling us is that you installed the default kernel.


ahhhh yes... (again... appologies..)
i have installed the base debian 2.4.27-386 and i BELIEVE that it is sarge.
(how do i find this information? i used uname -a to get the version information i gave)
(also) i have not been able to get that version to work with my hardware, due to lack of drivers for the "sATA raid card" and was told to upgrade to the 2.6.15 etch (testing) version

Lou wrote:"i wish to install the latest etch version of 2.6.15(?)"

Assuming you're on Etch, you just want to switch kernels: from 2.4 to 2.6 .

Or you're on Sarge and want to move up to Etch, with the kernel 2.6 which is it?


i (believe) i am on sarge 2.4.27-386 and i wish to completely remove it and use 2.6.15* (or updated) etch/testing

Lou wrote:
Also from your writing i get the impression that both are being booted correctly by Grub and that Windows and Debian are on different hard drives.


this is correct. windoze is on the master ide 120G
Debian is on the sATA 300G, which uses a "belkin serial ata pci card -150"
both boot correctly, as far as it has gone.
windoze goes to where it should, and boots properly
debian goes to my cli install, then drops me into the cli login. i am not able to get the startx to give me a gui login, but that is another problem.

Lou wrote:Please clarify this.
doug
 
Posts: 4
Joined: 2006-05-18 16:52
Location: here

Postby doug » 2006-05-18 18:48

okay....
poking around... this is what i have done....

i added the file: /etc/apt/preferences (it was not there until this)
(changing the priorities so that testing was 700, stable was 650, and unstable was 600)

i then made certain that my /etc/apt/sources.list contains the "testing" references.

next i did an apt-get update, followed by apt-get upgrade

when i did a uname -a, i STILL get 2.4.27-2.386.....
have i done something incorrectly? (again)

{subsequent actions (edited)}

next...
i did an: "apt-cache search linux-source-2.6.15*"
then: apt-get install linux-source-2.6.15"

it's downloading.... ** fingers crossed**

doug
 
Posts: 4
Joined: 2006-05-18 16:52
Location: here

Postby Lou » 2006-05-18 20:06

"i added the file: /etc/apt/preferences (it was not there until this)
(changing the priorities so that testing was 700, stable was 650, and unstable was 600)"

It's Not necessary to do this.

"i then made certain that my /etc/apt/sources.list contains the "testing" references."

Good man!

"next i did an apt-get update, followed by apt-get upgrade"

Bad boy!

# apt-get update
# apt-get dist-upgrade

"when i did a uname -a, i STILL get 2.4.27-2.386.....
have i done something incorrectly? (again)"

uname -a will only show you the kernel version, which you haven't changed; thus, you're getting the same kernel version.

{subsequent actions (edited)}

next...
i did an: "apt-cache search linux-source-2.6.15*"
then: apt-get install linux-source-2.6.15"

it's downloading.... ** fingers crossed**"

Bad boy!

Once you dist-upgrade to Etch, you have to install the new kernel.

# apt-get install kernel-image-2.6-686 if your processor is an intel and Kx if it is an AMD. When you're thru installing the kernel, REBOOT.

If the dist-upgrade gives you problems (xorg) you can reinstall with the netinstaller cd, at the boot prompt:

boot: expert

choose Testing down the road and kernel 2.6, less hassles, but you have to reinstall, broadband needed.
Lou
 
Posts: 1775
Joined: 2006-05-08 02:15

Postby doug » 2006-05-18 21:00

*sigh* (this is what happens when you don't know what you are doing...)

minor points:
i thought i had the 2.6.15 install... (operator error)
i have a 10M, 54M and 100M connections available...
right now, using the 10M ethernet for the install,
54M wireless to communicate here on another system,
and will go to the 100M if i have to do this much longer....

ahh well.... on with the show

the story, so far:

from where i left off....

: got many errrors from my initial compile, due to lack of a package
: apt-get install libncurses5-dev
: make-kpkg clean
: make menuconfig
: went through several hundred options
: saved options/config
: make

it's compiling now....
going to go commit suicide...
be back later to see what happened...

projected next steps (IF my kernel compiles):

:make-kpkg --append-to-version="-060518" kernel_image modules_image
(hopefully, when i have to do this over tomorrow.... to create the "xxxx".deb)
: cd ..
: dpkg -i "xxxx".deb

pray for me....
(and thanks, so far....?)

-g


doug
 
Posts: 4
Joined: 2006-05-18 16:52
Location: here

Postby Lou » 2006-05-19 00:42

If everything fails, and you will not be the last one to do several installations until you get it down pat, here are some good readings:

Debian installation with the netinstaller rc2
http://osnews.com/story.php?news_id=9271

the instructions for the netinstaller rc2 are the same for the latest debian netinstaller.

Debian configuration post-install
http://tinyurl.com/q5p68

It's about 10 pages long, well worth it, it will answer many of your questions about different subjects in Debian, it's a compilation of tips from different posters, it will save you a lot of time and grief.

THEN you can start all over again, but this time you won't be so lost. You won't regret it.

Happy reading and good luck!
Lou
 
Posts: 1775
Joined: 2006-05-08 02:15


Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable