Installed Porteus after Windows XP...now broke. [Solved]

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Installed Porteus after Windows XP...how to dual boot?

Post#46 by Ed_P » 15 Mar 2015, 04:42

donald wrote: It was "power quest's" drive image.Having this program at hand,
I remember Power Quest's Drive Image and Partition Manager, before Norton bought them. Favorite apps for a long time.

In the Windows world I use Drive Image XML. And run restores with it via BartPE.
In the Linux world we have e.g. clonezilla for this task
Unfortunately Porteus doesn't have clonezilla. Not even in USM.
about speed / time:
Imaging a 40 GB disk (in a 14 years old box) was done in less than 7 min.
Wow!! Mine usually takes longer but the hdd is much larger.
tome wrote:Most important - this method won't work:
Install XP -> install Porteus bootloader on the same partition -> possibility to boot XP.
An interesting approach. And while you say it won't work this way it will if the Porteus bootloader step is replaced with a grub4dos bootloader step. XP and Porteus can exist, and boot, on the same partition. Porteus just needs a save.dat file for persistence.
An interesting posting tome.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#47 by francois » 16 Mar 2015, 17:15

rgroner wrote:I remember the menu.lst from my old grub days (openSUSE 11.4), but could not find it anywhere on Porteus. There is no "/boot" directory.
I tried adding what you indicated in the porteus.cfg file instead, but that did not show up as a menu option.
Grubconfig will create the boot directory itself.

Given your fdisk output:

Code: Select all

...
/dev/sda1              63   268818431   134409184+   7  HPFS/NTFS/exFAT
/dev/sda2   *   268818432   390721535    60951552   83  Linux
1.0 With the porteus cd or usb key, install /boot and /porteus folders of porteus on sda2 directly (copy-paste).

2.0 Create the boot directory and install grub legacy on sda1 and sda respectively:

Code: Select all

root@porteus:~# grubconfig
Then add the following input to the four requests of information:

Code: Select all

simple 
standard 
/dev/sda2 
/dev/sda
That is it (see the bottom note).
before rebooting:

2.0 Inserting in the menu.lst instructions. Make sure that the two entries begining with title appear just after the timeout instructions:

Code: Select all

timeout 10 #10 seconds time out to choose between the options, personnally I prefer 3 instead of 10

title Win Vista/7 (loader) at sda1 #if inserted first this will boot windows automatically after the timout specified
rootnoverify (hd0,0)
chainloader +1

title porteus  on sda2   KDE or XFCE or ...
root (hd0,1) # sda1 is identified as (hd0,1) 0 for first hdd, 1 for second partition (the first hdd or partition being 0)
kernel /boot/syslinux/vmlinuz from=/dev/sda2 changes=EXIT:/ login=root # will log you in root mode and will create a save changes partition in /
initrd /boot/syslinux/initrd.xz
boot
Note: In the /mnt/sda2/boot folder you will have a new folder installed by grubconfig /boot/grub/ including the menu.lst file. This is the file to focus on.Forget about syslinux for the rest of the manipulations. Do not reboot now as you would like porteus to boot also.
If you would reboot now you could choose the windows option:

Code: Select all

Win Vista/7 (loader) at sda1

However, porteus is not recognised yet.
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Installed Porteus after Windows XP...how to dual boot?

Post#48 by Ed_P » 16 Mar 2015, 19:36

phhpro wrote:Chances are, he has the boot flag set on both partitions,
Wow, there's something I never considered. Is it possible?

francois, you do realize that rgroner posted that quote 2 weeks ago. :D
Ed

thom_A
White ninja
White ninja
Posts: 11
Joined: 08 Mar 2015, 19:44
Distribution: lubuntu, kubuntu
Location: Canada

Re: Installed Porteus after Windows XP...how to dual boot?

Post#49 by thom_A » 16 Mar 2015, 22:16

The more the thread grew the more complicated it became. :(
phhpro wrote:Still busy, are we? hehe... and still not solved. Funny, how I didn't think of this before, but having had a quick fly-over last night, I stumbled across a line, where the OP mentioned boot disk error or so. Chances are, he has the boot flag set on both partitions, which of course will never work.

Boot off a live disk, which has gparted; most have; run gparted and wait for the partitions to be loaded. May take a moment, just be patient. Now check the flags. If both partitions are set bootable, remove the b flag from the Porteus partition, save changes, remove the disk, and reboot. With some luck your XP comes back in all its glory.
This post doesn't even make sense to me. As the title suggests, the OP wants a dual boot. The post above doesn't indicate whether you can dual boot, or merely recover XP. If that is the case, he would have just re-installed XP.

And in the ideal world, the post above would have been the easiest. If he was able to boot Porteus, but lost XP, then he could have just used Porteus' Gparted and did what you posted here.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Installed Porteus after Windows XP...how to dual boot?

Post#50 by Bogomips » 16 Mar 2015, 23:26

@thom_A

Unfortunately you seem to be one post behind. After several failed attempts, it seems that at last someone is on the right track. :Bravo:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#51 by francois » 17 Mar 2015, 02:23

@phhpro:
To my knowledge the installation with grubconfig (grub legacy) will override whatever flag there is. But you suggestion is surely worth trying. In fact I did not know about it. :twisted:

I went to the dump this weekend to get rid of old window stores and found a desktop computer. It came with two hdd (75 and 150 gig), an intact win7. It is a Dell optiplex 745. The old owner was a gamer from what he left on the hdd.

With grubconfig I installed porteus on it within less than 10 minutes with an already functional porteus usb key. This included the download of porteus 3.1 xfce iso. I had an old version of porteus on the usb key with the grubconfig.xzm module on it. I used gparted and fdisk to have an idea of the structure of the box.

@bogomips:
And what is the good solution according to your judgement? 8)

@all:
We cannot say that there is no help on this forum. :D
I hope that we will not loose rgroner from a porteus or linux attack. It is been a while since he was on this thread.
Prendre son temps, profiter de celui qui passe.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Installed Porteus after Windows XP...how to dual boot?

Post#52 by Bogomips » 17 Mar 2015, 11:24

@ francois
The elimination of unknowns. :) If you want xp to boot first, then it's a good idea to have the boot flag on the xp partition, in any case, doing it manually using fdisk. (Not rely on the fact that some program may or may not do it for you) 8)

Btw good job with the dump :good: Did you have to pay to retrieve it?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#53 by francois » 17 Mar 2015, 14:24

The dump is called ecocenter here in Montreal. They disassemble the computer to recuperate rare metals. I did not asked and just picked it up. The week before leaving an old TV at the ecocenter, I asked the guy if I could pick up an old ampli-tuner. I was not as lucky. It would not function properly.

I wonder if I should not start a project which would recuperate these old computer boxes thru the installation of performing linux systems and giving them to poor children. Maybe I should try a few.
Prendre son temps, profiter de celui qui passe.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Installed Porteus after Windows XP...how to dual boot?

Post#54 by Bogomips » 18 Mar 2015, 12:34

phhpro wrote:A tad like putting the shard upside down with the eye on top, init? Spot on!
---------------WARNING------------------------OFF TOPIC--------------------------------------------------------
Sorry, but I'm lost in double dutch. If it's Shakespeare, it's a tad too literary for the likes of me. :sorry:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

thom_A
White ninja
White ninja
Posts: 11
Joined: 08 Mar 2015, 19:44
Distribution: lubuntu, kubuntu
Location: Canada

Re: Installed Porteus after Windows XP...how to dual boot?

Post#55 by thom_A » 18 Mar 2015, 18:41

donald wrote:---WARNING--OFF TOPIC-----
Hi Ed
I'm really a big big fan of disk imaging programs
I got used to them back in the (windows) days..long,long ago....
I'm a big fan of backing up partitions as well, or whatever inside that partition to an image. Been using Paragon 10 for years and it hasn't failed me. It's a Win utility program with a straight-forward GUI that you can run to backup/restore main drive as well as neighboring partitions. It's got a linux-based Recovery media builder utility to create bootable CD or USB, which you will need, of course, outside of Windows. The bootable recovery media it creates starts pretty slow, but it's fully graphical and easy to use.

Paragon has a free edition (version 14) for home users, which I found out just a while ago. (Might as well start using this free edition and discard my older version.) ;)

rgroner
Black ninja
Black ninja
Posts: 58
Joined: 23 Oct 2014, 14:23
Distribution: Porteus 3.0.1
Location: U.S.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#56 by rgroner » 22 Mar 2015, 03:08

donald wrote:To be sure,I made a fresh XP installation :crazy: onto sda1 (ntfs) and then a porteus installation to sda2 (ext2) + bootloader
reboot into porteus,(as root) adding
LABEL xp
MENU LABEL Windows XP
KERNEL /boot/syslinux/chain.c32
APPEND hd0 1

to /boot/syslinux/porteus.cfg...save file..rebooted..select XP..and it worked...
We have a winner! :beer: :Yahoo!:

Finally got to the reinstall today, and then reinstalled Porteus, and just basically did what Donald said. Works just fine.

It must have been the repartitioning before that messed something up, and then yes, you guys are probably right, i must have had two boot partitions specified when it was giving me the error.

It all works great now, which makes me pretty happy because I couldn't make heads or tails of all of the other suggestions. :%) Or at least, I'm glad I didn't have to at this point.

Now I can get back to trying to put my Kerbal on the Mun. 8)

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Installed Porteus after Windows XP...how to dual boot?

Post#57 by donald » 22 Mar 2015, 03:18

Hey rgroner..back in town...
I'm glad to see that you got it sorted...at the end.. :good:
regards

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#58 by francois » 22 Mar 2015, 03:52

Thumbs up for donald. :D

@rgroner :

It would be nice as it is fresh in you mind that you summarize the steps that permitted you to solve the problem, including those steps that you think you should have taken in the first place. Some kind of how to for the newcomer to porteus on installing porteus multiboot windows-porteus: porteus replacing a previous linux os and superceding grub2 by syslinux.

Then you could mark it solved. :)
Prendre son temps, profiter de celui qui passe.

rgroner
Black ninja
Black ninja
Posts: 58
Joined: 23 Oct 2014, 14:23
Distribution: Porteus 3.0.1
Location: U.S.

Re: Installed Porteus after Windows XP...how to dual boot?

Post#59 by rgroner » 25 Mar 2015, 13:01

Ok, here's the steps, but it's basically just a repeat of what Donald said.

To have Windows XP and Porteus dual boot:
  • Partition the hard disk into two partitions. You can actually just live boot with Porteus and use gparted to do this.
  • Install Windows XP to the first partition. After install, verify system boots up to Windows XP without issues.
  • Boot from Porteus Live CD/key and run Porteus installer.
  • Install Porteus to the second partition, and have Porteus install the bootloader.
  • Reboot the system and verify it now boots into Porteus
  • Modify the /mnt/sda2/boot/syslinux/porteus.cfg file and, in the same style as the other entries, add the following entry:

    Code: Select all

    LABEL xp
    MENU LABEL Windows XP
    KERNEL /boot/syslinux/chain.c32
    APPEND hd0 1
    
  • Reboot and there should now be an option to boot to Windows XP in the boot selection screen.
Thanks all! The kids have stable/safe computers for schoolwork now, and can boot into Windows XP to play some Terreria with me. :beer: Awesome.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Installed Porteus after Windows XP...now broke. [Solved

Post#60 by Bogomips » 25 Mar 2015, 14:04

Doesn't matter if it's a repeat. Seems to me nice and clear :good:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply