Windows 10 forum

Question

Error in BOOT/BCD after I installed Kali Linux alongside wit

by AsmaImtiaz / November 30, 2017 12:30 PM PST

Hello!

I am new to Linux. I tried it and I loved it so I decided to install one.

I went for Kali Linux. I installed it as per the installation guide described in almost every other installation guide.

So When I finished, I started my PC and then this message appeared on windows screen.

"Your PC ran into a problem" I tried to restart, reset and everything I could do but nothing work.

I also tried to fix Booting with BOOTREC/Fix Boot, DISKPART , but this resulted in errors as well.

Major problem is that, no repairing option is reading my Hard Drive. Below is the errors of the commands, I tried.

bootrec /scanos Total Identified Windows Installation : 0

bootrec /fixboot this volume does not contain a recognized file system.

When I tried to install another windows from the CD, the list of drives did not appear in the list.

I have tried different methods, but this is not working.

If you guys know any solution, please let me know.

FYI, Neither Kali nor Windows worked fine after the Kali Linux Installation.

Thanks,
Asma

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: Error in BOOT/BCD after I installed Kali Linux alongside wit
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Error in BOOT/BCD after I installed Kali Linux alongside wit
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Clarification Request
You wrote
by itsdigger / November 30, 2017 1:27 PM PST

"When I tried to install another windows from the CD, the list of drives did not appear in the list."
What other Windows did you try to install ?
When you boot up the computer , does the BIOS screen come up ?
Maybe some setting in the BIOS won't let you install Kali , seems kind of strange no HDD is recognized.

It would be nice if you told the members what kind of computer you have..

Collapse -
Info
by AsmaImtiaz / December 1, 2017 12:01 AM PST
In reply to: You wrote
"When I tried to install another windows from the CD, the list of drives did not appear in the list."
What other Windows did you try to install ?


I used a windows 10 CD/DVD for recovery. When recovery did not work, I went ahead and tried to install the windows from CD. On drives selection options, it listed no drives.

When you boot up the computer , does the BIOS screen come up ?

Yes, it comes up.

Maybe some setting in the BIOS won't let you install Kali , seems kind of strange no HDD is recognized.


Yes, its weird.

It would be nice if you told the members what kind of computer you have..

Its hp pavilian g6, windows 10 64 bit, 8GB RAM, 500 hard drive
Collapse -
Re: boot error
by Kees_B Forum moderator / December 1, 2017 12:28 AM PST
In reply to: Info

Looks like a bad hard drive. Try another one to "install another Windows from the CD".

Collapse -
(NT) can you see the drive in BIOS?
by James Denison / December 1, 2017 1:32 AM PST
In reply to: Info
Collapse -
RE: can you see the drive in BIOS?
by AsmaImtiaz / December 1, 2017 2:08 AM PST

yes!
I can see the drive! its status is healthy!
I have ran disk tests, all passed! none failed

but when I did "list disk" in recovery command prompt, it gave the status of Disk 0, Unhealthy!

Collapse -
All that means is Windows doesn't understand the drive.
by R. Proffitt Forum moderator / December 1, 2017 7:23 AM PST

It's likely you need to wipe the drive clean and start with a blank, unformatted drive.

Collapse -
Windows can only see...
by James Denison / December 1, 2017 12:41 PM PST

....drives that are formatted in FAT or NTFS file systems. There are add=on programs like EXT readers which allow them to see and read Linux file systems, but nowadays it's just better to boot a LIVE Linux DVD and use it's file manager for that instead.

I don't know what you did to the drive, but possibly the entire drive is now an EXT4 type file system. The only way you can know for sure is to run GParted, either from a LIVE Linux DVD, or as a standalone (you can download as stand alone). However, you also want to SEE any files on the partitions.

Collapse -
Gparted drive status
by AsmaImtiaz / December 2, 2017 2:48 AM PST

I am using Gparted and currently in /dev/sda.

here is the result of Drives scan.

/dev/sda1 ntfs System
/dev/sda2 ntfs
/dev/sda3 ntfs

/dev/sda4 extended
/dev/sda5 fat32
/dev/sda6 linux swap

/dev/sda1, 2 and 3 have an triangular yellow icon with them, indicating corrupt or something!

