LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-13-2015, 08:55 PM   #16
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled

OK, was able to ascertain a few more things as recommended:

Did this:
Code:
mkdir /install_from
mount /dev/sdb1 /install_from
stat /install_from/slackware64/a/aaa_base-14.1-x86_64-1.txz
Ended up with:
Code:
  File: /install_from/slackware64/a/aaa_base-14.1-x86_64-1.txz
  Size: 11056     	Blocks: 22         IO Block: 2048   regular file
Device: 811h/2065d	Inode: 7184        Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-11-04 05:10:34.000000000
Modify: 2013-10-11 23:25:55.000000000
Change: 2013-10-28 09:25:28.000000000
For the hell of it, did a "du -h /install_from/slackware64/" and got this:
Code:
96.5M	/install_from/slackware64/a
88.2M	/install_from/slackware64/ap
192.7M	/install_from/slackware64/d
36.9M	/install_from/slackware64/e
6.6M	/install_from/slackware64/f
73.0M	/install_from/slackware64/k
601.3M	/install_from/slackware64/kde
374.0M	/install_from/slackware64/kdei
197.1M	/install_from/slackware64/l
68.6M	/install_from/slackware64/n
80.5M	/install_from/slackware64/t
5.2M	/install_from/slackware64/tcl
106.6M	/install_from/slackware64/x
152.1M	/install_from/slackware64/xap
11.2M	/install_from/slackware64/xfce
1.7M	/install_from/slackware64/y
2.0G	/install_from/slackware64/
Did a "du -s /install_from/slackware64/" and got this:
Code:
2145794	/install_from/slackware64/
I hope this is a clue? It is not to me but hopefully is to others.

Last edited by pzognar; 06-13-2015 at 09:20 PM.
 
Old 06-14-2015, 10:53 AM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,480

Rep: Reputation: Disabled
I get the same results, so I assume that the packages being included the problem has another cause.

It could help to try again and tell us what exact steps you took and the exact commands you typed. You could also witch to the fourth terminal that logs the messages (Alt+F4) to see the error messages that could be displayed, just before then after the INSTALL step.

But there is another way to install the packages, that is to manually run the script installpkg provided in the installer. To do that, start the installer and follow the steps up to and including TARGET. Choose to format the new root partition (/dev/sdc1 if that has not changed) with an ext4 file system.

As soon as you see the dialog's title SOURCE MEDIA SELECTION, switch to another terminal hitting Alt+F2

Then type:
Code:
df -h
You should see you target partition (that will become / when your new system will be running) mounted on /mnt.

