LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Install Slackware to another partition (https://www.linuxquestions.org/questions/slackware-installation-40/install-slackware-to-another-partition-4175716511/)

ozanbaba 09-07-2022 07:52 AM

Install Slackware to another partition
 
Hello All,

I am after method to install Slackware on another partition.
First of all, Slackware64 15.0 is already installed on one partition. Secondly, I want to install Slackware64 15.0 onto another partition on the same machine. I though about doing dd to the new partition. I don't know if there are any caveats to watch for that. I prefer to do it without booting with a boot disk or USB, hence why I didn't went doing dd and see if it works.
What do you all recommend?

elcore 09-07-2022 08:25 AM

Well I'd just copy:
Code:

bin etc lib lib64 sbin usr var
And make new directories like boot, dev, home, mnt, proc, root, run, sys, tmp, manually as needed.

Note 1: /etc/fstab must be changed on the clone, to point at the new partition.
Note 2: refer to the clean install to find out correct permissions for these new directories.

I'm sure you could use dd also, and there are multiple other cloning tools.

rkelsen 09-07-2022 04:34 PM

Install Slackware to another partition
 
Copying a system while it's running is not a good idea. There are several reasons for this. IME, it works best to clone the system while it is offline.

The best way to do this is to boot from a live distro, then mount the two partitions and copy the installed Slackware to the spare partition.

Any Linux live CD/DVD/USB will do, as long as it can read & write to & from the filesystems you use.

colorpurple21859 09-07-2022 05:26 PM

I second coping files using live distro, edit fstab / for new partition.
The other option is to boot slackware installer bzImage and initrd.img from hard drive, instead of using a usb or boot-disk.

ozanbaba 09-08-2022 01:20 PM

So far, I formatted the parition. This time, I put LVM on it. If I did that at the first place with the current system, I did not have to do all those install on different partition and move data thing. I'll put all I did here so others may see and use it themselves:
I formatted the partion, put LVM on it, and created the file system. I installed all slackware packages like this:
Code:

upgradepkg --install-new --reinstall */*.t?z
Now I can chroot to it so I changed root password and created a new user. Theoretically I should able to boot to it now. I'll do that new.


All times are GMT -5. The time now is 02:06 AM.