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-08-2024, 08:24 AM   #1
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Rep: Reputation: 16
I Asked CHATGPT how to install Slackware 15 with persistence on a USB


I asked CHATGPT how to install Slackware 15 on a USB with persistence, can you give it a look and tell whether this is a good answer?

Quote:
To install Slackware 15 on a USB drive with persistence from Ubuntu Linux, you'll need to follow these steps:

Download Slackware 15 ISO:
Go to the official Slackware website and download the Slackware 15 ISO file.

Prepare the USB Drive:
Insert your USB drive into your Ubuntu machine.
Open a terminal window.

Identify the USB Drive:
Run the command lsblk or sudo fdisk -l to identify the device name of your USB drive (e.g., /dev/sdX). Be cautious with this step to avoid overwriting your system drive.

Format the USB Drive:
Use the mkfs command to format the USB drive with a filesystem that supports persistence, such as ext4. Replace /dev/sdX with the actual device name of your USB drive:

bash

sudo mkfs.ext4 /dev/sdX1

Create a Persistence File:

Create a persistence file that will store your changes and data. Replace SIZE with the desired size in megabytes (MB), such as 1GB (1024MB) or 2GB (2048MB):

bash

sudo dd if=/dev/zero of=/path/to/persistence/file bs=1M count=SIZE
sudo mkfs.ext4 /path/to/persistence/file

Replace /path/to/persistence/file with the actual path where you want to create the persistence file.

Mount the USB Drive and Persistence File:

Create mount points and mount the USB drive and persistence file:

bash

sudo mkdir /mnt/usb
sudo mount /dev/sdX1 /mnt/usb
sudo mkdir /mnt/persistence
sudo mount /path/to/persistence/file /mnt/persistence

Extract Slackware ISO:

Extract the contents of the Slackware ISO to the USB drive:

bash

sudo mount -o loop /path/to/slackware15.iso /mnt/iso
sudo cp -a /mnt/iso/* /mnt/usb/
sudo umount /mnt/iso

Configure Bootloader:

Install a bootloader (e.g., GRUB) to the USB drive to make it bootable. Adjust the paths as needed:

css

sudo grub-install --force --removable --boot-directory=/mnt/usb/boot /dev/sdX

Configure Persistence:

Edit the GRUB configuration to include the persistence option. Open the file /mnt/usb/boot/grub/grub.cfg in a text editor and add persistence to the kernel command line options.

Unmount and Eject:

Unmount the USB drive and persistence file, then safely eject the USB drive:

bash

sudo umount /mnt/usb
sudo umount /mnt/persistence
sudo eject /dev/sdX

Boot from USB:
Insert the USB drive into the target system and boot from it. When booting, select the option for persistence to save your changes and data.

Keep in mind that these steps assume some familiarity with Linux command line operations and system administration. Double-check the device names (e.g., /dev/sdX) and paths to avoid data loss.
 
Old 04-08-2024, 08:35 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 590

Rep: Reputation: Disabled
That AI answer is just rubbish. As with all these answers, they sound sane on the surface but lead you nowhere useful.
Why don't you just RTFM? Creating a Slackware Live USB stick with persistence is well-documented.
 
4 members found this post helpful.
Old 04-08-2024, 09:19 AM   #3
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Original Poster
Rep: Reputation: 16
Ok, thanks.
 
Old 04-08-2024, 07:36 PM   #4
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by jamasoo View Post
I asked CHATGPT how to install Slackware 15 on a USB with persistence, can you give it a look and tell whether this is a good answer?
I hate to ask, but why didn't you just follow the steps chatgpt gave you?
 
Old 04-08-2024, 07:43 PM   #5
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Just… just use the tools already existing to make a live usb with persistence…https://git.slackware.nl/liveslak/.

There are ready made ISOs and plenty of information out there to do this. Don’t use ChatGPT.
 
1 members found this post helpful.
Old 04-08-2024, 09:31 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
As an aside, I think this thread illustrates the danger of AI.

It sounds like it knows what it is talking about even when it doesn't.

And people believe it because they will believe stuff they see on computer screens when they won't believe the same stuff if it happened right in front of their lying eyes.

Grump, grump, grump.

Last edited by frankbell; 04-08-2024 at 09:34 PM.
 
2 members found this post helpful.
Old 04-09-2024, 01:16 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by frankbell View Post
As an aside, I think this thread illustrates the danger of AI.

It sounds like it knows what it is talking about even when it doesn't.

And people believe it because they will believe stuff they see on computer screens when they won't believe the same stuff if it happened right in front of their lying eyes.
Oh, yes, it looks like it is something useful and is based on some kind of verified knowledge, but it is actually just an enhanced bullshit generator.
But many of us (humans) generate an answer to any question in a similar way. From this point of view it is almost perfect (just not intelligent at all).
 
1 members found this post helpful.
Old 04-09-2024, 10:08 AM   #8
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
Trust is something you earn.
 
1 members found this post helpful.
Old 04-10-2024, 05:14 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
I thought he asked AL the plumber.
 
Old 04-11-2024, 05:47 AM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,973

Rep: Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551Reputation: 1551
@jamasoo, that was interesting. Wow! I sure wouldn't follow that. It is good you asked first. As others have pointed out there are much simpler solutions. This is what I would do.

Create a directory to hold the following two files.

Go here and download the slackware64-live-15.0.iso to this created directory.
https://slackware.nl/slackware-live/...e64-15.0-live/

Then go here and download the iso2usb.sh script to the same directory.
https://slackware.nl/slackware-live/liveslak/

From the CLI (I use Konsole):
Change to the directory those to files were download to.
Insert the USB you want to put the ISO on and issue this command. This will create a USB with persistence. Replace the "/dev/sdc" with your device.
Code:
bash iso2usb.sh -i slackware64-15.0-live.iso -o /dev/sdc
If you later want an updated version of the ISO you can run this. The "-r" is refresh the ISO without touching user content.
Code:
bash iso2usb.sh -i slackware64-15.0-live.iso -o /dev/sdc -r
 
Old 04-11-2024, 06:29 AM   #11
_blackhole_
Member
 
Registered: Mar 2023
Distribution: FreeBSD
Posts: 88

Rep: Reputation: 67
Quote:
Originally Posted by frankbell View Post
As an aside, I think this thread illustrates the danger of AI.
And of course it's not AI anyway... it's just a form of "AI"....... which is now one of these loose terms, which has been muddied over the last few decades.

What it definitely is not is "AGI". We're very far away from that, but unfortunately the marketing departments of these "AI" companies can deceive the majority of people and the business world simply has the "in it it to win it" philosophy, as they did with "social media" beginning in the last decade, despite "social media" yielding no tangible benefits to businesses. The same goes with "AI" - we will get to the stage where there will be huge blunders and teams of people having to check the output, the bubble may burst then and we move onto the next fad, once the world gets the full grasp of it's pros and cons and the novelty wears off (e.g. sorry but no you can't replace all of those workers, kthanxbai)...

The OP of this thread already hints at future posts on these kind of sites, where the OP posts some output and asks others to check it for them. Eventually when those responding see "ChatGPT", they will walk on by or call them out on it... then eventually those posting these will know to omit the fact that they used ChaptGPT in the first place (just as they often omit all of the dodgy blogs or youtube videos they followed, leading up to the current mess), or similar, and the circus will continue...

It will lead to the typical "we are setting up a something-or-other server on Red Hat whatever-version and running whatever it doesn't work and we need urgent assistance" threads where some guy is trying to get volunteers to do his paid job for him, but now with ChatGPT thrown into the mix - as if that wasn't bad enough already. In my honest opinion, 90% of IT is f***ed before you even start filtering out the remaining 10%. And it's in this sorry state due to corporate greed and mismanagement and rushing out poor quality solutions which are engineered to serve a business interest, rather than in building solid foundations and doing things correctly.

Last edited by _blackhole_; 04-11-2024 at 06:54 AM.
 
  


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
LXer: Machine Learning in Linux: chatGPT-shell-cli – chatGPT and DALL-E tool LXer Syndicated Linux News 0 04-14-2023 11:30 PM
Interview with Gary Marcus about AI and ChatGPT frankbell General 15 02-17-2023 08:27 PM
LXer: 5 Ways a Linux User Can Make Use of ChatGPT LXer Syndicated Linux News 0 01-25-2023 12:41 PM
LXer: How ChatGPT can help Linux users on their Journey LXer Syndicated Linux News 0 01-25-2023 12:51 AM

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

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