LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-07-2023, 08:45 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Rep: Reputation: 271Reputation: 271Reputation: 271
What packages must I install rather than copy the files of?


I bought new (to me) computer. I used a USB drive to partition and format, then I copied my old hard disk over. I know this doesn't work for /proc or /dev , so I installed those packages, but it halts on boot when it gives me the first boot prompt. I can boot from the drive when I boot first from USB drive. I find no errors in the logs, though I think I see one scroll by. It has an SSD (the listing said HDD; I'm not used to the quiet and speed of an SSD.) so it goes by too fast for me to see. I suspect I need to install some package that I can't just copy over the files of. The CapsLock key doesn't even toggle its LED.
 
Old 09-07-2023, 10:16 PM   #2
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I keep my personal data in my user's directory in /home, so that is really all that I ever need to back up or restore. Then I just install slackware all over, my third party packages, copy my user's directory, and create a user of the same name with adduser, which asks me if I want to use that user's directory, and I say yes.

But you could reinstall the packages in the "a" set: slackware 15 uses pam, so it won't login without that. When you are just copying your hard disk over, did you preserve the permissions and ownerships? Did you just use "cp", or did you use "dd", or "rsync"? You may want to share more info about what you did to get accurate responses.
 
Old 09-07-2023, 10:37 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by slac-in-the-box View Post
I keep my personal data in my user's directory in /home
I do that too - doesn't everyone? Clearly my problem involves only system files. I hoped this would be a shortcut.

Quote:
Originally Posted by slac-in-the-box View Post
But you could reinstall the packages in the "a" set: slackware 15 uses pam, so it won't login without that.
I did all the aaa packages - think the rest can be copied. Figured out I needed pam and shadow, too.


Quote:
Originally Posted by slac-in-the-box View Post
When you are just copying your hard disk over, did you preserve the permissions and ownerships?
I used cp -urp
 
Old 09-07-2023, 11:12 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
It halts right after loading gpm, puts up a bunch of @. It detects the power switch, so it isn't completely dead. It's as though it no longer sees the keyboard, though it does beforehand. It still doesn't see the mouse, either one (I usually use a wireless but have a wired in my box of stuff.), even when I boot off the USB drive. I built a clean kernel - no dice.
 
Old 09-07-2023, 11:38 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,967

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I reinstalled every package - still halts. I noticed that, after pressing the power button, the display shows the shutdown process. It seems to be ignoring the keyboard only.
 
Old 09-07-2023, 11:48 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
When you copy a Slackware installation from one drive to another, you need to verify 2 things:
  1. That the correct root partition is listed in LILO/eLILO/GRUB config file
  2. That the correct partition is listed as the root partition in /etc/fstab
The "correct" partition being the one you want to boot into, as seen by the kernel.

If you're doing what it sounds like, (i.e: copying a non-running installation to another drive), then you don't have to worry about /proc, /dev, /sys or /run. Just copy them as they are. The kernel will take care of them.
 
Old 09-07-2023, 11:59 PM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
I'll extend my post above by saying that I'd advise against copying a running installation.

If there is no other way, then boot the machine using a live distro and use that to mount the source and target drives and then copy everything over.

For this purpose, I'd recommend Alien Bob's live Slackware iso: https://download.liveslak.org/ It'll boot from a Ventoy USB stick.
 
  


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
A rather intriguing and, I think, rather disturbing thought on American (World?) politics sundialsvcs General 9 03-30-2016 07:57 AM
Files have owner as uid number rather than username prollocks Red Hat 4 11-18-2009 07:08 PM
New apache install, php files are downloading rather than displaying abefroman Linux - Software 2 10-17-2009 06:25 PM
Using ISO files on shared drive rather than CDs bajones Linux - Newbie 2 06-23-2008 11:21 AM
Media files download rather than stream adrenaline_NZ Linux - Networking 10 01-18-2005 12:00 AM

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

All times are GMT -5. The time now is 10:11 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