[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:slackware_admin:recovery_boot_option [2012/09/25 01:54 (UTC)] (current) – moved from general howtos section mfillpot | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
+ | ====== Setting up a Recovery Boot Option ====== | ||
+ | ===== Overview and Purpose ===== | ||
+ | Currently most Linux based distributions install a recovery/ | ||
+ | option and a memory test option in the default bootloader. | ||
+ | While Slackware does not install such options by default, | ||
+ | they can be easily added to any system. | ||
+ | |||
+ | The recovery prompt that will be installed in this tutorial | ||
+ | will be an on-disk option to enter the Slackware usbboot image. This image | ||
+ | currently includes a basic command line mode that is used to fix | ||
+ | boot issues, the capability to run the setup application for new Slackware | ||
+ | installations and access to the memtest86 application. | ||
+ | |||
+ | ===== File Preparation ===== | ||
+ | - Before you begin to make changes to your system you will need to obtain the file '' | ||
+ | - Enter the root prompt by issuing the command **//su//** or signing into the system as the root user. | ||
+ | - Mount the '' | ||
+ | - Create a separate directory in your ''/ | ||
+ | - Copy the files from the '' | ||
+ | - Unmount the mounted usbboot.img file by issuing the command< | ||
+ | |||
+ | ===== lilo Configuration ===== | ||
+ | |||
+ | < | ||
+ | |||
+ | In those cases you can either upgrade lilo (which may not be possible) or enter the standard prompt from within an installation CD, DVD or USB stick. | ||
+ | </ | ||
+ | |||
+ | Before we begin modifying the lilo configuration you must first | ||
+ | understand why the various options are being used. | ||
+ | * **image** points to the kernel image which will be booted. | ||
+ | * For 32-bit Slackware the options are **hugesmp.s** and **huge.s**. | ||
+ | * For 64-bit Slackware the only option is **huge.s**. | ||
+ | * **label** lists the label that will be presented for the option in the bootloader menu. | ||
+ | * **initrd** lists the initial RAM disk that is used to load the temporary file system. | ||
+ | * **password**, | ||
+ | * **read-only** is used to tell the system to mount the file system as read-only. | ||
+ | |||
+ | Using your favorite text editor modify the ''/ | ||
+ | < | ||
+ | label = slackware-recovery | ||
+ | initrd = / | ||
+ | password = newpassword | ||
+ | read-only | ||
+ | </ | ||
+ | |||
+ | Once the new entry has been applied and saved in '' | ||
+ | < | ||
+ | root@darkstar: | ||
+ | Added linux * | ||
+ | Added recovery | ||
+ | </ | ||
+ | |||
+ | Since passwords are being applied within the ''/ | ||
+ | < | ||
+ | |||
+ | ===== Adding a memtest Option ===== | ||
+ | The memtest option can currently be executed through the recovery command line prompt by issuing the command '' | ||
+ | |||
+ | We will assume that you have already followed the instructions above to create a recovery option, if the instructions were not followed you can follow the basic steps above but only copy the file called '' | ||
+ | |||
+ | |||
+ | If you followed the recovery option instructions above, the memtest | ||
+ | binary will already be present in the ''/ | ||
+ | |||
+ | The file memtest will be referenced as the **image** for a new lilo entry as shown below. | ||
+ | < | ||
+ | image = / | ||
+ | label = memtest | ||
+ | password = newpassword | ||
+ | read-only | ||
+ | </ | ||
+ | |||
+ | Once the new lilo entry has been saved and the **// | ||
+ | < | ||
+ | root@darkstar: | ||
+ | Added linux * | ||
+ | Added recovery | ||
+ | Added memtest | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Sources ====== | ||
+ | <!-- If you are copying information from another source, then specify that source --> | ||
+ | <!-- * Original source: [[http:// | ||
+ | <!-- Authors are allowed to give credit to themselves! --> | ||
+ | * Originally written by [[wiki: | ||
+ | <!-- * Contributions by [[wiki: | ||
+ | |||
+ | <!-- Please do not modify anything below, except adding new tags.--> | ||
+ | <!-- You must remove the tag-word " | ||
+ | {{tag> |