General :: Boot Into Rescue Mode Without Installation Media?
Jul 18, 2011
I've got CentOS 6 installed and am wondering if it's necessary to have installation media in order to run 'linux rescue'. (I have to do some LVM resizing and would rather do it from rescue mode than in a running system.)
What I've read about booting into linux rescue is that it seems to be necessary to have installation media and boot into that. But I'm wondering if it's possible to do it some other way, like from the grub menu? But it doesn't seem to be possible to enter 'linux rescue' from the grub command line (which I got to by typing 'c' in grub menu screen) - typing 'linux rescue' at grub command line says 'command not found'.
Maybe there's another way to do this? Or some fancy way to have loaded a rescue image or something onto my disk so I don't need installation media. There's 2 reasons why I'd like to enter linux rescue without installation media, both because my computer is very old. 1) My computer can't boot from USB, and 2) My CD/DVD tray is very unstable and keeps popping out intermittently, so I'd need to hold the tray in place during the whole LVM process and it's a real pain, and I wouldn't want to risk data corruption if the process is interrupted by my CD/DVD tray popping out.
I'm hoping there's some way - it'd also be nice to know how to do this if some urgent situation arose where I needed to enter linux rescue mode but didn't have installation media handy and it'd take to long to retrieve or create new installation media.
I'm experimenting a bit with my fedora, so I need to enter rescue mode very often. Every time I want to enter rescue mode, I need to insert fedora DVD Is there a way to install rescue mode on my hard drive so I could boot into rescue mode from GRUB?
My linux workstation recently crashed. After rebooting, Linux (Red Hat 5.3) will not boot properly and automatically went into emergency mode or recovery mode i think. I can still see my /home/user/ and all the files inside.I boot from CD to rescue mode and tried mounting read-only the /dev/sd5 which contains the files in the crashed hard disk to try to copy out my files but mounting was unsuccessful (invalid argument). I checked the filesystem type using fsck -N /dev/sda5 and shows it to ext2. i tried to mount another known working hdd and was successful.
My question is why in emergency mode, the crashed hdd is able to be mounted automatically as read-only but cannot be done in rescue mode thru a bootable CD?Is there any special mount options used in emergency mode?I also cannot copy out in emergency mode booting from the crashed hard disk as everything is read only.
I updated yesterday and now when I start my laptop it goes in to grub rescue mode. I have booted from a 'live cd' and thought I could repair grub from there. In gparted however the partition with ubuntu (sda1) is seen as unknown file system, in terminal when I list the partition table it shows up as FAT16 type. When I try a grub-install it gives this error message:
I am attempting to work with adding a new hard drive with a default logical volume setup. In order to complete the task, I am instructed to use a live CD to boot the system without mounting the drives using linux rescue. I am using CentOS-5.5-i386-LiveCD-Release2.iso
I have reviewed the centos documentation. When the live CD boots, it starts a count down to an automatic boot. I attempt to invoke the boot options as directed by hitting the tab and adding the words
linux rescue
At the end of the line and hit return to begin the booting process.
Unfortunately, the linux rescue boot option is ignored and the system mounts the hard drive. Additionally, I have checked the boot option several times by hitting the tab a second time and the option is not displayed.
In researching the issue, I inevitably get very similar instructions like:
Quote:The first centos CD or DVD has a rescue mode, just type on the boot screen: linux rescue
I have an issue with the fstab on Ubuntu 10.4 - I need to mount the system with a rescur cd and edit the fstab I have the CD for 10.4 but am afraid the process on mounting the system will overwrite the system. With all the information about Ubuntu I can not find information about this process
I installed ubuntu on a second hard drive.Nowhere did the fracken ubuntu installer ask my permission to over-write my mbr but that's exactly what it did.I'm booted off the rescue CD trying to restore the mbr to how centos left it (I'll add ubuntu to grub manually) but I can't boot into rescue.linux rescue results in a kernel panic suggesting I need the noapic argument. Makes sense, I needed that to install and need that in grub.linux rescue noapic boots into the installer, not rescue.How do I boot into rescue mode with the noapic kernel argument?
I installed Fedora on my pc over Ubuntu and now Grub wont go any further than rescue mode. (Apparently grubs boot folder was on the Ubuntu partition. Now I see why a dedicated boot partition is handy.) I used VMware to install Fedora as im currently out of CDs. VMware is setup to use the Physical HDD for the primary HDD in the VM. (I made sure VMware disabled access to the windows partitions so the guest couldn't access them.)
I am in Windows 7 at the moment and am avoiding rebooting as that will basically lock me out of the only computer I have access to. I tried running the Ubuntu LiveCD to restore grub but dont know how to mount Fedoras LVM partitions. What can I do to repair grub or at least install an MBR that is capable of booting windows? I can boot floppies and cds using VMware but am not sure what to use to fix this.
Fedora LiveCD wont mount any of the partitions to install Grub Ubuntu LiveCD may work if I can mount the LVM partitions.
Today it happened again: After an apparently trivial update Grub (Grub2) enters rescue mode the next time booting, not displaying any useful help whatsoever at that point. (Remember that at boot time no manual or help pages are available.) I don't know what went wrong, but ... The harddisk or partition in question is now no longer a bootable partition.
I don't want to use much time trying to sort out things, so unless someone may direct me to at better procedure, I am going to save whatever can be saved from the hd and then reinstall debian (in this case: Sqeeze) from scratch. Nothing else has in my experience ever worked before.
I got my wife to try Linux, so we set her machine up to dual boot with Windows. After a few weeks, she decided not to use Linux, so we deleted the Linux partitions using Gparted on a USB drive and resized the NTFS partition, under the apparently mistaken impression that Grub would detect that there was now no other operating system. When we rebooted, we got error: no such partition, followed by a grub rescue prompt. I've never worked with Grub directly before, so I have no idea what to do at this point.
i have a server which i have no physical access to, all i can do is boot in rescue mode from a live debian CD and i want to know of a way to install CentOS from iso image or maybe NFS? on that server using this debian live CD.
since it's live CD i can't mount the iso image and boot from it cos after reboot nothing will be preserved. so the case in breif is, i am booted form debian live cd and i want to install CentOS on the machine from that system using iso image
1 ) I have accidently installed RHEL5.2 in a lap which was already having Fedora14. Now the fedora grub is missing and i am unable to boot into fedora. also there is no Rescue option in fedora 14 live CD, it only have Boot, Basic video, Memory test but no rescue mode. so pls tell me how to get into Rescue mode and solve this problem
2 ) How to find in which partition it is installed eg do i have type (hd0,0) or (hd0,xx), i have on hard disk so the H.D.D number will be hd0 but what about the partition . how to find it.
--- WinXP NTFS partition --- a vfat partition (mounted onto /fat32) --- Installed F10 on ext3 virtual partition
B. I do not want install grub-loader in the Master Boot Record (that would loose my WinXP boot-loader for ever)
C. I have installed grub boot loader in the First Boot Sector
D. Now I have to boot using Rescue Mode, do:
1. dd if=/dev/sda2 of=/fat32/linux.bin bs=512 count=1 2. mount -t ntfs /dev/sda1 /ntfs 3. cp /fat32/linux.bin /ntfs 4. modify /ntfs/c/boot.ini and introduce the statement 'c:linux.bin="Linux"'
Problem: Im not able to do step D.2 above.
Symptom: ** after booting linux using the Rescue Mode: sh-3.2# chroot /mnt/sysimage sh-3.2# uname -r 2.6.27.5-117.fc10.i586 sh-3.2# mount -f ntfs /dev/sda1 /ntfs FATAL: Could not load /lib/modules/2.6.27.5-117.fc10.i586/modules.dep: No such file or directory ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root sh-3.2#
Observations:
* The rescue mode boots into i586 based kernel (I dont know what is the actual difference between i586 and i686 - will really appreciate if anyone can educate me about it). * The installation is only a i686 image and consequently there is *only* '/lib/modules/2.6.27.5-117.fc10.i686' dir and *no* other dir. There is no dir as xxxx.fc10.i586.
Environment: A 32-bit kernel RHEL5.3 system running on a virtual machine. The root(/) filesystem is on an LV.
Issue: Unable to resize the FS after extending the root LV since it is mounted. After extending the LV, online resizing of the FS was not supported and the root filesystem could not be unmounted while it was in use. On rebooting, I got a kernel panic error. In runlevel 1, I couldn't run chroot, couldn't find the /etc/fstab, root FS could not be mounted, fsck did not run (tried block 31 for second copy of superblock using dd count=1 bs=4k skip=31 seek=1 if=/dev/sda2 of=/dev/sda2), couldn't find any rpm on installation media to install unix-utils rpm. On running commands in runlevel 1,
A few days ago I decided to try a linux OS for the first time. Following a how-to advice, I created a ~80gb partition (on a 320 gb sata disk) for Win7 and installed it. Then I installed Ubuntu 10.04, chose to make partitions manually, created a primary ext4-partition (right after the one with Win7) for / and a 1024mb swap partition. So now the disk is parted this way: 512 booter - Win7 system, ~ 80gb ntfs - Ubuntu /, 8 gb ext4 - Ubuntu 1 gb swap - file storage, ntfs ~240 gb (created using Win7 bootable disk, but the issue from below started before this).
After the installation the boot loader failed to load any system, giving the error from the topic title. I tried several ways to reinstall/repair/reconfigure grub in the live-CD mode. Some of them didn't change anything, others were not completed because of an update-grub error ("cannot find a device for / (is /dev mounted?)"). Grub version is 1.98b. The disk with Win7 and Ubuntu is treated as hd0 in grub and sdd in Ubuntu ote: even though the thread is marked as SOLVED, the issue is actually not. I have managed to dual-boot Win7 and Ubuntu, but with partition configuration changes
my computer is currently stuck in "Grub Rescue mode" I don't know how to get it unlocked. I tried installing the latest ubuntu from wubi after I deleted the partition for 11.04 beta I had already had (I had some issues with 11.04 so I went to windows (it's a dual boot machine) and cleared the partition) After I got rid of ubuntu from there I don't think it automaticlly got rid of grub, which I was unaware of. So I continued to go through Wubi for to install 11.04 side by side Windows and to be used with the windows loader.
After I got thorugh all of that stuff I was instructed to restart my computer (as usual) and I did. But as soon as my computer came back on it came into "grub rescue>" with the error message at the very top of the screen "error: no such partition." I am currently using a different PC to type this. I would like to know how to get out of the rescue loader and at least back into windows (I have windows 7). I don't care to much if I can make it into Ubuntu as I have most of my more important files on Windows. I'm kinda scared atm, because I read somewhere earlier that I can't really do anything unless I have the windows boot disc, which I don't.
I've RHEL and windows installed in a single system. First I've installed RHEL then windows xp. Now to install grub how do I enter into rescue mode without any CD/DVD? Do we have any option?
I've got Ubuntu 10.04 installed on one partition, and Windows Vista on another. I was messing around with my partitions, and now I can't boot to either one. I just get an error when I boot up on GRUB which says "error: no such partition", and then a prompt saying 'grub rescue>'. I've read up on other people's posts, and they said that I should reinstall GRUB from a livecd, but that doesn't look like it does anything. It seems that GRUB is trying to boot from hd0,8, and that doesn't exist anymore. I can change the 'root' and 'prefix' variables to the right partitions, but the 'boot' or 'chainloader' command doesn't work. You should be able to boot from 'grub rescue>', because that's what it's for, right?
I just want to be able to boot into Ubuntu, not Windows.
PS: Sorry if I'm specifying way too much information(or not enough), I'm fairly new to forums.
I am using netbook, no cd drive and my flash drive is malfunctioning. Is there a way I can fix my ubuntu partition in my netbook? It was working untill I install another copy of windows 7 on the other partition.
I have a brand new Z97-PRO (Wifi/USB3.1 version) that I got to replace a Gryphon Z87, and it was working great for the first day. I had my Debian and Windows drives both working, and I was working on getting GRUB reinstalled on the Debian drive in no time. At some point I needed to restore my Windows MBR for the millionth time, but this time was different. The Windows logo popped up and froze there. I know this is a thing that sometimes happens, but every other time since I replaced my Gryphon this process only lasted seconds. I let it sit for hours and it didn't move.
I then tried my Debian live USB, which loaded into the main menu, but upon selecting rescue mode it black screened and hung. This was an issue I experienced when I first got the board, but it seemed to work itself out after a few reboots and remained flawless until it just came back. At this point, I'm unable to get in to any of my OSes and I can't seem to successfully boot any external media in order to fix it. My BIOS is totally stock save for secure boot, which is set to Other OS, and memory in XMP mode. I also tried using an Ubuntu Live USB, but ended up hanging with the exact same Q-Codes as in Debian. I am running the system on 1 stick of RAM while testing.
Q-Codes at hang: UEFI USB - AF (Exit Boot Services Event) Regular USB - F6 (Reserved for future AMI progress codes)
Specs: - 2 boot SSDs (OCZ for Windows, Kingston for Debian), 2 storage drives, and a DVD drive. - The boot SSDs occupy SATA ports 1 & 2, the DVD drive takes up 3, and the storage drives take up 5 & 6 - i7 4770K, 32GB (8GBx4) Corsair Dominator RAM, GTX780Ti - 750W Silverstone PSU
I have an Ubuntu 10.4 installation (dualboot with windows XP) with grub2.After I resized some of my partitions using a gparted live cd, the system goes directly to grub rescue mode every time I boot.Then I follow the instructions which are given in grub2 wiki site to boot.The grub boot directory is now located in sda6 (hd0,6) in my system as found out using 'ls' command.
But in the grub rescue mode when I enter the 'set' command (one of the very few commands available), to display current prefix and root, it gives "(hd0,7)/boot/grub" as 'prefix' and "hd0,7" as 'root'.After entering the following commands, I'm able to boot.There are other users at my home not familiar with ubuntu. windows is their OS of choice. So I don't want to remove windows installation .One solution that I can think of is creating a grub rescue CD using grub-mkrescue, then using windows cd to fix mbr (which will overwrite grub? or the pointer to grub?) and then using the grub rescue cd to boot into Ubuntu but I'm not sure.
Actually Some one has deleted my vmlinuz-2.6.18-164.el5 and its backup vmlinuz5 from /boot dir i want to restore those files. i tried by "linux rescue" mode but unable to mount my dvd from RHEL5 dvd drive there is no file exist as /dev/cdrom .
From system security point to view I want to prohibit 'linux rescue' mode in my installed RHEL system. Because as per my knowlege through linux rescue mode anyone who have physical access to system can mount root filesystem(/) and retrieve all data without knowing root password. Please guide should i encrypt / on any alternative .
So I had Ubuntu Server installed and I decided to make some new partitions using gparted via a live usb of Ubuntu desktop. And so I think messed up pretty badly. Ubuntu Server won't boot and I get the following error followed by a grub rescue promt:
Code:Diskette drive 0 seek failure error: file not found grub rescue > To me, it seems like some boot files may be missing if not the whole system. After I made the partitions, the live USB of Ubuntu was still working fine until I rebooted.So here is the bigger issue, I figured I would just reinstall everything all over again, but instead I can't.
So earlier today I was running out of space on my regular Windows 7 partition and I played around with extending it. I ended up somehow deleting grub and messing up my entire system. I've spent the last 2 hours looking for the answer to this and everyone has been saying to boot from a live disk and fix it that way.
Well, I've tried everything, the only way I can boot right now is via USB and it will NOT allow me to. I checked on other computers and even re-installed and formatted by external hard drive to try and get it to work and it refuses. I've changed my BIOS to boot from USB so I have no idea as to why this is happening. Also, I've tried using the "ls" command to find my partition via "ls (hdX,Y)/" and all of them come up as unknown filesystems.
Ubuntu 10.04 on remote server failed after updating following modules: An update to grub-common from 1.98-1ubuntu8 to 1.98-1ubuntu9 is available. An update to grub-pc from 1.98-1ubuntu8 to 1.98-1ubuntu9 is available.
First updated a OK and second gave an error "wrong name" or something like that So the update stop the server and I did "Cold Reboot" which seems to work but I can't log in via "root" SSH only by "rescue mode" SSH however I am totally lost there.
I guess I need to finish the "grub-pc" or "grub-common" from prior update process. I can use rescue mode to effectively boot my server to live cd. I can ssh in to the live cd os and my original os is mounted for me to chroot in / backup / repair.
Im trying to restore RHEL 5.3 which was previously installed on LVM. I have completly new disks.
1. I have started RHEL install DVD with option: linux rescue 2. set up network 3. connected to NFS server where the backup is stored 4. restored partition image: dd if=/mnt/source/layout.bin of=/dev/sda bs=1024 count=1 (this will preapare partitions like it was before backup. After that it is necessary to run fdisk /dev/sda and choose oprion "w" - write)
Now, I want to create Logical Volumes, but I have no "pvcreate" command in RHEL rescue mode.
I'm inexperienced in Debian. I have a dual-boot machine (64-bit, Debian 7.3, Windows 7, legacy boot) and encouter a problem at boot ever since I completed the installation of Debian 7.3 alongside the exising Windows 7. This machine has six hard drives: two are intended for ntfs storage of general data (raided together by RAID1); two more are intended for ext4 storage of general data (also raided together by RAID1); the fifth contains the Windows OS files and the sixth contains the Debian OS files. The problem is that I arrive to the grub_rescue each time at boot, seeing the message:
GRUB loading. Welcome to GRUB!
error: no such device: e081517b-3399-4067-9294-8f0686f753ca. Entering rescue mode... grub_rescue>