Tried to dual boot W11 & Ubuntu & bricked my PC

2 years ago by Ezek to c/linux

Not sure if this is the right place to ask or if anyone can help me, but today, I installed the ubuntu ISO & converted it to a bootable format on an 128GB SD card (All my USBs are too small) I ran the installer as normal & here's where I think I messed up. I allocated a 27GB partition for linux but that option didnt apper on the installer upon being asked where to install to. Thinking nothing of it, I ran the installer clicking on the install to drive option & halfway through it failed saying something like Error16 Drive is busy & the installation was only half done. now on attempt to restart windows is completely gone & all I can do is boot up a very fragmented Ubuntu without internet & firefox works very slowly. If anyone can help, then it's appreciated. I've always wanted to try Linux & just got an SD card large enough to do it, but now this happens.

load all comments
bloodfart 2 points 2 years ago

Imma just start typing and see where this goes:

Sd cards arent the same as usbs or ssds. They seem the same because it’s like the same thing right? But they’re not.

Most usbs and all ssds have a controller that actually handles writing and reading to and from the memory chip. The controller lets them do things like recognize bad spots and write data elsewhere, perform secure erase functions, wear leveling and all sorts of the kinda stuff we expect of components we’re gonna use as hard drives.

Sd cards almost universally don’t have that controller. The goal for sd cards was to provide bulk storage to all kinds of embedded devices like cameras and later, phones. Because there’s no controller, there’s no wear leveling, no overprovisioning, no secure erase. That’s fine because the goal was always to just slam the sucker full of pictures and never erase it till it gets full, then start all over again.

But if sd cards aren’t acceptable hard drives then how come we use them in little sbcs like raspberry pi and whatnot?

Well the install process in that case almost always writes the system to the card first instead of doing a million reads and writes to figure out what repositories are available, updating packages, etc. sbc systems using sd cards as their storage are also (or should be!) configured to do minimal writes, with constrained log sizes and minimal swap.

So don’t use an sd as a usb or hard drive.

People might say that I’m wrong in replies to this post. They’ll say that sd cards are fine and that they have over 20k write cycles on their hyinx megacard128. Sd fails silently. I am not wrong. You literally just had problems installing from an sd. I can’t tell for sure if your problems came from using an sd or misconfiguring the new partition scheme but it sure as heck didn’t help that you used an sd as your install media.

Okay, now you said you have windows back up and running. Is it fully recovered and working good?

Is it using the whole drive?

Do you have all your files back?

Have you made a backup?

If you answer these questions I can walk you through the process of setting up windows to dual boot Linux in a way that won’t fuck up.

path: 0 10825260, hotness: undefined, score: 2, children: 15
Ezek 1 point 2 years ago

Yes I have recovered windows & all my files completely now & that USB I used for windows (just bought one big enough for booting) should be able to be used for linux files, I can just transfer them over from the SD can't I?

path: 0 10825260 10825807, hotness: undefined, score: 1, children: 13
bloodfart 1 point 2 years ago

I wouldn’t. Go ahead and make a new bootable usb using rufus or something.

What’s your partitions look like right now?

path: 0 10825260 10825807 10825912, hotness: undefined, score: 1, children: 12
Ezek 1 point 2 years ago

I have a 28GB D drive that seems to be being used for recovery and backups & a 210GB C drive, I could easily free about 30GB for another partition. I have the bootable USB set up.

path: 0 10825260 10825807 10825912 10827114, hotness: undefined, score: 1, children: 11
bloodfart 2 points 2 years ago

okay, that's fine! make sure to turn off bitlocker.

once you've done that you're gonna resize your partitions in windows. i'll walk you through that.

so your C: drive is 210 GB, how much free space do you have on it?

path: 0 10825260 10825807 10825912 10827114 10827372, hotness: undefined, score: 2, children: 10
Ezek 1 point 2 years ago

about 90GB is left on C:\ but I'll only need 30GB for my linux partition. Besides, I can always resize the partition later, right?

path: 0 10825260 10825807 10825912 10827114 10827372 10827604, hotness: undefined, score: 1, children: 9
bloodfart 2 points 2 years ago

right on, you have enough space to not end up in trouble!

in windows, right click the start menu and choose "disk management"

it'll bring up an old looking MSI that shows your drive and the different partitions it has.

right click the C drive and choose "shrink".

you'll get asked how much you want to shrink it by iirc. type in the number and click okay.

once that is done, the disk management window will show the new free space.

if everything goes as planned, make sure you turned off bitlocker and restart into windows.

path: 0 10825260 10825807 10825912 10827114 10827372 10827604 10827813, hotness: undefined, score: 2, children: 8
Ezek 1 point 2 years ago

okay, that's done. Now what do I do? I am assuming we need to tell the PC to install linyx into that partition (& only that partition without erasing the entire drive)

path: 0 10825260 10825807 10825912 10827114 10827372 10827604 10827813 10828542, hotness: undefined, score: 1, children: 7
bloodfart 1 point 2 years ago

alright, go through the ubuntu installer and pick the "install alongside" option when it comes up. it ought to be at the same time that it offers you the option to erase the disk altogether. the "installation type" menu. if you don't get that option, stop and say so.

e: i just finished installing ubuntu desktop lts alongside windows 11 in a vm using the process you're doing. its the disk selection menu, not the installation type.

path: 0 10825260 10825807 10825912 10827114 10827372 10827604 10827813 10828542 10828620, hotness: undefined, score: 1, children: 6
Ezek 1 point 2 years ago

Let me check if I have this right. Once i have the USB and disc partition set up boot from the USB & go to the installer. Then select download alongside and chiose tge partition to install linux to?

path: 0 10825260 10825807 10825912 10827114 10827372 10827604 10827813 10828542 10828620 10829144, hotness: undefined, score: 1, children: 5
linux
linux

@lemmy.ml

login for more options
67154
9224
4666

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

go to feed...