postheadericon How to Create a Rescue Mode for an Asus Eee PC

Two Methods:Booting to Single User ModeAdding a Rescue ModeCommunity Q&A

Asus’ Eee PC runs a customized version of Xandros that utilizes the same “grub” boot loader and other Linux-specific components. Therefore, enabling a grub menu for selecting different modes of booting Linux is fairly straight-forward.

This guide will help you boot into single-user mode (root access), and edit this boot menu to include a “Rescue Mode” for booting into single-user mode at your convenience.

Method 1 Booting to Single User Mode

How to Create a Rescue Mode for an Asus Eee PC

1 Power cycle your laptop if needed, or power it on.

How to Create a Rescue Mode for an Asus Eee PC

2 Repeatedly press

How to Create a Rescue Mode for an Asus Eee PC

when you see the first screen with Asus’ logo. This screen will also have an notice to enter the BIOS configuration utility.

How to Create a Rescue Mode for an Asus Eee PC

3 Wait for a boot menu to appear. Note the multiple selections on this screen, including the choice “Normal Boot”, “Perform Disk Scan”, and “Restore Factory Settings”. For reference, this is the grub boot loader menu typically located at [/dev/sda1]/boot/grub/menu.lst.

How to Create a Rescue Mode for an Asus Eee PC

4 Use the cursor arrow keys to highlight the “Normal Boot” entry if it’s not currently selected, then press the

How to Create a Rescue Mode for an Asus Eee PC

to edit this selection.

How to Create a Rescue Mode for an Asus Eee PC

5 Use the cursor arrow keys to highlight the “kernel /boot/vmlinuz…” entry, then press the

How to Create a Rescue Mode for an Asus Eee PC

key again to edit this selection

How to Create a Rescue Mode for an Asus Eee PC

6 Move to the end of the next line with the cursor arrow keys. This screen will have a fairly long command.

How to Create a Rescue Mode for an Asus Eee PC

7 Add the following to the end of the line, including a space: XANDROSBOOTDEBUG=y

How to Create a Rescue Mode for an Asus Eee PC

8 Press

How to Create a Rescue Mode for an Asus Eee PC

to save your changes and go back to the first menu.

How to Create a Rescue Mode for an Asus Eee PC

9 Press

How to Create a Rescue Mode for an Asus Eee PC

to boot with the changes. You’ll be taken to a command line mode with a pound # prompt.

How to Create a Rescue Mode for an Asus Eee PC

10 Mount the two partitions for system and user. To do this, type the following and press

How to Create a Rescue Mode for an Asus Eee PC

after each line.

mount /dev/sda1 /mnt-system
mount /dev/sda2 /mnt-user Method 2 Adding a Rescue Mode

This requires you to be in single user mode, as shown above.

How to Create a Rescue Mode for an Asus Eee PC

1 Launch vi to edit the grub boot loader menu to add a new entry for this kernel. Type the following command and press

How to Create a Rescue Mode for an Asus Eee PC

after it:

vi /mnt-system/boot/grub/menu.lst

How to Create a Rescue Mode for an Asus Eee PC

2 Use vi to add your new entry. The vi editor is not intuitive for those familiar with more graphical editors such as Notepad, Wordpad, or Word on Microsoft Windows. It is very powerful, but at the same time, very complicated and difficult to learn. For now, follow the steps below to edit this file. Use the cursor keys to move down to the first entry (paragraph) for “Normal Boot”. Place the cursor on the first line of this section. Copy the section by using the following keystrokes. This will copy five lines from where the cursor is located:

How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC

Move the cursor down below this section to the next blank line. Paste our previously copied text by using:

How to Create a Rescue Mode for an Asus Eee PC

For the third line of this new entry, starting with “kernel” (ie: kernel /boot/vmlinuz-2.6.21.4-eeepc quiet rw vga=785 irqpoll root=/dev/sda1), add a space and then XANDROSBOOTDEBUG=y at the end of this line. For example:

kernel /boot/vmlinuz-2.6.21.4-eeepc-2GB quiet rw vga=785 irqpoll root=/dev/sda1 XANDROSBOOTDEBUG=y.

To do this, press

How to Create a Rescue Mode for an Asus Eee PC

to switch vi into insert mode, move the cursor to this location, and insert text. To remove text, use

How to Create a Rescue Mode for an Asus Eee PC

only; do not use

How to Create a Rescue Mode for an Asus Eee PC

. Rename the title of this new entry to anything you desire. For example, rename it to “Rescue Mode”. To get out of vi’s insert mode, and back into command mode, press

How to Create a Rescue Mode for an Asus Eee PC

. Save your file by pressing

How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC

. To exit vi without saving, press

How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC

.

How to Create a Rescue Mode for an Asus Eee PC

3 Reboot the PC when back at the command prompt. Do this by pressing

How to Create a Rescue Mode for an Asus Eee PC
How to Create a Rescue Mode for an Asus Eee PC

twice (possibly three times) until you either see a message that states “Press [Enter] to restart”, or the until the Eee PC restarts on its own. If you followed all of the examples above, the default boot selection should be the new kernel.

How to Create a Rescue Mode for an Asus Eee PC

4 Test the new mode’ by repeating steps 1 to 3 of the “Booting to Single User Mode” section, then selecting “Rescue Mode”, and pressing

How to Create a Rescue Mode for an Asus Eee PC

.

Leave a Reply