LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2017, 12:30 AM   #1
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Rep: Reputation: 10
Slackware live unable to Transfer ISO content to USB stick


Hey all, Im not very good at linux at all. I have been messing around with Slackware for about 15 years.

Im trying to make my usb drive persistant.
Im trying to transfer ISO content to USB stick. Im running the live version of Slackware64-live-plasma-current from a USB stick. From there i am trying to run the ./iso2usb.sh -i slackware64-live-plasma5-current.iso -o /dev/sdc -c 40% -P command. I get the following error

./iso2usb.sh: line 561: /usr/bin/mktemp: Input/output error
FAILED at line 561
--- Cleaning up the staging area...

Im sure im just doing something stupid wrong.

any ideas?
 
Old 07-08-2017, 05:59 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Strange, I can not reproduce this error when starting the PLASMA5 Live in a virtual machine. You are running that command as root?
 
Old 07-08-2017, 07:21 AM   #3
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Alien Bob View Post
Strange, I can not reproduce this error when starting the PLASMA5 Live in a virtual machine. You are running that command as root?
I am running as root. I'm trying to do this while running slackware live from a usb. Would that have something to do with it?
 
Old 07-08-2017, 07:55 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Shot in the dark: isn't /dev/sdc the device name of the USB stick from which you are running Slackware Live, instead of the name of the target USB drive?

Forget it. Line #561 has nothing to do with the target. Sorry for the noise.

PS I didn't see your answer before editing.

Last edited by Didier Spaier; 07-08-2017 at 08:07 AM. Reason: Two last lines added.
 
Old 07-08-2017, 08:01 AM   #5
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Didier Spaier View Post
Shot in the dark: isn't /dev/sdc the device name of the USB stick from which you are running Slackware Live, instead of the name of the target USB drive?
I am running live from /dev/sdc. I was under the impression that I could run from the dev usb and then run the .sh. to wipe the usb and make it persistent. I'm sure this has something to do with it.

Last edited by Hooks123; 07-08-2017 at 08:42 AM. Reason: Auto correct
 
Old 07-08-2017, 01:06 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I'm pretty sure it doesn't work that way. If you wipe the drive while the OS is running off it, you won't have an OS anymore. You will either need another USB drive or another Slackware install to be able to create a persistent install.
 
1 members found this post helpful.
Old 07-08-2017, 03:12 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Let me do another guess. You transfered the ISO to your USB stick using 'dd' or something similar. Your resulting USB stick contains a Slackware Live on a read-only medium, because the filesystem of the ISO was also transfered to the USB stick. The ISO filesystem is iso9660 which is a read-only filesystem (used for CDROM and DVD).

If that is true, that USB stick can not be made writable by the iso2usb.sh script. You need to re-create the USB Live OS, on a computer running Linux. You can not o this when running the Live OS on the USB stick, because you would attempt to wipe that what you want to use.
You need the ISO image, plus the iso2usb.sh script, and use the iso2usb.sh script to transfer the content of the ISO file to the USB stick. That action will add persistence to the USB stick automatically (persistent data written to a directory called "/persistence") but using the parameter "-P" like you showed will create a persistence file instead, which is equally fine.

Running off a iso9660 filesystem would explain the input/output error of the mktemp command.
 
3 members found this post helpful.
Old 07-09-2017, 01:48 AM   #8
kyknos123
LQ Newbie
 
Registered: Jan 2016
Posts: 18

Rep: Reputation: Disabled
Maybe it is run as isoscan from custom grub2 menu in the usb as iso container,If you have a choice for grub menu in slackware, That's how I run them most distributions to testing
 
Old 07-09-2017, 08:44 AM   #9
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Ok, I loaded Slackware 14.2 on my computer which works great as always. Im not sure how to prepare the USB drive to be able to run the iso2usb.sh

I have iso2usb.sh and the .iso in my downloads directory logged in as root.

When i run the .sh i got the following error too may clusters for filesystem - try more sectors per cluster Failed at line 547.

I did a cfdisk /dev/sdb and here are the results
free space
/dev/sdb1 100M EFI ssystem
/dev/sdb2 29.8G Linux filesystem

Is this corret.

Again, Sorry for not understanding.

Brian

Last edited by Hooks123; 07-09-2017 at 08:59 AM.
 
Old 07-09-2017, 09:00 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Hooks123 View Post
Ok, I loaded Slackware 14.2 on my computer which works great as always. Im not sure how to prepare the USB drive to be able to run the iso2usb.sh

I have iso2usb.sh and the .iso in my downloads directory logged in as root. im getting the Permission Denied error when trying to run the iso2usb.sh.
The permission denied error is probably caused by the fact that the script is not marked executable. That happens when you download scripts from the internet.
Solution:
Code:
chmod +x iso2usb.sh
And then you can write the USB stick again, making it persistent:
Code:
./iso2usb.sh -i slackware64-live-plasma5-current.iso -o /dev/sdb -c 40% -P
I used "/dev/sdb" in the commandline example above because that is what your cfdisk shows. In your original post you mentioned "/dev/sdc" so please double-check before continuing. The 'iso2usb.sh' script will show you the characteristics of the device before it starts overwriting stuff, and you will get the chance to Ctrl-C and abort the script if you picked the wrong device.

Quote:
I did a cfdisk /dev/sdb and here are the results
free space
/dev/sdb1 100M EFI ssystem
/dev/sdb2 29.8G Linux filesystem

Is this corret.

Again, Sorry for not understanding.

Brian
This is correct for the read-only USB Live version which you created by simply 'dd'-ing the ISO to the USB stick.
 
1 members found this post helpful.
Old 07-09-2017, 09:21 AM   #11
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
Thanks Alien.

Im now getting the following error too may clusters for filesystem - try more sectors per cluster Failed at line 547.

Im not sure what i need to do to properly prepare the usb to make the .sh work.

thanks again
 
Old 07-09-2017, 10:49 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I've seen it happen that the USB stick is not perfectly wiped by the script, if previously the USB stick contained Slackware Live that was 'dd'-ed to the stick directly from the ISO file.
What I did in such a case was: use 'dd' to wipe the beginning of the USB stick. The iso2usb.sh script may be confused by the remnants of the previous Slackware Live Partition and this 'dd' command will wipe the first 10 MB of the USB stick, hopefully enough to wipe all partition data (something that gdisk should have done in the script but which it apparently fails to do):
Code:
dd if=/dev/zero of=/dev/sdb bs=1M count=10
Note that this will irrevocably write 10 MB of zeroes to the device /dev/sdb so please check in advance if /dev/sdb is indeed your USB stick.
After executing this 'dd' command, try your iso2usb.sh command again.
 
1 members found this post helpful.
Old 07-09-2017, 11:04 AM   #13
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
I tried the dd if=/dev/zero of=/dev/sdb bs=1M count=10 code and then reran the iso2usb.sh command. Im getting the same error. Too many clusters for filesystem. FAILED at line 547.

Is there a way to completely wipe out my usb and run the iso2usb.sh again?
thanks

Last edited by Hooks123; 07-09-2017 at 11:55 AM.
 
Old 07-09-2017, 01:37 PM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
That line which causes the error is:
Code:
mkdosfs -s 2 -n "DOS" ${TARGET}1
Can you try editing that line and change it to (adding "-F12" to indicate a 12bit FAT):
Code:
mkdosfs -F12 -s 2 -n "DOS" ${TARGET}1
And then try running the iso2usb.sh commandline again?
If that does not make any difference, could you try this line instead (leaving out some instead of adding some)?
Code:
mkdosfs -n "DOS" ${TARGET}1
.. and then re-run the iso2usb.sh command.
 
2 members found this post helpful.
Old 07-09-2017, 02:04 PM   #15
Hooks123
Member
 
Registered: Aug 2014
Location: Ohio
Distribution: Slackware64 Current
Posts: 69

Original Poster
Rep: Reputation: 10
mkdosfs -n "DOS" ${TARGET}1 seemed to have worked. It is now copying files from ISO to USB.

Thanks a bunch Alien Bob. I appreciate everything that you do on the Slackware project. Great work.
 
  


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
Download Live Slackware Linux Hybrid-ISO (for USB-Pendrive)? Xeratul Slackware 5 07-27-2016 03:06 AM
[SOLVED] Debian Live iso on USB stick not able to install wireless drivers ShaneRoach Debian 6 02-05-2014 10:25 PM
LXer: I'm using Debian Live-based Tails from a live USB stick to preserve privacy and anonymity LXer Syndicated Linux News 0 01-09-2012 11:50 AM
it will very help if: I download CentOS and create live CDROM and live usb stick lse123 Linux - Server 2 09-24-2011 11:21 AM

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

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