LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-05-2013, 10:25 AM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 307

Rep: Reputation: 22
Question Booting Slackware installer from HDD


Hi

I have plan to do unusual(for me) Slackware installation, since my current installation suddenly(my fault) became broken.
I do not have any suitable boot device(DVDROM, very stupid MB vendors removed all PATA controllers), so question is next:
Can I copy kernels and initrd image from installation disk to HDD partition and make them bootable by LiLo? Is there any caveats? How should Lilo section look like?
Code:
boot=/dev/sda
lba32
vga=791
compact
prompt
timeout=50
root=/dev/sda4
other=/dev/sda1
  label=Windows
image=/inst/hugesmp
  Label=InstSlack
  initrd=/inst/initrd.img
#  root=/dev/sda4 ; here resides my old ext partition I still can boot into and it contains kernel and ramdisk images mentioned above. 
  read-only   ; Do I need it?
PS. I shall install -current, despite of recently appeared problems of gcc.
 
Old 04-11-2013, 07:38 PM   #2
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 214

Rep: Reputation: 64
I've used the instructions provided here:
http://docs.slackware.com/howtos:sla...stall_from_hdd

Makes things very convenient. (my personal thanks to the author)
 
Old 04-12-2013, 04:15 AM   #3
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 22
Actually I have used provided in 1st message my lilo.conf as is(i.e. w/o additional kernel parameters), and it booted normally.
But actually installation refused to work. After selecting packages categories set and type of installation(full,terse, etc) it silently skipped whole installing phase and stepped into configuration phase. So I used good old method "installpkg --terse --root /mnt /src/slackware/*/*.t?z" and did all farther configurations manually(crafted /etc/fstab, /etc/lilo.conf, /etc/rc.d/rc.inet1.conf etc)
 
Old 04-17-2013, 02:26 PM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,806

Rep: Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810Reputation: 810
Strange coincidence, I also installed Slackware without calling setup, whilst testing something out recently.

Whilst it is true that you have to manually create an /etc/fstab and perhaps /etc/rc.d/rc.keymap (if you need a non US layout), you don't have to setup all of the main configuration files manually. As an alternative you can simply call pkgtool and select 'Setup' after chrooting into you new environment, since it has the ability to run many of the key scripts that are also included in the installer. This saves having to manually set up files like /etc/rc.d/rc.inet1.conf.

IIRC, the steps are:
  • Mount your intended / under /mnt along with any other partitions
  • installpkg --terse --root /mnt [path to your required Slackware packages]
  • Use mount to bind /dev /proc /sys to their /mnt equivalents
  • chroot to /mnt
  • Make an /etc/fstab
  • Create /etc/rc.d/rc.keymap if needed
  • run passwd
  • Run pkgtool and select 'Setup' and then run the sections you require
  • Exit chroot and shutdown

You should then be able to boot using the disk you had previously mounted under /mnt

Last edited by ruario; 04-17-2013 at 03:27 PM. Reason: s/hand/had/ in the last sentence; minor corrections; re-worded first paragraph
 
Old 04-17-2013, 06:07 PM   #5
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 22
Yeah, I know, I use pkgtool run setup scripts again sometimes. But because I have backup of /etc all I do not need to run it usually. I run only xwmconfig directly if I need.
My usual actions probably the same;
0. boot installer
1. mount destination into /mnt
2. mount source into /src (i use local copy of -current on spare partition)
3. installpkg --terse --root /mnt /src/slackware/*/*.t?z
3.5 drink tea/coffee 5-10 minutes
4. rebind /dev /proc /sys into /mnt/{dev,proc,sys}
5. chroot /mnt
6. forget to make /etc/fstab
7. make /etc/rc.d/{rc.font,rc.keymap}
8. make /etc/lilo.conf and run lilo
9. forget to make passwd
10. run xwmconfig
11. unchroot, reboot
12. boot into slackware
13. get boot errors, reboot back to installer(or slax if installer unavailable anymore,which is usual), chroot and actually do /etc/fstab and passwd
 
  


Reply

Tags
installation, lilo, slackware


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
Recover HDD after booting from DSL formatted my HDD chessmad00 Linux - Newbie 3 05-07-2012 04:39 PM
Slackware 13 Installer Does Not Detect My HDD 0rwell Slackware 2 10-29-2009 03:42 PM
Installer doesn't see my SATA HDD chrisinspace Linux - Desktop 3 04-28-2009 06:56 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
Booting Slackware to USB External HDD linux_weenie Slackware 1 05-15-2005 09:47 PM


All times are GMT -5. The time now is 10:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration