LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 04-19-2024, 09:12 PM   #1
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
moving 15.0 install to a different partition/fs-type (?)


Hello,

I am interested in moving a bootable slackware64 15.0 install to a different partition on the same harddrive. With the old partition being type Ext4 and the new partition being type Xfs.

Is there any way I can do this without doing a whole new install process to the new partition? Like maybe formatting the new partition with Xfs, then copying all the files from the old partition? Or something like that?

The old partition boots with lilo from the mbr.
 
Old 04-20-2024, 11:29 AM   #2
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Original Poster
Rep: Reputation: 8
With no one replying, I tried a solution recommended for a different distro:

format the new partition
use "cp -a" to copy all the contents from the old partition to the new
edit the fstab for the new partition
edit the bootloader conf (in my case, lilo.conf)

It worked to copy files. But I did not end up with a working install on the new system. It booted, but by the time it got to the login prompt, it could not find any devices at all
 
Old 04-20-2024, 02:05 PM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,801

Rep: Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482
Did you chroot to the new fs, build a new initrd with the xfs module included, and run lilo?
 
1 members found this post helpful.
Old 04-20-2024, 06:42 PM   #4
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by Petri Kaukasoina View Post
Did you chroot to the new fs, build a new initrd with the xfs module included, and run lilo?
After you replied, I did try running lilo while chroot'd , I did not need to build a new initrd because I am just running the "huge.s" generic kernel.

But that did not help.
So then I erased the copy partition and started over again.

Before, I had booted from the source partition I had copied from.
This time I booted from the slackware dvd, mounted both partitions, then copied.

+ then edited fstab for the new partition location and fs-type
+ then chroot'd and ran lilo from the new destination partition
+ then edited lilo.conf , and tried to lilo
+ lilo gave me an error about not finding "proc/partitions" in the destination partition, so I manually added that.
+ and ran lilo again

And it worked.
 
1 members found this post helpful.
Old 04-21-2024, 04:51 AM   #5
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,801

Rep: Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482Reputation: 1482
Good that you got it working.
Quote:
Originally Posted by mw.decavia View Post
+ lilo gave me an error about not finding "proc/partitions" in the destination partition, so I manually added that.
On the install dvd, the setup image has a command for that, /sbin/mkbindmounts

Code:
#!/bin/bash
# Create bind mounts from / to /mnt for /dev/, /proc, and /sys.
# This may be useful for chrooting to a system partition mounted
# on /mnt (for example to run mkinitrd_command_generator.sh or to
# reinstall boot loaders).

mkdir -p /mnt/{dev,proc,sys}
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
 
1 members found this post helpful.
  


Reply



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
Moving a folder, versus moving its contents (within the same partition) the dsc General 7 06-29-2012 04:46 AM
Same fs type and fstab line gives different automount permissions for different disks chadwick Linux - General 3 08-04-2011 10:21 AM
Moving hard drive from one system type to another type SlowCoder Linux - Newbie 7 11-26-2007 10:38 AM
filesystem type unknown, partition type 0x7 crazyface_juicebox Linux - General 1 02-11-2007 11:50 PM
root (hd 0,0)Filesystem type unknown, partition type 0x7chainloader +1 ece30675 Linux - Distributions 5 07-20-2004 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration