LinuxQuestions.org
Help answer threads with 0 replies.
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 08-21-2013, 12:17 PM   #1
gcamp689
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
usbimg2disk.sh - 'This is not a directory'


Hi all,

I'm having some trouble working with the usbimg2disk script for Slackware 14.0. Downloaded the Slackware tree using wget, but when attempting to use './usbimg2disk.sh -f -s /slackware-tree/slackware-14.0 -o /dev/sdc/' it returns with 'This is not a directory.' I've tried moving the tree, renaming, but with no luck.

I am a general Linux newbie, so maybe I'm missing something simple. Any help is greatly appreciated!
 
Old 08-21-2013, 12:53 PM   #2
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
I have never used that script. If you are in a hurry to install Slackware and if you have another usb stick with some live Linux image, just copy the Slackware kernel and initrd.img into the /syslinux folder, then edit syslinux.cfg adding a line to boot the Slackware installer.
Code:
label Slackware_installer
  kernel bzImage
  append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 nomodeset SLACK_KERNEL=huge.s
 
Old 08-21-2013, 01:03 PM   #3
gcamp689
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I've been able to boot and get the installer up and running just fine from another USB stick, but I was unable to install the packages. For source media I used a USB stick that I mounted where I placed the packages I extracted from an iso. I ended up with either a three second install or only being able to sketch the 'a' package. I thought that using usbimg2disk to get the whole tree to the directory might help, but now I'm running into the directory problem.
 
Old 08-21-2013, 02:19 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
The usbimg2disk.sh only copies the files needed to get the installer up and running it doesn't include the installation packages. If you have a good internet connection you can install packages from the internet. you will need to know name of the site you will be installing from and the directory path to the packages at that site. another option is to copy the dvd/cd iso to usb make some new directories to mount usb and the iso file and use the premounted directory option as source.
 
Old 08-21-2013, 02:31 PM   #5
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 colorpurple21859 View Post
The usbimg2disk.sh only copies the files needed to get the installer up and running it doesn't include the installation packages.
You're wrong there. That is exactly what the parameter "-s /slackware-tree/slackware-14.0" is for.

Eric
 
1 members found this post helpful.
Old 08-21-2013, 02:33 PM   #6
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 gcamp689 View Post
Hi all,

I'm having some trouble working with the usbimg2disk script for Slackware 14.0. Downloaded the Slackware tree using wget, but when attempting to use './usbimg2disk.sh -f -s /slackware-tree/slackware-14.0 -o /dev/sdc/' it returns with 'This is not a directory.' I've tried moving the tree, renaming, but with no luck.

I am a general Linux newbie, so maybe I'm missing something simple. Any help is greatly appreciated!
That error is the result of the check:
Code:
if [ ! -d "$REPODIR" ]; then
    echo "*** This is not a directory: '$REPODIR' !"
    exit 1
It means that your parameter value "/slackware-tree/slackware-14.0" does not exist, or is not a directory.
What is the output of
Code:
ls -la /slackware-tree/slackware-14.0
?

Eric
 
Old 08-21-2013, 04:26 PM   #7
gcamp689
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Found the problem! For some reason cd ~ would not locate the file, but cd / and typing the full filepath fixed the problem. I think I may need to re-download the Slackware tree though. I'm currently getting

Code:
rsync: mkstemp "/mnt/usb.djwdzR/slackware-14/slackware/a/.index.html?C=M;O=A.eGkukD" failed: Invalid argument (22)
rsync: mkstemp "/mnt/usb.djwdzR/slackware-14/slackware/a/.index.html?C=N;O=D.rqQL7H" failed: Invalid argument (22)
rsync: mkstemp "/mnt/usb.djwdzR/slackware-14/slackware/a/.index.html?C=S;O=A.kxVcXM" failed: Invalid argument (22)
Any ideas? Thanks for the help and the quick replies!
 
  


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
usbimg2disk.sh fails in current piratesmack Slackware 6 11-26-2010 02:27 PM
Username & Password Sync Fedora Directory and Microsoft Active Directory karnac01 Fedora 4 07-19-2010 12:51 AM
[SOLVED] USB bootstick, usbimg2disk.sh and OEM recovery partition catkin Slackware 15 07-01-2010 02:54 AM
usbimg2disk.sh fails on dependencies check zavko Slackware 1 02-11-2010 10:11 AM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM

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

All times are GMT -5. The time now is 05:46 AM.

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