All Answers

Collapse -
Answer
Not an unusal issue.
by R. Proffitt Forum moderator / November 30, 2017 12:42 PM PST

I would boot my W10 USB Recovery and Install stick and see if can repair it. Sometimes it can't and we are left to start over and try again.

Be sure to post on Kali boards about the failure and ask how to avoid this the next time.

Remember, we know installing another OS can wipe out what's on that HDD so I didn't broach the subject of backups and more.

Collapse -
what if i do not have a recovery
by AsmaImtiaz / November 30, 2017 1:04 PM PST
In reply to: Not an unusal issue.

Sadly, I have not created a recovery when my windows was working. Now, I cant event boot into my PC.

Collapse -
Options.
by R. Proffitt Forum moderator / November 30, 2017 1:30 PM PST

1. Order recovery media.
2. Google "Microsoft Media Creation Kit" to find the tool to make a new USB stick with W10 repair and install tools.

Collapse -
Do you have a LIVE DVD of Kali or another Linux system?
by James Denison / December 1, 2017 1:35 AM PST

If so, boot to the DVD and open GParted and see if it can give you information on the drive. You can also open terminal or Konsole and run following commands and post the info here.

fdisk -l
parted -l
sudo blkid


That is small L above, not numeral one.

Collapse -
Gparted Status
by AsmaImtiaz / December 2, 2017 2:47 AM PST

I am using Gparted and currently in /dev/sda.

here is the result of Drives scan.

/dev/sda1 ntfs System
/dev/sda2 ntfs
/dev/sda3 ntfs

/dev/sda4 extended
/dev/sda5 fat32
/dev/sda6 linux swap

/dev/sda1, 2 and 3 have an triangular yellow icon with them, indicating corrupt or something!

I do want to enter to knsole but it is not letting me! lol how can I exit this and use knsole.

Collapse -
Knsole commands!
by AsmaImtiaz / December 2, 2017 3:16 AM PST
fdisk -l

it listed all the drives and there are two warning messages in red.

Partition 1 does not start on physical sector bountry
Partition 4 does not start on physical sector boundry

Parted -l

listed all the drives with a waring:

Unable to open /dev/sr0 read-write only
Error: /dev/sr0 : unrecognized disk label
Partition table unknown

sudo blkd

listed all the drives with info.

/dev/sda2 type ntfs
/dev/sda3 type ntfs
/dev/sda4 type exfat
/dev/sda4 type vfat
/dev/sr0 type udf
Collapse -
As it stands, the filesystem is
by R. Proffitt Forum moderator / December 2, 2017 6:34 AM PST
In reply to: Knsole commands!

Not what Windows can use so you have issues as found above. Looks like you get to start over.

Collapse -
As it stands, the filesystem is
by AsmaImtiaz / December 2, 2017 6:42 AM PST

What do you mean by "Looks like you get to start over"?

What should I do now!

formatting the Linux partition would help?

Collapse -
Re: what now?
by Kees_B Forum moderator / December 2, 2017 6:47 AM PST

1. Erase the disk (DBAN or KILLDDISK or so).
2. Install Windows, leave space for Linux. Check that it works.
3. Install Linux. Check that dual boot works, and both OS'es work.
4. Fully update Windows, install programs, do settings, restore the data from your backup.
5. Tune Linux for optimum sound.

Collapse -
Re:Erase Disk
by AsmaImtiaz / December 2, 2017 7:11 AM PST
In reply to: Re: what now?

It wont help. I do not need dual boot. I just want my data and windows working. Sad

there is no other solution?

in case, you have not read the issue in detail. It says, there is an issue in /BOOT/BCD!

Collapse -
Re: dual boot
by Kees_B Forum moderator / December 2, 2017 7:27 AM PST
In reply to: Re:Erase Disk

Since this thread starter with you installing Linux, I supposed you needed that.

But if you only need Windows, try the repair options from the Windows install medium . https://www.cnet.com/forums/discussions/startup-error/#post-4d100a64-3bf3-402e-b78a-f0f36bdf5c5e tells how a member solved boot errors that way just today.

If that fails, the recipe is:
1. Boot to a Linux disc or stick to backup your files to an external hard disk.
2. Erase the internal HDD (DBAN or KILLDDISK or so).
3. Install Windows.
4. Fully update Windows, install programs, do settings, restore the data from your backup.

If step 1 fails, you lost what you don't have on your current backups.
If step 3 fails, most likely it's a hardware issue.

Collapse -
Re: bootrec.exe /fixboot
by AsmaImtiaz / December 2, 2017 8:00 AM PST
In reply to: Re: dual boot

Thank you for all the suggestions.

I tried the bootrec already, It did not work.

bootrec.exe /fixboot says "the volume does not contain a recognized file".

Collapse -
Let's say you want your data and Windows working.
by R. Proffitt Forum moderator / December 2, 2017 8:27 AM PST

Your data on any PC, smartphone or dumbphone, tablet, etc. is always on backups. There is no doubt here we only lose what we don't backup.

So if you forgot to backup you need to boot Linux to copy out what you forgot. I handed out this advice over a decade ago and it still works. Use a current live USB or DVD and read http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm
There is no learning linux here.

-> So with your data safe you wipe the drive and restore it per the machine maker's instructions. Restore your data and learn not to do that again without a backup of the machine before you try to dual boot.

Collapse -
The sr0 is the cd/dvd drive in those reports
by James Denison / December 2, 2017 12:09 PM PST

the sda is the first and seemingly only hard drive. The numbers after it like sda1, sda2 and so on, are the partitions on the drive.

This was windows 10?

It looks setup correctly in the partitions, but something happened with the bootloader install for some reason. If W10, it would have used the EFI partiton to put the linux bootloader in it. Have you entered the UEFI - BIOS and turned off secure boot and then tried to have it set to boot the linux partition?

which OS you want most? The windows, or the linux? Or both?

As Robert said, you need to boot a LIVE DVD of Linux and use it's file manager to find all your personal data you want, including the profile folders for Browsers like firefox or chrome and pull those out too, and if you use an email client, should find those Inbox and Sent files to save.

I think you may ONLY need to fix the windows bootloader. Download this, burn image to a DVD, and then see if you can use it to repair the windows bootloader. Also, if you have a windows install disc, could boot to that instead and run the repair program on it.

https://sourceforge.net/p/boot-repair/home/Home/

Collapse -
After doing what I posted above
by James Denison / December 2, 2017 12:28 PM PST

Go into the UEFI BIOS and Turn Off Secure Boot. Try the Kali Linux install again and maybe this time it will do the GRUB bootloader correctly, which just might give you back windows and linux at the same time.

If you get Windows back on and wish to also have Linux, the safer route is to put it on a different drive, even a flashdrive. Yes, unlike Windows, it can be fully installed to a USB flashdrive instead. You would want it on a faster USB3 type. I would urge this one, which is the same that osdisc.com, a major linux media provider uses. Stainless steel durable and at 150 mbs fast enough for linux. By doing install to a second drive, you can avoid the possible perils of dual booting windows and linux on the same hard drive.

Collapse -
Resolved the issue
by AsmaImtiaz / December 4, 2017 6:49 AM PST

I may sound very dumb but the problem was very minor and the solution was very easy!

when I installed linux, my Basic drives changed into dynamic. That is why I could not access my drives.

I converted my HD to basic from cmd and then I reinstalled windows. Recovered my data from hidden partitions using EaseUS Data recovery.

I am very thankful to all of you for the help. I have learnt many things from each answer posted on this issue.

Thanks again.

Collapse -
Yes and No
by James Denison / December 5, 2017 1:07 AM PST
In reply to: Resolved the issue
https://michael-prokop.at/blog/2013/02/18/ldmtool-accessing-microsoft-windows-dynamic-disks-from-linux/

"when I installed linux, my Basic drives changed into dynamic. That is why I could not access my drives."

Someone converted them to dynamic in Windows and then you discovered it. Linux doesn't create dynamic drives and certainly not on install. You simply discovered them that way. I don't think even windows installs as dynamic drives, but can convert to them AFTER it's been installed, by the user. What is dynamic drives? Microsoft page could go into more depth, but simply put, it's so multiple drives can be configured as if one larger drive, like they were "pasted" together.
Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?