General :: Recover Grub After Changing A Partition?
Jan 23, 2011
I moved my NTFS partition with XP and after restarting got the grub> prompt. ls,grub-install and mount are not recognized. find /boot/grub/stage1 (hd0,2,a)
how can I recover? my *nix is osol and I have grub 0.97 (legacy)
I have both a osol and ubuntu cds, but it seems I should be able to load from the grub prompt.
I installed Ext2fsd from windows XP because I needed access to a text file on my ubuntu install. However, it didn't work because the drive is ext4 and all it listed was the root folders (/home, /var etc..) nothing any deeper.
I closed the app and continued working in windows.
Today I went to start my computer and it loaded the grub-rescue> prompt. I immediately tried to run "help" to find out what happened, however, grub reported the command as unknown.
I then ls and got a partial listing of the partitions.
Code: (hd0) (hd0,5) (hd0,1) (fd0)
So what do I do? How do I recover my linux partition? If the partition is bad - then how is the bios able to find the grub-rescue> prompt?
I let a 'friend' use my laptop over the weekend. Now when I turn it on, it loads the BIOS details, then says no active partition, then no OS cannot be found.
It looks like they have deleted the partition with SuSE with the Grub Loader.
I cannot load up SuSE or Windows 7!
Any ideas on how to recover the boot to load Windows 7?
I have tried using the Windows 7 install disc to repair - but it does not recognise that Windows is installed and wants to do a clean install only.
Is it worth trying to reinstall SuSE and hope it detects Windows on the other partition? (I assume it is still there!)
a windows installation on a fake-raid, /dev/mapper/ddf1_AR01p1 and an xtra penguinFS on ddf1_AR01p2. I simply tried to boot "Super Grub Virus" from a usb stick ... and the $%!($ER hosed the array. Luckily, my day to day OS and important data is on a different set of disks ... but my BIOS boot target is set to the fake-raid, so it did not kill anything genuinely important ... I just got lucky.
I would really like to restore the windoZe partition as it WAS. I actually use it a couple of times each year. I would just reinstall the OS ... really NOTHING important on those 2 disks, but I have no idea where my XP disk can be found ... but I know the xp installation is hiding in /dev/null ....
i have already installed Debian 6.0 i386 & Windows XP in my PC. But due to some Problem i have again reinstalled Windows XP ... So How to Recover the GRUB in my PC which i have already installed Debian 6.0 i386
Well i have an 20GB HDD (/dev/sdb) formated with ext4 and has very important files on it .All of sudden something went wrong and the 20GB partition has been lost . Now how do i have to recover that partition and primarily recover those files . Gparted shows no partition on it but unpartitioned space .
I have deleted the ubuntu partition on my xp pc. Now at restart i have the following: GRUB loading. error: no such partition grub rescue> I have no idea what to do now. I have downloaded super grub - because one of the pages that i googled said it would help - but my pc does not read from either the cd or usb drives - don't know why.I need this pc recovered today .
I have a laptop with two partitions, dual booting Vista and Ubuntu. laptop was originally furnished with Vista. It's become totally unusable and I want to install XP on the NTFS partition erasing Vista. I know that after installing XP it will overwrite the MBR and GRUB will be lost. how to recover GRUB after the XP install. all data is now on the Ubuntu partition. I need XP just for games for my kids. barbie and harry potter ...
I spent 30min looking for sth like that but could not find it, just reference if such a thread exists.
I was installing windows vista on my computer, so I backed up everything to a external drive which was formatted with ext2. I then proceeded to install windows vista. When I got to the partition section I tried installing windows vista to my raid 0. When it didn't work I decided that I would delete all my existing partitions and create a new one. Well in my haste I accidentally deleted my ext2 partition from my backup drive that was still connected. As soon as I realized what I had done I shutdown the windows install and disconnected my external drive. This is the current state of my drive from parted:
Model: WD 15EADS External (scsi) Disk /dev/sdb: 1500GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags
I know that the drive only had one partition before and that it took up the entire disk and it was ext2 (maybe ext3).
A HP Netserver LP2000r, with original SCSI controller and HP NetRaid-2M controller, 3x 36GB Ultra3 HDD in RAID5, Debian (sarge/etch), has crashed after 992 days without reboot. From all that I can see, a hardware failure, most likely with the memory. The HP Diagnostic tools cannot find any problem, but everytime I boot into Knoppix, I get between 2minutes and 2 hours of runtime, and then either a kernel oops or just a complete and sudden halt.
Well, the box has earned its money. However, there is some data on the drives that I need to recover (yes, I have beaten myself up properly about not backing up that data, don't even go there !). There are three partitions: sda1 is /, sda2 is swap and sda3 is a LVM volume with 3 logical volumes on it. As far as I can tell, the hardware defect must have been creeping in and has made a total mess of the inodes in all these partitions.
After booting into Knoppix, I can restore the volumes using pvscan, vgscan, lvscan, vgcfgrestore and vgchange. If I try and mount them: mayhem. So I try and check them, using fsck.ext3. All sorts of interesting nonsense, such as a completely empty inode 11 (the first inode) and then obviously from there on all else is pointless. I tried using debugfs, but the information on what to do with it is somewhat spurious.
P.S.: Tomorrow I will go and get myself a 16GB Flash Drive and then hopefully I will be able to dump the partitions one by one onto that drive and transfer the images onto a different computer for analysis and data recovery.
I've been using Linux for a few years and have managed to find what I need searching (including this great site) until now. I have managed to mess up a substantial partition and don't want to possibly make a bad situation worse by bungling around an area I know next to nothing about. I'll try to explain it fully.I finally built a new PC (750GB internal HDD, 4GB RAM). I'm used to Kubuntu so I installed that (10.04 x86_64bit); partitioned sda1 1GB swap / sda2 OS 20GB ext4 / balance sda3 home ext4 for time being. Everything runs sweet. My old PC (very, PIII, but more recent 500GB internal HDD) partitioned sda1 486.31MB swap / sda2 OS 22.82GB ext4 / balance (442.46GB) sda3 home ext3 (ext3 because /home was inherited from an earlier install prior to Kubuntu going ext4). Old PC was having PSU prob. I don't have an external HDD or any other large HDD and not enough DVDRs for 280GB or so of data current in /home. So I backed up what I could risking the old PC working long enough. Got the critical stuff, business etc. There remained some 150GB or so, years of pictures, videos, info on car repairs etc (some but by no means all on semi annual DVDR backups). Free space current in new PC's /home partition ~500GB. So I took out the HDD from the old PC and put it in the new in order to copy the remainder then use it in the new PC; made sure BIOS of new PC indicated this 2nd drive did not have boot priority. The correct install booted.
To my surprise (maybe not yours?) during boot with zero indication, Kubuntu decided to use the 2nd HDD's /home partition for its new 442.46GB swap partition instead! I was horrified. I unmounted it immediately but... according to GParted the partition with all those files to copy is now:/dev/sbd3 File System: unknown 442.46GB Used: --- Unused: --- no flags
I was surprised by kubuntu changing its partitions without input and assuming a ext3 file system on a secondary HD for a 442.46GB swap partition. But, mistake's on me. Call it a lesson. Now I need to know more but don't want to experiment unduly on this drive and possibly make things worse: What should I do next?
I accidentially overwrote the first 1M of my harddisk on linux (using dd). So, the partition-table is gone. I can still access all partition (except the first one) using /dev/sda2 (and so on), so the data is still there. I only need the partition boundaries to restore the table. How can I do this? The Linux-Kernel must still know them because all mount-points still work. fdisk -l /dev/sda doesn't work because it acctualy reads the partition table.
I am facing a serious problem.I installed UBUNTU 10.04 and encrypted it during installation. I accidentally erased some of the necessary files from root folder. now the the OS is NOT booting.luckily i still have the encryption key i have some important documents in that drive (desktop folder).
PS: I have tried to run Live Ubuntu it shows the Root, but it does not enter any of the folder.
I know nothing about this at all. I have never programmed a computer.. I loaned my tower to a friend who put this on ...now i have it back and cant get to my windows 98. all i get each time i boot is ...
GRUB loading ... error:no such disk grub recover>
I have tried ubuntu sec 8.4 recover mode and all i get is unreconized command.. i do not know how to set anything.. i have no disks for this not even the orginal windows recover disk.. is their anything i can do to get win to run as it use to??
I had to dual boot my computer again with windows unfortunately for school. This is something I've dealt with dozens of times in the past but when I try to recover grub 2 with the ubuntu live cd I get this:
Original disk: XP NTFS primary Linux / ext4 logical Linux /home ext4 logical Win 7 NTFS logical NTFS data logical swap space NTFS recovery partition
I tried to install linux, as there was a problem with XP overwriting grub, I chose write grub to /dev/sda8 (which is where the linux install was appearing earlier).
I guess this borked the filesystem somehow. Now the NTFS data partition and the swap space are appearing as one free space. Well actually before that some linux live CDs (including gparted were seeing the entire drive as unpartitioned). I had to go into XP and delete the /ext4 partitions.
Is there any way for me to recover the NTFS data partition ?
I'm working my way through my Linux self-education and I'm hitting a slight road block. After consulting forum posts here and elsewhere, I have tried to alter my grub boot order by editing my menu.lst file found in /boot/grub. I don't seem to be having any luck. Changing the default [value] doesn't seem to work, nor does the savedefault. Below is a copy of my file.
Code: # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/.
default 4 # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default0
## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout10 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) #hiddenmenu
# Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # examples
# titleWindows 95/98/NT/2000 # root(hd0,0) # makeactive # chainloader+1 # titleLinux # root(hd0,1) # kernel/vmlinuz root=/dev/hda2 ro # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=UUID=18250e14-e47e-4bf9-a927-6456120575f8 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=18250e14-e47e-4bf9-a927-6456120575f8
## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false
## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=0x317 resume=/dev/hda5 # defoptions=vga=0x317 ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt=
## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true
## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## splashimage=18250e14-e47e-4bf9-a927-6456120575f8/boot/grub/splash.xpm.gz
titleBackTrack 4 R2, memtest86+ uuid18250e14-e47e-4bf9-a927-6456120575f8 kernel/boot/memtest86+.bin quiet ### END DEBIAN AUTOMAGIC KERNELS LIST # This is a divider, added to separate the menu items below from the Debian # ones. titleOther operating systems: root
# This entry automatically added by the Debian installer for a non-linux OS # on /dev/sda1 titleWindows Vista/Longhorn (loader) root(hd0,0) savedefault makeactive chainloader+1
I having a problem getting my grub loader to see one of my hard drives. I added a drive, and my grub loader lost track of where everything was. I couldn't get my old linux (Red Hat 9) so I installed SuSe on my new hard drive. But I need my be able to boot from my old hard drive because it has apps that only run on the earlier version. From /proc/partitions the old hard drive is sdd
major minor #blocks name 8 0 976762584 sda 8 1 2104483 sda1 8 2 20972857 sda2
I recently upgraded to Ubuntu 10.04 from earlier versions. I have a dual boot system with Windows 7. Grub was set to boot Windows by default Things were working fine. I decided to upgrade to Grub2. It seemed like a good idea at the time. Now when booting up,the name at the top of the Grub menu is 1.98, which is Grub 2. When I run grub-install -v, it comes back grub-install (GNU GRUB 0.97) which is not Grub2. Now when I boot up, Ubuntu 10.04 is the default. I have to manually choose Windows if I want to use that system. I have been unable to change the boot order following instructions from this site. Any Way changing the boot order to make Windows 7 the default. I am using a Toshiba Satellite.
Everything is installed and setup on my system, but when I setup my partitions I chose my Windows partition to be bootable. Can I just use cfdisk to toggle the bootable flag so my linux partition is bootable and rewrite the partition table?
using suse 11.3 and kde 4.4.4 on the mounted fat32 partition I cannot change icons partition is mounted in fstab in this way:/dev/sda8/ /dati vfat user, users, gid=users, umask=0002, utf8=true, 0, 0.I can create files folders modify, move and save them on the partition but if I try to change the icon (in dolphin right click>properties>click on icon) of the /eros folder (or any other folder or link) system gives me this error:impossibile salvare le proprieta' , non hai accesso sufficiente per scrivere su /dati/eros/.directory tha in english is something like this: impossoble save properties, you havent enough permission access to write on /dati/eros/.directory this happen also as superuser I remember that with suse 11.0 or 10.3 I was able to change icons on fat32 partitions, now with 11.3 I cannot, there ought to be a way to do what I did with the previous version with this 11.3 brand new ad more advanced version shouldn't it?
I initially installed SuSe11.2 with /tmp mounted on separate partition on another physical disk( there are two physical disks). Now I want to attach disk with existing SuSe11.2 to another motherboard so I would like that /tmp becomes part of the root partition. Will deleting /tmp mount point in /etc/fstab create automatically new /tmp from root at next startup, or something else has to be done to achieve, that in future, /tmp resides on root partition instead? In this way it would be much easier to move the disk with SuSe11.2 to another motherboard.
I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista.Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all?I would also like to be able to repartition all of the space that was previously occupied by Linux.
I'm trying to restore the grub using a ubuntu 9.10 live cd. I have two partitions in my computer, and i used the partition that contained Vista to install windows 7. Now, i'm trying to restore the grub so that i can also boot ubuntu.
When i do "sudo fdisk -l", the output is:
Disk /dev/sda: 120.0 GB, 120034123776 bytes 138 heads, 12 sectors/track, 141571 cylinders Units = cylinders of 1656 * 512 = 847872 bytes Disk identifier: 0x0fb3cfe1
I deleted Ubuntu partition from Windows and it deleted one of the LOgical partition(used for Data storage) along with it.Anny ideas how to recover that Logical partition?Windows disk manager now displays that partition as 'FRee Space'
I recently had to install ubuntu 10.10 through wubi because my olde ubuntu broke after a failed upgrade. Now I am quite happy with everything in 10.10 except I can't get to the files in my olde home folder because I chose the home folder encryption option in the installation process. How can I recover my home folder? They all seemed to be recovering from another user not another partition.