Ubuntu 14.0 LTS USB LIVE无法定位Windows文件及Win10管理员账户锁定求助
Hey Joe, let's tackle this problem head-on—first we'll get your Windows files visible in Ubuntu Live, then fix that locked admin account. Here's the step-by-step breakdown:
Step 1: Locate & Mount Your Windows Partition in Ubuntu Live USB
The most common reason Ubuntu can't find your Windows files is that the NTFS partition isn't mounted, or it's in a dirty state (from an improper Windows shutdown).
- Open the Terminal (find it in the applications menu or press
Ctrl+Alt+T). - First, list all your disk partitions to identify the Windows NTFS drive:
Look for a partition labeledsudo fdisk -lType: Microsoft basic datawith a size matching your Windows drive (usually the largest partition, often/dev/sda2or/dev/nvme0n1p2if you have an SSD). - If the partition shows up but isn't mounted, create a mount point and attach it:
Replacesudo mkdir /mnt/windows sudo mount -t ntfs-3g /dev/sdaX /mnt/windows/dev/sdaXwith your actual Windows partition (e.g.,/dev/sda2). - If you get an error about a dirty volume, fix the NTFS first:
Then try mounting again.sudo ntfsfix /dev/sdaX - If you still can't find the partition, check your BIOS/UEFI boot settings: ensure Ubuntu is booted in the same mode (UEFI or Legacy) as your Windows installation. Mismatched modes can prevent GPT/MBR partitions from showing up.
Step 2: Fix the Locked Windows Admin Account
Once you can access your Windows files, we'll reset the admin password or restore the account using the chntpw tool (a utility for editing Windows registry files from Linux).
- First, install
chntpw(you'll need to update your package list first for Ubuntu 14.04):sudo apt-get update sudo apt-get install chntpw - Navigate to the Windows registry config directory:
cd /mnt/windows/Windows/System32/config - Run
chntpwto edit the SAM file (which stores user accounts and passwords):sudo chntpw -u Administrator SAM - Follow the on-screen prompts:
- Choose option
1to clear the administrator password (this lets you log in without a password). - If your account was accidentally disabled, choose option
2to enable it. - Save your changes (option
qthenyto confirm).
- Choose option
Step 3: Post-Fix Notes
After making these changes, restart your computer and boot back into Windows. You should now be able to log into the Administrator account. Once logged in:
- Open the Registry Editor (
regedit), navigate toHKEY_LOCAL_MACHINE\SAM\SAM. - Right-click the
SAMfolder, go to Permissions, and restore the default permissions (ensure theSYSTEMaccount has full control, as it did before your changes).
内容的提问来源于stack exchange,提问作者joe

