![]() ![]() This method has the advantage of using even less memory on the problem-plagued PC to boot. In the latest version (1.40) of SystemRescueCD, you can also use NFS (Network File System) or NBD (network block device) to boot troubled systems remotely. This is great for network administrators with multiple PCs scattered across a campus. I've always that, thanks to this distribution's support for PXE network booting, I could boot a troubled PC over the LAN into the distribution. ![]() For an interface, you can use either a shell-based console or the lightweight Xfce graphical desktop. This Linux distribution also comes with many other handy programs such as Midnight Commander, one of my favorite file managers, and a variety of editors and network tools. It's a really handy trick and I've often used it to save files to USB drives. It works by saving file-system to a compressed archive file and then safely restoring it to a new device. With FSArchiver, I'm able to clone file systems from one device to another, even if the partition I'm moving it to is smaller than the original or if it uses an entirely different file system. mkinitrdįinally, exit the chroot, unmount the chroot's filesystems, and reboot.In particular, I've found FSArchiver (Filesystem Archiver for Linux) to be very handy for moving data from a nearly dead disk to a new drive. Next, rebuild the "initial ram filesystem", initramfs for the Linux kernel. Zypper remove $(rpm -qa | egrep -i 'nvidia|dkms') # ASSUMES all these need removal! Rpm -qa | egrep -i 'nvidia|dkms' | less # an educated guess a bit risky It is helpful, if it's known what packages were installed otherwise an "educated guess"" is needed. exit the chroot (shell), umount all chroot filesystems, then rebootįirst, remove the NVIDIA driver packages.rebuild the initramfs, with mkinitrd, so the old drivers are not present at (re)boot time.remove the NVIDIA driver packages, with zypper (OpenSUSE package manager).Unfortunately, the video driver packages did not work, at all. A "set" of NVIDIA video drivers were installed, in an attempt to get "external LCD monitor support" working. In this case, a Lenovo Thinkpad W530s is running OpenSUSE 12.3. cd /mntįor fs in usr var boot do umount /mnt/$fs doneģ Rescue Scenario: broken video 3.1 The Rescue Plan When that is done, reboot the system and remove the Rescue CD / USB drive! exit # "exit" from the chrootįor fs in proc sysfs bind dev/pts dev do umount $fs doneĪnd so, un-mounts are also done for the "real" filesystems. When the Rescue attempt is complete, all the chroot filesystems must be unmounted.īasically, it is necessary to (just) reverse the order of the above mounts, with umount. sudo chroot /mnt # opens a new shell, within the chroot Mount -t devpts -o rw,nosuid,noexec,gid=5,mode=620,ptmxmode=000 devpts dev/ptsįinally, "change root" to the filesystem in the chroot, to begin running Rescue commands. # if a "gnome-terminal cannot get permission" occurs, use this 'devpts' mount Now, mount the Linux "special" filesystems, in the chroot. Mount /dev/sysvg00/root /mnt # mount the root filesystem, first! # list all logical-volumes determine "role" (root, usr. Then mount all other necessary filesystems - usually var and usr, if these are separate filesystems from root. Next, mount the root and boot filesystems (if boot is separate). When this is complete, we "change root" into this mount-directory, and an operate as if this is the current, booted filesystem - including running commands for Rescue purposes.Īctivate any LVM volume-groups and logical volumes, first. The plan is to create a Linux chroot, mounted under /mnt. This is modified, from the Arch Linux rescue-doc above. 2 Prepare for the Rescue 2.1 Mount filesystems to a chroot However, that particular distro may not have all the toolset included with the System Rescue CD. Sudo mount -o loop,exec /path/to/systemrescuecd-x86-x.y.z.iso /tmp/cdromĪ fallback is a Linux distro's Rescue mode. How to copy to a USB drive, for System Rescue CD: mkdir -p /tmp/cdrom A USB thumb drive will boot and operate much faster than a CD, and will also work on Ultrabooks (desktop) and servers, without a DVD drive. System Rescue CD can be burned to CD media, or easily copied via dd to USB thumb drive. Usually, the Linux system Rescue process is not Linux distro-specific, except perhaps in the usage of a particular distro's Rescue boot, from a Live-CD, for example. It's a good idea to read several Blogs or Linux articles that have solved various Rescue issues. However, it tends to focus on a particular Rescue task, such as recovering a lost root password. Linux Recovery and Rescue documentation is available, as seen above. 1 Getting Started 1.1 Review the documentation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |