How to install Porteus on the same partition with Windows?

Post here if you are a new Porteus member and you're looking for some help.
mariusikaEu
Ronin
Ronin
Posts: 2
Joined: 16 Dec 2016, 18:14
Distribution: Lubuntu
Location: Romania

How to install Porteus on the same partition with Windows?

Post#1 by mariusikaEu » 16 Dec 2016, 18:20

Hi guys. I'm new in this world of Linux, and I need some help. At this moment I have a laptop running Windows 10 and I have just 1 partition and I prefer to keep it like that. My question is how can I install Porteux XFCE on the same partition where Windows 10 is installed. I know on Ubuntu and other flavors like Lubuntu, Xubuntu, etc is a program named Wubi to do this. So any methods for Porteus installation of this kind? :unknown:

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

Re: How to install Porteus on the same partition with Window

Post#2 by Bogomips » 16 Dec 2016, 22:16

Welcome to Porteus. There is no need to 'install' Porteus, because it is a live system, where all the action is in memory{ram). You need to download one of the ISO files from: http://porteus.org/porteus-mirrors.txt. Then next you just need to use the appropriate boot loader.

Ed_P has gone nto this in some detail. I am sure that he will be able to give you a blow by blow account of how you will get yourself good to go on Porteus! :wink:
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
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: How to install Porteus on the same partition with Window

Post#3 by Ed_P » 16 Dec 2016, 22:31

Hello mariusikaEu.

What I do on new EFI machines is install Grub2Win, then in the grub.cfg it creates I create a menu to boot the Porteus ISO.

-update-

An example grub2 Porteus menu for you to use.

Code: Select all

# start-grub2win-user-section   ********************************************************
#
menuentry "Porteus Cinnamon ISO" --class slackware   --class icon-porteus  {
     echo Boot disk address is: $root
     echo Prefix is:                  $prefix
     echo The boot mode is:    $grub2win_bootmode

     set linux_folder=porteus3.2
     set iso=/ISOs/Porteus-CINNAMON-v3.2.1-x86_64.iso
     search -f $iso --set=root

     set linux_drv=/mnt/sda5/$linux_folder

     echo ISO root is:          $root
     echo ISO is:                 $iso

     echo Porteus folders:   $linux_drv
     set porteus_parms="changes=EXIT:$linux_drv/changes/porteussave.dat volume=33 reboot=cold extramod=$linux_drv/Modules"

     echo Porteus parms are: $porteus_parms
     echo
     loopback loop $iso
     sleep -v -i 17
     echo "Loading Linux"
     linux (loop)/boot/syslinux/vmlinuz from=$iso $porteus_parms
     echo "Loading initrd"
     initrd (loop)/boot/syslinux/initrd.xz
}
My $linux_drv folders contain my Modules folder for .xzm files to be loaded when Porteus boots and my changes folder which contains my save.dat file used to save system changes, and a couple of other Porteus related folders.
Ed

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

Re: How to install Porteus on the same partition with Window

Post#4 by Bogomips » 17 Dec 2016, 12:52

^ Looks difficult for Newbie.
@mariusikaEu Do not hesitate to ask if you do not understand anything. :)
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
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: How to install Porteus on the same partition with Window

Post#5 by Ed_P » 17 Dec 2016, 15:41

Bogomips wrote:^ Looks difficult for Newbie.
Yup. But actually it's not that hard. There are only 4 lines that you need to tweak to fit your scenario.

Code: Select all

     set linux_folder=porteus3.2
This is the name of the folder you will create on your C: drive to hold the various Porteus related subfolders you will use. Such as a folder for the xzm modules that you will want to add to Porteus. Maybe a different browser or an updated flashplayer plugin and etc. I named mine to match the version of Porteus it relates to, you could name your's simply Porteus or Linux or mytests, etc.

Code: Select all

    set iso=/ISOs/Porteus-CINNAMON-v3.2.1-x86_64.iso
This the name of the Porteus ISO file that you downloaded and a folder where you stored it. I have multiple ISO files and store them all in a single folder named ISOs, you may use the same approach or store it in a folder with a different name, like Downloads for example.

Code: Select all

     set linux_drv=/mnt/sda5/$linux_folder
This one is more complicated if you're new to Linux. This one refers to the location of the folder you created to hold the various Porteus related folders. But there are only 2 characters in that whole line that need to be tweaked to fit your scenario and they are the "a5".

The "a" is Linux's way of addressing drives in a machine. "a" for the first drive, "b" for the second drive, "c" for a third and etc. 99% of the time a machine has only 1 drive, the hard drive, and it is the "a" drive. If you had a USB drive also it would be the "b" drive.

Now comes the tough part, the "5". The "5" represents the partition number of the drive you are using for your files. Windows uses letters to represent a drive's partition, C: being the most common, and with modern machine's hard drives it doesn't represent the first or even the third partition now days. Modern machines have hard drives with many hidden partitions, for EFI, for Recovery, for vendor diagnostics, etc. Linux counts the partitions, the visible and the invisible ones, starting with the number 1. On my hard drive my C: drive is number 4 and a partition that I created for my non-system files is number 5. D: in Windows.

How do you know what number to use for your machine? You can take a guess, it will either work or not. Or you can use Windows' Disk Management to see your hard drive's partitions and count them.

Finally the last line to be changed:

Code: Select all

     set porteus_parms="changes=EXIT:$linux_drv/changes/porteussave.dat volume=33 reboot=cold extramod=$linux_drv/Modules"
A LOT of stuff on this one. But when you're starting out you can delete most of it. Start with:

Code: Select all

     set porteus_parms="extramod=$linux_drv/Modules"
A lot easier to discuss than a stupid partition number eh?

Have fun. :good:
Ed

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

Re: How to install Porteus on the same partition with Window

Post#6 by Bogomips » 17 Dec 2016, 16:04

Thanks, Ed. Now understand this somewhat better. 8)
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

mariusikaEu
Ronin
Ronin
Posts: 2
Joined: 16 Dec 2016, 18:14
Distribution: Lubuntu
Location: Romania

Re: How to install Porteus on the same partition with Window

Post#7 by mariusikaEu » 17 Dec 2016, 19:16

Thanks to all :D

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

Re: How to install Porteus on the same partition with Window

Post#8 by Ed_P » 17 Dec 2016, 20:06

^ You're welcome.

BTW Grub2Win doesn't repartition the hard drive or mess with the MBR like many multi-boot options. Rather it simply adds grub2 to the Windows boot manager. When you boot you will see a Windows boot menu with Windows on the top as the default followed by a new option titled Grub2 for Windows. Thus if you get lost with Porteus, or grub2 even, you can simply reboot and select Windows to be back to your normal system.
Ed

Vic
Samurai
Samurai
Posts: 119
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Re: How to install Porteus on the same partition with Window

Post#9 by Vic » 18 Dec 2016, 21:48

On my wife's win 7 computer I installed Easy BCD. It adds Porteus to the boot menu.

The Porteus ISO needs to be on the "C" partition. The Porteus folder in the ISO needs to be copied to the "C" partition also.

That is how I started using Porteus.

Vic

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: How to install Porteus on the same partition with Window

Post#10 by brokenman » 18 Dec 2016, 22:33

Thanks Vic, and welcome!

I also used it on win7 but I don't think Easy BCD works on windows 10.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: How to install Porteus on the same partition with Window

Post#11 by Ed_P » 19 Dec 2016, 01:04

The EasyBCD webpage indicates it supports Windows 10 and UEFI even. It's come a long ways.

Grub2Win doesn't require the Porteus ISO to be located on the C: drive or files to be extracted from the ISO and stored on the C: drive in order to be booted. I store my ISOs and Porteus support folders/files on my D: drive.

-update-

Porteus support folders/files = Modules, Optional, Downloads, save.dat file
Ed

Post Reply