I’m trying to create a bootable 32G stick from a new drive for a Windows 10 install, but for some reason neither GParted or fdisk will allow me to use more than 4M of it. ‘fdisk F’ won’t show the other 32G. Any ideas? I can’t even figure out how to wipe it to start with a clean drive.
Here’s what happens if I just want to wipe the drive:
# dd if=/dev/zero of=/dev/sdc bs=4M iflag=nocache oflag=direct
dd: error writing ‘/dev/sdc’: No space left on device
2+0 records in
1+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.00521806 s, 804 MB/s
IOW, it’s saying it’s writing 4M, and then it runs out of room, because it’s only seeing the first 4M.
WTF?
The problem is that I’m following the instructions here. But when I look at the disk, unlike his, which is showing the whole drive, I’m seeing that 4M of unallocated space (which isn’t actually a petition, according to fdisk) at the front, and I suspect that it’s why I can’t boot from it. And I can’t get rid of it (that is, allocate it to the rest of the drive).
[Update a while later]
I’ve tried most of the things suggested in comments, but now I’ve got a new problem. I did ignore the 4M segment, and copied the Windows boot files to the 31G partition, so in theory I have a Windows boot drive. In practice, though, the BIOS on the machine I want to repair with it refuses to see it (MSI board). Moreover, I did manage to boot into Fedora, and Nautilus in Fedora saw it, even though the BIOS doesn’t. But to top it off, Fedora is becoming unusable on the machine, freezing shortly after boot, or refusing to open any programs (including a terminal), which makes it an unuseful OS.
Other than that, things are going great.
[Update a while later]
So I restored defaults on the BIOS, and now it sees the drive. Unfortunately, when I tell it to boot from it, I get “No way, Jose.”
So I still don’t seem to have successfully created a Windows boot drive.
[Monday-morning update]
I’m now starting to wonder if I have hardware issues (in addition to the thumb-drive issue). I have an SSD that looks like it might have a Windows install on it, because I can see it on my machine (the problem is with Patricia’s, which has the same type of motherboard). But when I plug in into her machine, the BIOS refuses to see it. Furthermore, sometimes (and the most recent time in which I tried to look at it on her machine), the BIOS is unresponsive, or slow. The mouse is glitchy, and there are long (as in many seconds) delays between hitting keys and anything happening. Even furthermore, I’m having the Fedora problems described above.
I hate to replace the motherboard, both because of the cost and the PITA, but if a BIOS is flaky, not sure what else to do (other than maybe trying to flash it, which could be difficult if it’s refusing to see flash drives).
[Late-morning update]
I do see at the MSI site that there have been several BIOS updates since I bought the board, so maybe I should try that.
[Late-afternoon update]
Well, now I’m royally screwed. I’ve lost another computer, and am down to a single laptop.
Fedora had been going into a mode after I removed a flash drive from Nautilus of refusing to accept keystrokes, and there was nothing I could do to get it back except to reboot. I had successfully flashed the BIOS on Patricia’s machine, and decided to update my own. But when I tried it, unlike on Patricia’s machine, the flash wizard couldn’t see the update on the flash drive, so I had to abort. It still goes into the BIOS, and will boot Fedora, but now the login screen won’t accept keystrokes, so I can’t, you know, log in.
I know that there’s nothing wrong with the keyboard, because I’m using it right now, on the laptop.
[Tuesday-morning update]
So the keyboard works in the BIOS, and when it goes into grub, I can use the down arrows to select which kernel to boot. The problem arises when it boots into a login screen. I can select the user with the mouse, but when it comes up with the password box, it accepts no input from the keyboard. And it does this with more than one boot drive, so it’s not an installation issue. Something is happening during boot that makes it stop listening to the keyboard. I’d look at dmesg but, you know, no keyboard to ask to look at it.
I’m typing this from Patricia’s computer, which I booted from a Linux drive that I usually use on the laptop. The problem here is that it runs like molasses in an Arctic January, with long periods of non-responsiveness from any software I run, though over time this morning it’s gotten better. When I look at the system monitor, there is no process that’s using a lot of resources, so it’s a mystery why the machine is so slow.
[Bumped]
OK, a little progress. If I select rescue mode in grub, I keep the keyboard. I looked through the journal and saw lots of issues but none of them obviously related to this and apparently it’s something that doesn’t happen in rescue mode. I did modify fstab so that I can boot a different computer with it (normally, it mounts a separate drive to /home, so I can keep my data off the system drive). So I’m going to reboot this machine with it and see what happens.
[Afternoon update]
Bad news, and good news.
The bad news (at least in theory, if not practice) is that the Fedora drive from my machine won’t boot in her machine, despite the same motherboard, processor, etc. It just circles and never gets to a login screen. The reason it’s only bad in theory is that I had no plans to use it with her machine–it’s just concerning that I’m getting different behavior from the two machines.
The good news is that my machine has started to pay attention to the keyboard again, and I’m doing this update from it. Perhaps the process of going into the rescue mode straightened out whatever the issue was, but at least it’s functional again.
Now to try once again to build a Windows boot drive. I’m going to use a 60G SSD that has an old Fedora boot on it, which I won’t be using, so it’s safe to just wipe it clean and see if I can make it happen this time.
[Wednesday-morning update]
I had more keyboard issues yesterday, but I think I’ve resolved it. The keyboard and the USB port that I was using for the USB stick were sharing the same port on the motherboard, and it was probably causing a conflict. I moved the keyboard to a hub on a different port, and so far, so good. Now back to trying to create a Windows drive.
[Bumped]