LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   usbimg2disk.sh - 'This is not a directory' (https://www.linuxquestions.org/questions/slackware-installation-40/usbimg2disk-sh-this-is-not-a-directory-4175474168/)

gcamp689 08-21-2013 12:17 PM

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!

ottavio 08-21-2013 12:53 PM

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


gcamp689 08-21-2013 01:03 PM

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.

colorpurple21859 08-21-2013 02:19 PM

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.

Alien Bob 08-21-2013 02:31 PM

Quote:

Originally Posted by colorpurple21859 (Post 5013293)
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

Alien Bob 08-21-2013 02:33 PM

Quote:

Originally Posted by gcamp689 (Post 5013233)
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

gcamp689 08-21-2013 04:26 PM

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!


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