Slackware as a Linux rescue environment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (37 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
*Download | * Download the kernel and initrd image, which Slackware uses for the installation: | ||
: | :https://slackware.osuosl.org/slackware64-current/kernels/generic.s/bzImage | ||
: | :https://slackware.osuosl.org/slackware64-current/isolinux/initrd.img | ||
* Install a Linux distribution that uses grub as boot loader on the remote server | |||
* Put <code>bzImage</code> and <code>initrd.img</code> to /boot/rescue/ directory on the remote server | |||
*Install a Linux distribution | |||
*Put <code>bzImage</code> and <code>initrd.img</code> to /boot/ | |||
*Overwrite the content of the file <code>/boot/grub/grub.cfg</code> with the following, mutatis mutandis: | *Overwrite the content of the file <code>/boot/grub/grub.cfg</code> with the following, mutatis mutandis: | ||
<pre>set default=0 | <pre>set default=0 | ||
set timeout= | set timeout=5 | ||
set root | |||
menuentry " | search --set=root --no-floppy --label ROOT | ||
linux / | |||
menuentry "Rescue (Installation Media)" { | |||
linux /boot/rescue/bzImage load_ramdisk=1 prompt_ramdisk=0 rw \ | |||
initrd / | printk.time=0 SLACK_KERNEL=generic.s instrootpw=your_root_password \ | ||
}</pre> | kbd=us nic=auto:eth0:static:198.51.100.85:26:198.51.100.65 | ||
initrd /boot/rescue/initrd.img | |||
: | } | ||
</pre> | |||
where the network configuration is <code>[ip-address]''':'''[netmask]''':'''[gateway]</code>. | |||
* | * Reboot | ||
* <code>$ ssh root@198.51.100.85</code> | |||
* <code>source /etc/profile</code> | |||
[[Category: Linux]] | [[Category: Linux]] | ||
[[Category: Hardware]] | [[Category: Hardware]] | ||
Latest revision as of 18:40, 21 December 2025
- Download the kernel and initrd image, which Slackware uses for the installation:
- https://slackware.osuosl.org/slackware64-current/kernels/generic.s/bzImage
- https://slackware.osuosl.org/slackware64-current/isolinux/initrd.img
- Install a Linux distribution that uses grub as boot loader on the remote server
- Put
bzImageandinitrd.imgto /boot/rescue/ directory on the remote server - Overwrite the content of the file
/boot/grub/grub.cfgwith the following, mutatis mutandis:
set default=0
set timeout=5
search --set=root --no-floppy --label ROOT
menuentry "Rescue (Installation Media)" {
linux /boot/rescue/bzImage load_ramdisk=1 prompt_ramdisk=0 rw \
printk.time=0 SLACK_KERNEL=generic.s instrootpw=your_root_password \
kbd=us nic=auto:eth0:static:198.51.100.85:26:198.51.100.65
initrd /boot/rescue/initrd.img
}
where the network configuration is [ip-address]:[netmask]:[gateway].
- Reboot
$ ssh root@198.51.100.85source /etc/profile