Next, to install all packages just do this:
Code:
mkdir /slack
mount /dev/sdb1 /slack
cd /slack/slackware64
installpkg --root /mnt */*.t?z
This will of course take a while.

When, it's finished just go back to the first terminal (Alt+F1) and choose Cancel: this will display the main menu again.

Then choose CONFIGURE to proceed to the configuration of your new system.

If you want to skip e.g. the kdei series, instead of
Code:
installpkg --root /mnt */*.t?z
you could write:
Code:
for i in a ap d e f k kde l n t tcl x xap xfce y; do installpkg --root=/mnt $i/*.t?z;done
Just take care that "a" be the first series so that the package aaa_base be the first installed.

Last edited by Didier Spaier; 06-14-2015 at 01:28 PM. Reason: s/Ctrl/Alt/
 
Old 06-14-2015, 12:40 PM   #18
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,658

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
It maybe a bad download of the iso file. Have you done a md5sum check on it? A corrupted iso file will cause things to go wrong.
 
Old 06-15-2015, 03:17 PM   #19
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
@colorpurple21859: good idea. I checked. The ISO's checksum is good.

@Didier Spaier:

The exact sequence.

One. Stick boot-from USB stick into machine. Reboot machine. Succesfully boot off of USB. Skip keymap choice part. Log in as root. Stick second USB stick in. This is the install-to USB. It's 16 gig, so large enough to fit Slackware. The reason I wait to insert it is sometimes the machine will fail to boot (two usb's confuses it?) and also to keep straight which one is sdb and which is sdc. For whatever reason, regardless of how I boot, the machine's internal HD is always sda.
Code:
mkdir /install_from
mount /dev/sdb1 /install_from
I get a message about sdb being mounted read-only. Logical, since it is an ISO 9-whatever cd/dvd file system. sdc has been previously partitioned, all as one primary partition.

I then run setup. I skip the swap part. I've got enough RAM that I don't need swap. The target screen of setup is where sdc is formatted. Since it is a USB stick, I chose a non-journaling file system: ext2.

I then chose the source, by the method of a path to a directory, /install_from.

I am then presented with the first choice on the packages, which I leave at the default of everything but the extra language support for KDE. At the next screen, I tell it to install Full, without prompting.

After a half second, it claims to be finished. As usual, nothing but a var directory.

Consulting the alt-f4 error console before and after shows *no error messages* during that last part. Oh. Unexpected.

NEXT (your manual install idea using installpkg)

I tried the manual workaround. That began to install packages. Fascinating. After about an hour of waiting I went to the alt-F2 console and looked around. I could see clear evidence that packages were being installed (many directories off of /mnt). Good. I saw no fstab. Bad. Taking this last as a warning sign, I aborted the process.

NEXT: something different.

I ran a virtual machine. In this, Setup was able to auto-detect the emulated CD-ROM. OK: fails in reality, works in virtual. My real machine is being stupid.

Reset the virtual machine. This time I used the technique of mounting the directory and installing from that. Guess what, the *same* problem happened as in the real install! After a half second, the installer claimed that all was done but when I checked, I saw nothing but a var directory. Fascinating.

Tentative conclusion: there are actually two seperate problems here.

(1) with regard to usb-as-cdrom, my machine is stupid.

(2) the install-from-path problem can be replicated in physical *and* virtual machine. This means that either there is a real bug in the Slackware installer's install-from-path function *or* I am doing something wrong (but cannot see what).

Last edited by pzognar; 06-15-2015 at 03:34 PM.
 
Old 06-15-2015, 04:52 PM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,480

Rep: Reputation: Disabled
First of all, we all would have saved *a lot of time* if you had told us in your first post that you tried to install on an USB stick.

I tried to reproduce your steps and got the same result.
So yes there *seems* to be a bug in the installer when installing on an USB stick instead of a hard disk's partition: I chose "Install from a Slackware USB stick" and it proposed /dev/sdd2/ (that didn't exist) instead of /dev/sdd1 (expected), with the variable SeTsource set to /dev/null. Not good. I tried other sources and didn't succeed either.

However the method I proposed you in my previous post does work.

EDIT: well, I am not sure. I have a lot of files with size 0 in the stick, so something did go wrong

Quote:
I tried the manual workaround. That began to install packages. Fascinating. After about an hour of waiting I went to the alt-F2 console and looked around. I could see clear evidence that packages were being installed (many directories off of /mnt). Good. I saw no fstab. Bad. Taking this last as a warning sign, I aborted the process.
Wrong. As I told you, the file /mnt/etc/fstab is written *after all packages are installed* in the CONFIGURE step, so so you should have waited till the end of installation through installpkg (you know it has finished when you get back the prompt) and proceeded to CONFIGURE as instructed.

But as I am not sure that really works, I advise to install Slackware on an hard disk's partition, not on an USB stick

However if you persist and succeed with the USB stick I suggest that you don't install lilo (that would be complicated because you would need to chroot to /mnt before rebooting and modify /etc/fstab to name your root partition by UUID. Instead, I suggest that your add an entry for Slackware to your current boot menu (still naming your root Slackware partition by UUID as its name can change, which is normal).

Last edited by Didier Spaier; 06-15-2015 at 05:00 PM.
 
Old 06-15-2015, 09:40 PM   #21
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,658

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
I created a new partition table and formated the usb to ext2 using gparted in ubuntu because the installer wasn't even seeing the usb beforehand, it had a fat32 partition on it at the beginning. Then installing using the ops method in setup worked for me. the issue I have is it hangs when trying to reboot, won't reboot have to do a hard shutdown with power switch.

Last edited by colorpurple21859; 06-15-2015 at 09:52 PM.
 
Old 06-15-2015, 10:09 PM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,480

Rep: Reputation: Disabled
I'll try to find later out if there is really a bug and if it that happens only if the installer is on an USB stick as the target of nstalletion, or also if it is on an optical media.
 
Old 06-16-2015, 09:25 AM   #23
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,658

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
I was able to install to a usb that had an ext2 formatted partition, from a usb with the iso on it using DD. however before I reformated the usb-installto using gparted, fdisk on the usb-installfrom saw the usb-installto but in setup did not have the usb-installto as one of the choices during target selection until after I formatted it using gparted.
 
Old 06-17-2015, 01:20 PM   #24
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163

Original Poster
Blog Entries: 9

Rep: Reputation: Disabled
Thank you for the replies, and especially for being able to replicate some of the problem. At this point I find myself unclear if what I was intending to do is actually possible. I had thought one would just treat a USB as another hard drive but apparently not? I wonder if an external hard drive fail in a similar way. That would take me a while to set up (have to move the data off to other media). The USB was intended as a test, before doing the real install on the HD. At this point, since installing from a USB is flaky on my machine, it is unsure if any install is actually possible?

I realize that going through the slackare install scripts/program(s) used by Setup should enable me to figure out to do a completely low-level manual install, gentoo-style (well, aside from the compiling) but I expect that any discussion of that would be off topic and would have to be on a new thread.
 
Old 06-17-2015, 02:10 PM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,480

Rep: Reputation: Disabled
Quote:
Originally Posted by pzognar View Post
I wonder if an external hard drive fail in a similar way.
Not at all. That works. See this thread.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
am trying to boot from 1gb usb stick, this fails and windows open Calvince Linux - Newbie 7 09-04-2013 03:47 AM
Install Slackware in a USB Stick Alexvader Slackware 16 07-24-2013 04:06 PM
Install Slackware using a bootable USB stick mariostg Slackware 3 09-22-2012 07:50 AM
[SOLVED] USB stick fails to be detected in debian sarge unev_21 Linux - Hardware 9 08-07-2009 12:09 PM
usb memory stick: chown/chgrp fails pcass Linux - Hardware 2 02-07-2004 10:42 AM

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

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