View previous topic :: View next topic |
Author |
Message |
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Fri Nov 29, 2019 2:01 pm Post subject: [SOLVED] Windows 7 hard drive disappears from dmesg |
|
|
I recently got a new drive to expand my Windows drive. I cloned it and then expanded it onto the new drive. There were a few issues that I was able to resolve with EasyBCD, but now my Gentoo system simply won't see the drive. `lsblk` doesn't show it, `fdisk -l` doesn't show it, it's not in dmesg, etc.
It's a SATA drive just like the others. The mobo sees it, I can boot into it from the boot menu or GRUB and both work. It's Linux that can't see it...
Any ideas?
EDIT: The ideal solution is to set a registry key from 3 to 0 (see Anon-E-moose's link to WinAero), reboot into the BIOS, set the SATA controller to AHCI for the given slot(s), boot into Windows, let it detect the drive in a different interface, then reboot for it to stick.
I was already dealing with a cloned-drive that didn't get detected well so I had an incomplete/borked bootloader setup that EasyBCD didn't fix. Once I reinstalled the bootloader using EasyBCD, then fixed *that* bootloader with WinRE (the windows recovery tool in the installation media), everything was fine since the registry key was already set to 0.
A heartfelt "thank you" to everyone for saving my Sunday afternoon!
Last edited by spork_kitty on Sun Dec 01, 2019 8:54 pm; edited 1 time in total |
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Fri Nov 29, 2019 2:42 pm Post subject: |
|
|
I'm not entirely sure which driver is being used.
`zgrep SATA /proc/config.gz` returns:
Code: | # CONFIG_SATA_ZPODD is not set
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_MOBILE_LPM_POLICY=0
# CONFIG_SATA_AHCI_PLATFORM is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not set
# SATA SFF controllers with BMDMA
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
|
|
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Fri Nov 29, 2019 3:09 pm Post subject: |
|
|
What sata port is it plugged into (on the MB)? (I ask because my MB has 2 sata controllers)
Do you have a copy of sysrescuecd to try and see if it recognizes the drive? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Fri Nov 29, 2019 7:41 pm Post subject: |
|
|
spork_kitty,
What does lspci say about your motherboard? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Sat Nov 30, 2019 6:04 am Post subject: |
|
|
The drive is a Western Digital Blue 5400 rpm 2TB drive. WD20EZAZ model.
Code: | # lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 3)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e7)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
|
The drive is plugged into the slot labeled SATA5. The other two drives occupy slots 1 and 3 with no issues. The mobo is an ASUS M4A88TD-M/USB-3.
I think I have sysrescue floating around here. Will report back with results. |
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Sat Nov 30, 2019 8:16 am Post subject: |
|
|
Quote: | 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40) |
your controler is in IDE mode. what would happen if you change that to AHCI in BIOS? _________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Sat Nov 30, 2019 10:26 am Post subject: |
|
|
e3k wrote: | Quote: | 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40) |
your controler is in IDE mode. what would happen if you change that to AHCI in BIOS? |
IDE mode only allows 4 sata ports to be used (IIRC). _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Nov 30, 2019 2:47 pm Post subject: |
|
|
e3k wrote: | your controler is in IDE mode. what would happen if you change that to AHCI in BIOS? |
On my 10 year old mobo, it gives random blue screens on Windows, Gentoo is fine.
OP, make sure you have a backup before you try.
Anon-E-moose wrote: | IDE mode only allows 4 sata ports to be used (IIRC). |
Bingo! Explains why my DVD drive wasn't recognized! |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2014
|
Posted: Sat Nov 30, 2019 3:58 pm Post subject: |
|
|
Tony0945 wrote: | ...
On my 10 year old mobo, it gives random blue screens on Windows, Gentoo is fine.
... |
Have you enabled the AHCI driver in Windows? On older versions like Vista, it gets disabled on BIOS/MBR boot disk setups at installation. There's a registry edit to fix it - see Microsoft support article _________________ Greybeard |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sat Nov 30, 2019 8:50 pm Post subject: |
|
|
spork_kitty,
IDE mode on a SATA interface is usually crippled, only some SATA ports work, no DMA, so its slow, so it should be avoided.
Linux has never needed IDE mode. Its sole intended purpose was to allow Windows users to install Windows when the Windows AHCI driver was an optional extra.
Once Windows users installed the AHCI driver, they were supposed to switch the BIOS to AHCI mode to get full SATA functionality and never use IDE mode again. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Sun Dec 01, 2019 6:24 pm Post subject: |
|
|
Good eye, guys! I did take a look at the SATA controller settings in the BIOS. It appears SATA slots 1-4 can work in AHCI mode but slots 5 and 6 are restricted to IDE mode. Very odd, to me, and something I'll need to watch out for next time I buy a mobo.
That also explains why it loads slower than it should since it's *supposed* to be on a SATA 6Gb/s connector...
I'll see what I can do to force it into all AHCI mode. Failing that I'll try to plug it into slot 2 or 4, assuming I have enough room next to the GPU... |
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Sun Dec 01, 2019 6:33 pm Post subject: |
|
|
So, it looks like my SATA controller was indeed in IDE mode! Setting it back to AHCI allows me to see the drive on Linux! Huzzah!
Next, I need to fix the issue with Windows booting. It complains about a missing BOOTMGR now that it's in AHCI mode.
I have an installation disk so maybe I can just boot into that and try to repair it. Suggestions? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sun Dec 01, 2019 6:35 pm Post subject: |
|
|
spork_kitty,
Windows Vista and XP shipped without an AHCI driver.
Hopefully you won't be buying a new motherboard that is Windows XP ready :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Sun Dec 01, 2019 6:52 pm Post subject: |
|
|
This drive is using 7, thankfully, so it shouldn't give me much in the way of trouble. Now that I can see the drive from Linux, I can copy things off of it and start from scratch if I need to. I'd rather not, though.
EDIT: Blue screen on boot. Cannot get into Safe Mode either. When I get into WinRE, it doesn't detect Windows on the drive and automated repair couldn't do anything. Seems like it's borked. Lovely to happen on a Sunday of a 4-day weekend. At least with your guys' help, I can see the drive and recover its data. Thanks again everyone!
I'm in the process of copying over important files (installers and gamesaves mostly) so I can reinstall Windows with my mobo in AHCI mode. It had trouble with the cloned drive anyway, so a clean slate will probably have fewer problems.
Maybe I'll do a recovery partition like they suggest, too. 2TB is plenty of space. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Sun Dec 01, 2019 7:46 pm Post subject: |
|
|
spork_kitty wrote: | So, it looks like my SATA controller was indeed in IDE mode! Setting it back to AHCI allows me to see the drive on Linux! Huzzah!
Next, I need to fix the issue with Windows booting. It complains about a missing BOOTMGR now that it's in AHCI mode.
I have an installation disk so maybe I can just boot into that and try to repair it. Suggestions? |
Put the bios in ide mode, and fix windows, then switch to ahci.
Note: after applying the patch to windows, it wants you to reboot into ahci mode anyway.
https://winaero.com/blog/switch-from-ide-to-achi-after-installing-windows-7-or-windows-8/ _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
spork_kitty Tux's lil' helper
Joined: 05 Jul 2019 Posts: 124
|
Posted: Sun Dec 01, 2019 7:53 pm Post subject: |
|
|
I'll try that registry hack first. It would save me hours of trouble. Thanks for the link Anon-E-moose!
EDIT: The registry key was already set to 0. I'm trying a few more things before I wipe it and reinstall.
EDIT2: I used EasyBCD to reinstall BOOTMGR to the MBR. There was a problem with the way it was installed or something, so I combined it with Windows installation media, which recognized the faulty bootloader, fixed it, and rebooted for me. When I logged into the live Windows system, it recognized and installed the drive as AHCI. A few reboots later to check that I could access it from Gentoo then booting back, everything's fine.
It's a shame I don't know *why* it's fixed, but it's fixed.
Huge thanks to you guys for pointing me at the BIOS. |
|
Back to top |
|
|
|