LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-24-2009, 11:37 AM   #1
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 334

Rep: Reputation: 30
Upgrading to Debian Lenny 64 bit


I have been using debian etch i386

Now I got DVD of Debian lenny and want to upgrade to lenny for 64 bit

What is the procedure?

Can I use the old data?
 
Old 05-24-2009, 12:41 PM   #2
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 31
I don't think (could be wrong) that you can upgrade from 32 bit to 64 bit. If you have /home on a separate partition from the rest of the filesystem you could just reformat the system to use the 64 bit stuff and all of your settings would stay the same. But otherwise I think you are stuck with 32 bit unless you do a full reformat...
 
Old 05-28-2009, 09:08 PM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,327

Rep: Reputation: 154Reputation: 154
I would try the upgrade first, before resorting to reformating. I don't know if it's possible to upgrade to a 64-bit version from a 32-bit version, though. But, I'd still try just to see (backup first, of course.)

Should you choose to try upgrading, then do be aware of the release notes (see Release Notes for Lenny IA-64, or Release Notes for Lenny AMD64). Briefly, install apt and aptitude first, then do a safe upgrade, and then do a full upgrade.
 
Old 05-28-2009, 10:25 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
No, war1025 is right: you can't upgrade from 32 to 64 bit. It needs a full re-install of the system. However, that can be relatively simple, provided your /home dir is on a separate partition, preferably even a separate disk (but that's no requirement). In short:

1) use the --get-selection option of dpkg and store the list as selections.txt
2) reboot with the Lenny DVD and install the minimal system
3) reboot again into the new, now 64 bit, system and use the --set-selections option of dpkg with the selections.txt file as its argument
4) let dpkg (or aptitude) fetch the marked packages and install them
5) if all goes well, your system should now be 64 bit and hardly different from your current Etch setup
 
Old 05-29-2009, 09:42 AM   #5
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 334

Original Poster
Rep: Reputation: 30
I shall backup/copy my data files to another disc or HDD

If I do a fresh install of 64, can I read the copied/backup data?

Currently I can mount the windows partitions (It is a dual boot system)

when I install 64 bit, can I mount windows partitions and read data from windows mounter partitions?
 
Old 05-29-2009, 11:04 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by sunils1973 View Post
I shall backup/copy my data files to another disc or HDD
If you have an external or spare internal drive to which you can copy your files, that may be the best idea.

But if you have significant excess space on your main drive, there may be a more convenient method (only a little less safe).

Shrink and maybe move whatever partitions can be easily shrunk or moved to create enough free space to create new partition(s) for a fresh install of 64 bit, without deleting the partitions used by 32 bit Linux. The swap partition can be kept and shared between 32 bit and 64 bit.

Install the 64 bit Linux into those new partition(s). It may automatically see Windows and create the right dual boot with Windows. I don't think it would automatically create the right triple boot you may temporarily want. It is pretty easy then to open both the old and new menu.lst files in text editor windows and copy one or two entries from the old one to the new one to get the desired triple boot.

Quote:
If I do a fresh install of 64, can I read the copied/backup data?
If you put it on any media that is still available after the install then there should be no problem reading it. The usual problem is not realizing some file would be needed (and thus not including it in the backup). That is why it is easier if you shrink but preserve the entire partition(s) of the 32 bit install.

I used a similar method to upgrade from Mepis 7 64bit to Mepis 8 64bit. Several times shortly after switching, I found I couldn't remember enough about the way something had been in Mepis 7 (nor deduce it by just looking at file contents in my Mepis 7 partitions mounted in Mepis 8). So I rebooted back to Mepis 7 and poked around a bit to get information to use in customizing Mepis 8. It was very convenient that I had enough disk space to have both installed at once and dual boot.

Quote:
Currently I can mount the windows partitions (It is a dual boot system)
So the dual boot is a feature you will need to preserve, and as I described above maybe temporarily change to triple boot.
Many Linux installers will set up the menu.lst file automatically for dual boot with Windows when you install Linux on a system that previously had just Windows. It is harder to do that automatically when the previous state was already dual boot, especially if that previous Linux install is being replaced. You may need to manually edit the menu.lst file to get the dual boot working again after reinstall of Linux. That is very easy if you have a copy of the previous menu.lst file to use as an example.

Quote:
when I install 64 bit, can I mount windows partitions and read data from windows mounter partitions?
That should be no different than it has been in 32 bit Linux. Did you figure out how to do that in 32 bit Linux?
 
Old 05-30-2009, 10:20 AM   #7
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 334

Original Poster
Rep: Reputation: 30
OK Thank u johnsfine.

My doubt was whether 64 bit coputing is intrpreting data in another way and hence data in 32 bit cannot be migrated to 64 bit.

Thank u again for giving so much attention to my question
 
Old 05-30-2009, 11:43 AM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by sunils1973 View Post
My doubt was whether 64 bit coputing is intrpreting data in another way and hence data in 32 bit cannot be migrated to 64 bit.
Maybe that depends on what you mean by "data".

If you mean almost any file written by an ordinary application program, there is no problem. You can copy over your browser bookmarks, the folders from your email program, your digital photos (original or edited), documents from a word processor, spreadsheets, etc. all with no problems.

If you wrote your own programs and they store binary data into files without being careful about portability, then it probably won't work (but you could keep those programs in 32 bit mode even on a 64 bit OS, so their old data would work). I don't expect you actually have such programs. I just wanted to explain the qualification to the otherwise absolute statement that your data from a 32 bit Linux will have no problems from being moved to a 64 bit Linux.
 
Old 05-30-2009, 12:31 PM   #9
sunils1973
Member
 
Registered: Jan 2007
Location: INDIA
Distribution: Ubuntu, Debian
Posts: 334

Original Poster
Rep: Reputation: 30
Ok

That is the apt reply I want. Thank u

Again one more doubt

I have been developing one office application software in Mysql-php.

The programs are developed in my home machine(linux) and the mysql data and php files are transferring to the office machine (windows XAMPP). For the php files - as per previous reply, no problem.

I have been transferreing the mysql daba by the mysql dump

Can the dump created in linux 64 bit exported to windows 32 bit?
 
  


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
Debian Lenny: tcsh segmentation fault. when .history contains 8-bit char (?) kaz2100 Debian 1 01-17-2010 11:14 PM
Upgrading Ubuntu 8.10 32-bit to 64-bit ahmed_as8 Linux - Newbie 2 03-19-2009 01:21 PM
Lenny Xorg and 24 bit?? stratotak Debian 5 12-30-2008 07:49 AM
LXer: Upgrading Debian from Etch to Lenny LXer Syndicated Linux News 0 01-02-2008 03:30 AM
Upgrading From 32-Bit To 64-Bit SUSE linuxdawg SUSE / openSUSE 6 02-07-2005 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:29 PM.

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