LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-19-2009, 04:23 PM   #1
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Rep: Reputation: 17
Using a hard drive / partition as a source for Slack 13.0


I have a 3 Gb partition where I copied the contents of the 3 Slackware isos to folders cd1,2,3. I can't install from the CDs because I get several errors when I md5sum the files (probably a crappy drive...). The partition is /dev/sda5.

So I booted the installer from an USB stick, and when I get to the source part, I select Use HD as source, then I set /dev/sda5 when it asks for the partition where the installation is.

Then it asks where are the packages (/.../slackware/). In my case, I tried /cd1/.

Immediatly, the installer just says that it failed to mount the partition. I get the option to restart (and input the partition and path again) or ignore and continue.

It doesn't give more info than that.
I didn't try to ignore the problem... Trying again just gives the same error.

What could be the mounting problem? The partition is formatted as ext4.
Besides, since there are 3 folders where the packages are divided, will it ask for the other sources during install, like it asks for CDs?

Thanks in advance!
 
Old 12-19-2009, 05:43 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
just a shot in the dark but wont it simply mount the iso images?
 
Old 12-19-2009, 05:59 PM   #3
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
You mean, mount them before running setup, then run it and select pre-mounted points as sources? I was thinking of doing it...
But why the setup can't mount the partition I selected?
 
Old 12-20-2009, 05:59 AM   #4
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
I still couldn't use the Hard Drive option... It still fails to mount.
But I installed by mounting the iso and using the Pre-mounted option... Installed fine
 
Old 12-21-2009, 07:49 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
What's in /cd1/ ? The setup screen specifically asks for the directory that contains the 'a', 'ap', ... , 'xap', 'y' directories. Is that what you have in /cd1/ ?

Also, if you also have a /cd2 and /cd2 your installation will fail because there is no way to tell the installer that it has to continue with these after it has processed the packages in /cd1.
If you install from a harddisk partition, you have to make sure that all of the slackware package sets (a,ap,d,...,y) are located in one and the same directory.

Eric
 
Old 12-22-2009, 01:48 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
You mean, mount them before running setup, then run it and select pre-mounted points as sources? I was thinking of doing it...
But why the setup can't mount the partition I selected?
Once upon a time I asked Pat to consider better support for installing from an ISO image on a local hard drive. I haven't looked into that in a long time to learn whether that support now exists. I do know that if you have the CD/DVD files installed to a local hard drive directory that you can select that location in the setup options. You have to know the partition location and full file path but the latter option is available.
 
Old 12-22-2009, 05:21 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Quote:
Originally Posted by Woodsman View Post
Once upon a time I asked Pat to consider better support for installing from an ISO image on a local hard drive. I haven't looked into that in a long time to learn whether that support now exists. I do know that if you have the CD/DVD files installed to a local hard drive directory that you can select that location in the setup options. You have to know the partition location and full file path but the latter option is available.
I added ISO installation support while working on the installer to make it fit for Slackware64. Since we nowadays build the installer for all ARCH'es from the same source, 32-bit Slackware can now also be installed from an ISO on your local disk.

If you enter a path name to the "slackware" tree and a DVD ISO is found there instead of the 'a', 'ap' etc... directories, the ISO will be loop-mounted and used as the package source.
This is undocumented and largely untested, feel free to use this as an installation option and send me feedback on how well it worked for you.

Eric
 
Old 12-22-2009, 09:26 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
This is undocumented and largely untested
The Twilight Zone theme song plays in the background....

Thanks for the info Eric.

Of course, my first feedback would be that if the option is undocumented that some instructions in the install script would be nice. I'll add the test to my to do list to provide additional feedback.
 
Old 12-22-2009, 10:39 PM   #9
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Eric,

I confirmed that installing from an ISO image works. Great!

To anybody reading this thread, the option to use an ISO image is found in the SOURCE Select source media section of the installer.

When in that section, select option number 6, Install from a pre-mounted directory.

The tricky part is as the installer describes: the directory must be pre-mounted. Before proceeding into the next setup section, toggle to an alternate console (Left Alt F2) and press Enter. Next create a mount point and then mount the partition containing the ISO image. Then return to the installer (Left Alt F1).

Or pre-mount the partition before running the setup script.

Next proceed with option 6. Manually type the path location of the ISO image. For example, /mnt/hdb. As Eric described, the installer automatically will find the ISO image and ask whether to use that image.

When would people use this option?

One reason would be to start the setup with a CD or DVD and then install all the packages from an ISO image. Much faster than a CD/DVD. This option also could help people with flaky CD/DVD drives.

A second reason is that once upon a time I devised a method for running setup directly from my hard drive. I did this because I was in my early days of testing various distros and multi-booted my system. I had many partitions on the hard drive to install and test distros. In those days I did not have a nice dual core system or fast CD drive. Installations were slow. Installing from an ISO image was much faster.

Back at that time, I still could install Slackware from an ISO image, but I had to create the mount point and then manually mount the ISO image with the loop device. The installer script now mounts the ISO image automatically but the partition must still be pre-mounted.

As you mentioned Eric, some documentation (or guidance directly in the ncurses installer text) is needed. But the option does indeed work!
 
Old 12-23-2009, 04:59 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Quote:
Originally Posted by Woodsman View Post
Eric,

I confirmed that installing from an ISO image works. Great!

To anybody reading this thread, the option to use an ISO image is found in the SOURCE Select source media section of the installer.

When in that section, select option number 6, Install from a pre-mounted directory.

The tricky part is as the installer describes: the directory must be pre-mounted.
Not per sé.

If you select "Install from a hard drive partition" instead, you can tell the installer what partition to mount so that you do not have to do this yourself.
Using an ISO file as the package source works with NFS installs, too (i.e. over the network).

But as I said, undocumented, and largely untested, so it will be unsupported for the time being (it was added as an easter egg and I hinted about it in my blog but no one took up the challenge at the time). Perhaps I will add it as a remark to CHANGES_AND_HINTS.TXT.

Eric
 
1 members found this post helpful.
Old 12-23-2009, 08:30 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
A procedure to install Slackware 13.0 from a local file system's directories-and-files structure built from the CD iso files is documented here.
 
Old 12-24-2009, 07:09 AM   #12
Geriao
Member
 
Registered: Dec 2009
Distribution: Ubuntu Karmic Koala, Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Alien Bob View Post
What's in /cd1/ ? The setup screen specifically asks for the directory that contains the 'a', 'ap', ... , 'xap', 'y' directories. Is that what you have in /cd1/ ?

Also, if you also have a /cd2 and /cd2 your installation will fail because there is no way to tell the installer that it has to continue with these after it has processed the packages in /cd1.
If you install from a harddisk partition, you have to make sure that all of the slackware package sets (a,ap,d,...,y) are located in one and the same directory.

Eric
I downloaded the isos from a mirror and copied the exact contents to those 3 folders. I noticed that I had to use the path to the folder with the a,kde,y... folders when I tried to just put in the path to the root of the DVD iso. Still, it seems to me that it fails to mount the folder even before checking if the packages are there.

So, in the end, I used this feature you implemented!
 
  


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
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Slack not recognize hard drive tramni1980 Slackware 18 10-10-2006 08:42 AM
New slack install... want to do it on my second hard drive... how? silverbullet Slackware 11 01-24-2005 05:47 PM
Porting Slack installation to a new hard-drive dizzi Slackware 4 08-26-2004 01:05 PM
Slack 9.1 can not find hard drive but 9.0 did neurotic Slackware 3 11-18-2003 12:55 PM

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

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