LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2015, 09:27 AM   #1
GratefulGrubber
LQ Newbie
 
Registered: May 2015
Posts: 4

Rep: Reputation: Disabled
Smile Dual-Booting: Grub Rescue Mode Woes - Help Please :)


Hello!

TL;DR: Deleted Linux partition from Windows. Stuck at Grub rescue prompt.


I'm sorry to trouble you guys, because I'm an idiot.

So I'm wanting to dual-boot Kalilinux and Windows 8.
I went through the steps such as creating a bootable USB, changing the
boot order and so on. I get into Kali, start Gparted and try to partition stuff.

I'm far from an expert, so I wasn't sure what to do. Long-story short, I
didn't seem to get Kali installed correctly, due to something with an EFI
drive being required. So I boot into windows and then stupidly, because it said in the guide,try to "uninstall" Kali by removing it's partition, inside Win8 haha... So I did.

Now I simply get the Grub rescue command prompt when I boot from the same
USB and I have no idea how to fix it. I've run bootrec.exe/fixmbr in Windows haha,
for what it's worth. However Grub can't find any partition it says.

In windows, I have like... 2-3 Recovery partitions. Does anyone know how to remove
them??? I've tried to clear as much as I can, besides the C drive and Auxillary D drive.

Any advice would be very appreciated.
 
Old 05-05-2015, 09:48 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,193

Rep: Reputation: 243Reputation: 243Reputation: 243
If you have destroyed any Windows partitions you will (probably) have to reload Windows and all its applications.

If you boot any live CD/DVD distro you can run gparted to resize/delete/create partitions.

However, if Windows is still a going concern,
You should resize Windows partitions using Windows tools.

If all is effectively destroyed, I would first try installing Kalilinux - just to check it works OK.
Then reload a basic Windows, followed by Kalilinux, followed by all your Windows applications.

Retain or construct any useful backups first.

BTW I would read http://docs.kali.org/introduction/sh...use-kali-linux
especially
Quote:
If you are looking for a Linux distribution to learn the basics of Linux and need a good starting point, Kali Linux is not the ideal distribution for you. You may want to begin with Ubuntu, Mint, or Debian instead. If youre interested in getting hands-on with the internals of Linux, take a look the Linux From Scratch project.

Last edited by JeremyBoden; 05-05-2015 at 09:52 AM.
 
Old 05-05-2015, 10:06 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,339
Blog Entries: 1

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
You can setup another bootable USB install on any machine of the same cpu type. And more complex means to do it for other cpu types. A lot of bioses have an option to disable secure boot and enable legacy mode / CSM. Which allows you to boot from USB normal-ish relative to that 2006+ / pre-EFI era. Otherwise ubuntu and fedora are signed with microsoft keys and should function out of the box for EFI systems. Kali will likely need extra EFI steps to get it to boot under EFI with secure boot enabled and legacy mode disabled. Something about keys and a small DOS (vfat / fat32) partition. I've never done that since I don't run windows and don't need secure boot. Perhaps boot ubuntu or fedora and chroot to the kali environment. Various ways to function within a linux environment.

As far as grub, it boots to it's commandline mode in the absence of the other parts of grub that exist on a partition, typically with linux installed. You can chainload the grub.cfg of said partition if it exists with grubs configfile (hd0,1)/boot/grub/grub.cfg depending on stuff. And the () name being what gets listed by ls at grubs CLI and makes sense for your partition scheme. But most times it's easier to boot USB with grub on it, and do an update-grub under linux and boot that grub again and select it from a less technically inclined menu item. SDHC cards are good for that. And cheap to replace / duplicate.
 
Old 05-05-2015, 10:06 AM   #4
GratefulGrubber
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for the reply!

Windows works just fine. No problems there, so I don't think anything is destroyed.
I only tried to delete the partitions Linux had touched. So surely a reload isn't necessary?

I hadn't thought of putting gparted on a CD. Hopefully I can use a USB drive if needed. But I really don't know what I could delete or resize with Gparted.
I already have a lot of "unallocated space" thanks to using Windows Disk Management and I can't delete those recovery drives.
The Kali guide on the kali site which you linked to, did start up Kali in Live mode off of the CD (USB in my case).
Wherein it was then showed that you could use Gparted from there (in response to saying you should use windows tools for windows).

The problem is, I can't install Kali again. Because while I've even formatted the USB and made it bootable with Kali yet again,
I can't boot from it. I only ever get the aforementioned Grub rescue thing, instead of options to try Kali Live and so on.
I don't intend on using Kali as my main desktop; it's only for pentesting . I read your link, thank you. Everything is backed up already .
 
Old 05-05-2015, 10:12 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,193

Rep: Reputation: 243Reputation: 243Reputation: 243
Do you have the "Secure boot" setting enabled in your BIOS?
If so, it should be disabled.
 
Old 05-05-2015, 01:42 PM   #6
GratefulGrubber
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
Do you have the "Secure boot" setting enabled in your BIOS?
If so, it should be disabled.
Yes both secure boot and fast boot are disabled. That's why I don't understand why I'm not getting the Kali menu up,
just like when you use a liveCD. So it's not that I can't make it attempt to boot from the USB; Grub just can't find
the needed partiton or something.

Thank you for the help guys
 
Old 05-05-2015, 01:45 PM   #7
GratefulGrubber
LQ Newbie
 
Registered: May 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
You can setup another bootable USB install on any machine of the same cpu type. And more complex means to do it for other cpu types. A lot of bioses have an option to disable secure boot and enable legacy mode / CSM. Which allows you to boot from USB normal-ish relative to that 2006+ / pre-EFI era. Otherwise ubuntu and fedora are signed with microsoft keys and should function out of the box for EFI systems. Kali will likely need extra EFI steps to get it to boot under EFI with secure boot enabled and legacy mode disabled. Something about keys and a small DOS (vfat / fat32) partition. I've never done that since I don't run windows and don't need secure boot. Perhaps boot ubuntu or fedora and chroot to the kali environment. Various ways to function within a linux environment.

As far as grub, it boots to it's commandline mode in the absence of the other parts of grub that exist on a partition, typically with linux installed. You can chainload the grub.cfg of said partition if it exists with grubs configfile (hd0,1)/boot/grub/grub.cfg depending on stuff. And the () name being what gets listed by ls at grubs CLI and makes sense for your partition scheme. But most times it's easier to boot USB with grub on it, and do an update-grub under linux and boot that grub again and select it from a less technically inclined menu item. SDHC cards are good for that. And cheap to replace / duplicate.
Thank you.

But surely I can't chroot into Kali when I've deleted the partition (from inside Windows 8) where Kali resided?
I don't know how to do what you described in the second paragraph ^^'. I have heard of update-grub though. But since I can't get into Kali
in the first place, I imagine it's not possible.
 
Old 05-05-2015, 04:49 PM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,193

Rep: Reputation: 243Reputation: 243Reputation: 243
You can multi-boot Windows + Multiple Linux distros.
Do another install of Kali.
It won't matter if you have (or had) a previous version of Kali.
At worst you've wasted a bit of disk space.

Make sure that you have a recent-ish version of Kali that can cope with UEFI.
Note:- some BIOS's provide an imitation legacy MBR.
 
Old 05-07-2015, 05:32 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,339
Blog Entries: 1

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
With chroot you can boot any linux distro and chroot to another. You can even mount -o loop the iso image and chroot to it. You will need to share a few things between the host distro and the one you chroot into. One caveat with chroot is that you'll need to be running a 64 bit linux kernel to chroot into a 64 bit linux distro. Which doesn't necessarily mean that the host distro is a 64 bit distro.

Not all usb storage devices are bootable. I have a few SDHC card readers and only some of them are bootable. And an SDHC card could fail after a few hours of use, which is hard to detect as it doesn't fully fail, it becomes read-only in a lot of cases. Most usb sticks are bootable, but have such slow I/O rates that it's not a very productive experience. If you've re-installed linux to a usb partition you will need to re-install grub. Grub is relatively dumb and loads things from the distro that installed it. If that stuff moved or is missing, it fails to it's command line mode without access to the stuff that it needs to do useful things.

And a few other quirks if you have multiple usb storage devices plugged into usb, particularly if they're of the same model on the same usb bus. Which can cause /dev/ names to flip flop or be unseen. And dev names can vary if you boot with it plugged in or plug it in after booting. Which can make your grub.cfg unusable by default. You can configure grub to boot using the partitions UUID or LABEL which avoids these issues to some extent. But it's not necessarily the default grub.cfg that generates when you run update-grub. You can still mount and use both usb storage devices of the same type on the same bus, but you'll have to know the UUID or LABEL of the unseen one as it might not have a /dev/ name or show up in /proc/partitions. YMMV, depending on devices and distros.
 
Old 05-07-2015, 08:10 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
When you deleted kali you should've run fixmbr before nest boot.
The easiest way to repair is with wins dvd or reinstall kali or whatever linux distro.
Fix wins efi or mbr, then remove linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual booted Debian not booting from harddrive, grub rescue prompt only MartyJay Linux - Laptop and Netbook 5 11-17-2013 01:49 PM
GRUB rescue mode AN28 Linux - Newbie 2 10-31-2013 05:18 AM
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 10:30 AM
[SOLVED] grub rescue: "error: unknown filesystem" when booting Windows XP / Ubuntu dual boot LittleRatRottenHut Linux - Laptop and Netbook 9 02-01-2011 09:32 PM
Booting to rescue mode, but no /mnt/sysimage KillerBeeBop Linux - Software 2 02-20-2008 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration