You are not logged in.

#1 2016-05-27 11:17:25

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Install BL within BL

Hello guys, I got an inquiry, that I'm already  on bunsenlab, is there any quick way to install BL to an external disk without the need to leave the system in order to  boot from with the installation media...  8.(

Offline

#2 2016-05-27 11:30:08

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Install BL within BL

Yes wink
I have no time now for details, but you can:
- switch to multi-user target
- from the console use rsync to copy your root file system to the external drive.
- if you have separate /var, /boot, /home, etc.. copy these over as well
- from the current BL install chroot into the /boot or /root filesystem on external drive
- from the chroot run grub-install and update-grub

Offline

#3 2016-05-27 11:36:29

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Install BL within BL

xaos52 wrote:

Yes wink
I have no time now for details, but you can:
- switch to multi-user target
- from the console use rsync to copy your root file system to the external drive.
- if you have separate /var, /boot, /home, etc.. copy these over as well
- from the current BL install chroot into the /boot or /root filesystem on external drive
- from the chroot run grub-install and update-grub

I want to install that default system from the squash file on the installation media, not my current system :8
maybe it's look like I need to mount the squash file first, then start from there?

Offline

#4 2016-05-27 15:44:37

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Install BL within BL

No problem:
Mount the install ISO first to get  access to the squash file.
Create a filesystem  on the external disk and mount it on a mountpoint of your choice.
Run unsquashfs using the squash file as input and the mounted filesystem on the external disk as destination.
Chroot into the destination file system and run grub-install and update-grub.

Offline

#5 2016-05-27 15:52:11

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Install BL within BL

xaos52 wrote:

No problem:
Mount the install ISO first to get  access to the squash file.
Create a filesystem  on the external disk and mount it on a mountpoint of your choice.
Run unsquashfs using the squash file as input and the mounted filesystem on the external disk as destination.
Chroot into the destination file system and run grub-install and update-grub.

So simple. Cool!  still is that going to give me the same result of the traditional installation? I mean when I see the installation running, there is a stage when the installer start to remove the live scripts and other unneeded stuff.. etc..  neutral

Offline

#6 2016-05-27 16:03:13

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Install BL within BL

Nope.
We are not running the installer.
Just copying files over.
Configuring the system will have to be done manually.
Cleaning up idem ditto.
Great fun smile

Offline

#7 2016-05-27 16:46:34

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Install BL within BL

xaos52 wrote:

Nope.
We are not running the installer.
Just copying files over.
Configuring the system will have to be done manually.
Cleaning up idem ditto.
Great fun smile

If you mean I need to to done everything manually such as fstab timezone networking hosts hostname locales grub apt tasksel ... cleaning up
I would rather reboot, boot the installation media, and start the GUI installer, that is way faster to me than those tasks...  roll

Offline

#8 2016-05-27 17:04:53

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Install BL within BL

If you mean I need to to done everything manually such as fstab timezone networking hosts hostname locales grub apt tasksel ... cleaning up

Yes, that is what I mean. All those are normally set up by the installer, but in this case the installer does not get run.

I would rather reboot, boot the installation media, and start the GUI installer, that is way faster to me than those tasks...  roll

Sensible choice.
Or copying your current installed system to external hard disk, as suggested first.

In the last case you will get all your settings for free.
Only thing that needs changing while you are in chroot is fstab entry for your root device. (The UUID must be the one for your hard disk filesystem.

Offline

#9 2016-05-27 17:22:48

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Install BL within BL

xaos52 wrote:

If you mean I need to to done everything manually such as fstab timezone networking hosts hostname locales grub apt tasksel ... cleaning up

Yes, that is what I mean. All those are normally set up by the installer, but in this case the installer does not get run.

I would rather reboot, boot the installation media, and start the GUI installer, that is way faster to me than those tasks...  roll

Sensible choice.
Or copying your current installed system to external hard disk, as suggested first.

In the last case you will get all your settings for free.
Only thing that needs changing while you are in chroot is fstab entry for your root device. (The UUID must be the one for your hard disk filesystem.

I see but it wouldn't be a clean system, plus would take a lot of tasks to do when you copy an existing system to another storage, e.g. to  exclude all these system's mount points and most tmp locations /dev/ /proc/ /sys/ /lost+found/  blah blah
plus to delete /etc/machine-id then edit fstab with UUID plus grub installation...
I wouldn't suggest that for any home user, I advice to install a fresh system and copy the old home over to that new system, unless of course that user did a lot of system-wide modifications here and there, like /etc  or even /usr/share/ , that time his/her old home wouldn't be just  sufficient to restore the system as it was before.. but at least he got his home to start over from  cool

Offline

#10 2016-05-27 18:57:00

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Install BL within BL

Use https://www.debian.org/releases/jessie/ … 03.html.en then reboot to the console and use https://github.com/BunsenLabs/bunsen-netinstall

Simples smile

EDIT: Actually, you can download and run the netinstall script from the chroot so no need to reboot big_smile

Last edited by Head_on_a_Stick (2016-05-27 18:57:45)

Offline

#11 2016-05-27 19:01:10

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: Install BL within BL

Head_on_a_Stick wrote:

Use https://www.debian.org/releases/jessie/ … 03.html.en then reboot to the console and use https://github.com/BunsenLabs/bunsen-netinstall

Simples smile

EDIT: Actually, you can download and run the netinstall script from the chroot so no need to reboot big_smile

No way, forget about it  ]:D

Offline

Board footer

Powered by FluxBB