LinuxQuestions.org
Review your favorite Linux distribution.
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 02-18-2007, 09:44 AM   #1
meigwil
LQ Newbie
 
Registered: Apr 2006
Location: Caernarfon
Distribution: Mandriva SE 2005
Posts: 11

Rep: Reputation: 0
How to reinstall Linux on a Dual Boot PC


Hi all,

I currently have Mandriva 2005 SE on a dual boot machine with Win XP.

I'd like to install Ubuntu 6.10 on the partition instead of the Mandriva, how do I go about this?

Thanks,

Mei
 
Old 02-18-2007, 12:05 PM   #2
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
If you want to use the partition again - just format the partition with some partitioning software (Parted, cfdisk, fdisk, gparted, PartitonMagic etc.) and install Ubuntu on the newly formatted partition. Make sure that you back up first though.
 
Old 02-18-2007, 12:31 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I would just tell the installer to install Ubuntu over the same partitions of Mandriva and format them before the installation. However not many Linux newbies known where their Linux are or wish to find out.
 
Old 02-18-2007, 12:42 PM   #4
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
Quote:
Originally Posted by saikee
not many Linux newbies known where their Linux are or wish to find out.
How could they not know where it is?
 
Old 02-18-2007, 01:55 PM   #5
meigwil
LQ Newbie
 
Registered: Apr 2006
Location: Caernarfon
Distribution: Mandriva SE 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your replies guys.

I'm running the live CD, and tried the install, but the only options I was given were:
  1. repartition one current partition (hda2)
  2. delete the whole hard disk
  3. create new partitions

Any ideas?

Thanks again,

Mei
 
Old 02-18-2007, 02:04 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Quote:
How could they not know where it is?
From the information so far need I say more?
 
Old 02-18-2007, 02:40 PM   #7
benerivo
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
Those options you were given seem strangely limited. Try booting in to XP and deleting the partitions that Mandriva is on. I think you can do this from the Computer Management window, then go to Disk Management option. See this pic for an idea of the bit of XP i mean...
http://www.microsoft.com/library/med...management.gif

Then delete the partitions that Mandriva is on. There will be at least two - one will be the main Mandriva partition and one will be the Linux Swap partition. XP will proabably refer to them as unknown partitions, and they will probabaly show up to the right of the C: drive from that pic above.
Once deleted you will have empty space. Run the live cd again, and hopefull you will now have an option for installing on to the unused space you have just created.

Last edited by benerivo; 02-18-2007 at 02:43 PM.
 
Old 02-18-2007, 02:58 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If only hda2 is reported Mandriva may have been installed into it and using "edit" option would be the easiest and quickest because we don't want the swap to be deleted.

One way to find out is while loading Ubuntu, drop into the terminal and do a
Code:
sudo fdisk -l
To see how many partitions with Type 83 for native Linux, Type 82 for swap and Type 7 for XP.

If a user is to create or delete partitions for Linux it is better to use the partitioning tools in Linux and Ubuntu is an excellent Live CD.
 
Old 02-18-2007, 03:53 PM   #9
meigwil
LQ Newbie
 
Registered: Apr 2006
Location: Caernarfon
Distribution: Mandriva SE 2005
Posts: 11

Original Poster
Rep: Reputation: 0
The Mandriva boot loader shows 5 partitions. Two Windows, two Linux and a failsafe. I'm not sure what that one is.

Are there tools on the Live CD to manage the partitions? It's Ubuntu version 6.10.

Thanks again,

Mei
 
Old 02-18-2007, 04:51 PM   #10
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
The entries in the bootloader are not partitions, for example Mandriva and failsafe would boot from the same partiton, but failsafe would boot differently, but I'm not sure how. To see a list of partitions use
Code:
fdisk -l
This will give info about the partitions on your hard drive(s)
 
Old 02-18-2007, 04:58 PM   #11
meigwil
LQ Newbie
 
Registered: Apr 2006
Location: Caernarfon
Distribution: Mandriva SE 2005
Posts: 11

Original Poster
Rep: Reputation: 0
fdisk -l gives

/dev/hda1 Hidden W95 FAT32
/dev/hda2 HPFS/NTFS
/dev/hda3 Extended
/dev/hda5 Linux
/dev/hda6 Linux swap / Solaris
/dev/hda7 Linux

I continued with the installation program, choosing to manually edit the partition table.

I've chosen to leave hda1 and 2 alone, put / (root) on hda5, the swap on hda6 and /home on hda7.

I'll get back with the results.

Mei

Last edited by meigwil; 02-18-2007 at 05:24 PM.
 
Old 02-18-2007, 05:25 PM   #12
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
OK then, good luck.
 
Old 02-18-2007, 06:18 PM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
It will work.

Partitions are partitions. Just make sure they are formatted first.

Apart from the swap I normally use just one partition for a distro.
 
Old 02-18-2007, 06:19 PM   #14
meigwil
LQ Newbie
 
Registered: Apr 2006
Location: Caernarfon
Distribution: Mandriva SE 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Well, I think I managed to install the OS ok, but I didn't choose to reformat the /home partition (hda7).

After I switch on and boot, I put in the username and password and get this warning message:

Quote:
User's $HOME/.dmrc file is being ignored. This prevents default language and session information being saved. File should be owned by user and have permissions. $HOME directory should be owned be user and not writable by other users
.

After I click OK, there's a pause, and an error message that says something like:

Quote:
Your session lasted less than 10 seconds. There is probably an error.
and gives

Quote:
home/mei/.gnome2/ could not be created
.

I poked around using the command line, and the home directory contained the old users from the Mandriva installation. I removed them and created a new /mei directory, but still the same.

Should I reinstall and reformat the partition? Or can I fix this manually?

I'm back on the live CD now.

Thanks,

Mei
 
Old 02-18-2007, 06:39 PM   #15
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
Maybe you could try
Code:
chown -R /home/mei
Does your distro have useradd?
useradd asks where you want your home directory and if it exists, asks if you want to chown it. I use this and have never had a problem.

Last edited by johngreenwood; 02-18-2007 at 06:42 PM.
 
  


Reply

Tags
install


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
Reinstall Windows in Windows/Linux Dual Boot aye29 Linux - General 5 07-27-2006 08:48 AM
I want my dual boot back but can't reinstall XP LinuxPadawan General 0 05-18-2005 08:11 PM
Reinstall Windozs on dual boot linux Hipphead Linux - General 3 04-06-2005 12:37 PM
dual boot - XP and Linux - Need to reinstall XP without effecting linux -LILO boot godofmind Linux - General 1 05-05-2004 08:13 AM
Need to reinstall Windoze 98SE on dual boot with linux mandrake 8 athon_solo Linux - Software 2 10-19-2001 08:31 PM


All times are GMT -5. The time now is 01:21 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