LinuxQuestions.org
Help answer threads with 0 replies.
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 06-14-2014, 09:56 AM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
How To Install Package on External Hard Drive?


I inadvertently deleted the kmod package from a laptop computer. Now it will not boot from the -14.1/x86_64 DVD, either.

I suspect that what I need to do is remove the hard drive from that laptop and connect it to a working system with a USB hard drive adapter. I can then mount the device and access it. Suppose it's recognized as /dev/sdd/ on the host system.

Am I correct that I can restore the kmod package by cd'ing to the host computer directory containing the file and invoking 'installpkg --root /dev/sdd/ kmod-15-x86_64-1.txz'? Is this the correct syntax to replace the missing files?

TIA,

Rich
 
Old 06-14-2014, 11:10 AM   #2
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 484

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Why couldn't you boot from the DVD ?
If you can, you have to :
1. mount your "/" partition to /mnt for example,
2. mount your dvd to /cdrom for example,
3. install your package using "installpkg --root /mnt /cdrom/slackware64/a/kmod-15-x86_64-1.txz" command,
4. restart your computer.
 
Old 06-15-2014, 10:06 AM   #3
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by Thom1b View Post
Why couldn't you boot from the DVD ?
If you can, you have to :
1. mount your "/" partition to /mnt for example,
2. mount your dvd to /cdrom for example,
3. install your package using "installpkg --root /mnt /cdrom/slackware64/a/kmod-15-x86_64-1.txz" command,
4. restart your computer.
I don't know why I cannot boot from the DVD. Here's the situation:

Turning on the laptop with an empty optical drive the Vaio logo screen displays (during the POST), then the LILO prompt appears. Without kmod installed, of course, the system halts shortly after I select the 3.10.17gen kernel to boot. Requires turning off the power.

Turning on the laptop with the distribution DVD in the optical drive, the Vaio logo screen displays and that's all that happens. There's no sound of the optical drive spinning up and reading the DVD. Requires the system to be turned off. Why the optical drive is not activated puzzles me, but I don't know enough to understand how to resolve this.

What I've not tried is leaving the optical drive tray open with the distribution DVD in it, then turning on the system. When the LILO prompt comes up, I can try closing the tray and see if the Enter key then causes the system to look at the DVD rather than the hard drive.

Thanks,

Rich
 
Old 06-15-2014, 10:48 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by rshepard View Post
I don't know why I cannot boot from the DVD.
Look in the BIOS to see if the boot sequence is set up correctly.

-------------------------
Steve Stites
 
Old 06-15-2014, 02:04 PM   #5
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by jailbait View Post
Look in the BIOS to see if the boot sequence is set up correctly.Steve Stites
Steve,

That was my first thought so I checked: the sequence is optical drive -> hard drive.

Thanks,

Rich
 
Old 06-15-2014, 02:08 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
If tis machine is able to boot off USB and you have another one at hand, just put the ISO image on an USB key and boot off it. You can also use a Slint installer for that (they are hybrid), or a mini-iso provided by Eric. In the latter case run "ishoyhbrid -u <file.iso>" before runnning the dd command.

Last edited by Didier Spaier; 06-15-2014 at 02:12 PM.
 
Old 06-24-2014, 04:03 PM   #7
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by Didier Spaier View Post
If tis machine is able to boot off USB and you have another one at hand, just put the ISO image on an USB key and boot off it. You can also use a Slint installer for that (they are hybrid), or a mini-iso provided by Eric. In the latter case run "ishoyhbrid -u <file.iso>" before runnning the dd command.
Didier,

I do not know that the Sony will boot off a USB drive. It _should_ boot from the optical drive, but won't.
I can remove the drive and connect it via the Bitecc adapter to a working host. Then I'll try installing the kmod package specifying the remote drive as the target. Before I do that, however, I'll tar the /home/ directory to a USB flash drive. That way, if I need to do a complete re-installation on the Sony's hard drive I can restore /home/ for the single user.

Probably do this next weekend.

Thanks,

Rich
 
Old 06-28-2014, 06:23 PM   #8
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Summary:

I removed the hard drive from the Sony and mounted it with the Bytecc adapter on /mnt/tmp on my laptop. Mounted the DVD and ran 'installpkg --root /mnt/tmp/sda1/ /mnt/cdrom/slackware64/a/xmod-15...'. Worked just fine. The Sony boots off the hard drive once again.

It's possible that the optical drive in the Sony needs to be cleaned. The Sony can mount the optical drive and list files, but will not boot from it. Other portables can boot from the DVD and the Sony boots from a USB flash drive.

Now that everything is working, I'll buy an optical drive cleaning kit and use that on the Sony. There should be no reason to boot from the DVD until the next Slackware release so I won't waste time futzing with it.

Also, adding /usr/sbin/ntpd to rc.local fixed the time problem. Almost certainly it's because the boot sequence runs ntpd before it sets up the network interfaces. So, running it again as the very last thing fixes that issue, too.
 
  


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
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
install to external hard drive android6011 Linux - General 2 07-16-2007 08:36 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Install to external hard drive leofwine SUSE / openSUSE 11 09-19-2005 11:03 AM
External Hard Drive Install lbooker Linux - Hardware 4 03-20-2005 12:47 PM

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

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