Code Monkey home page Code Monkey logo

Comments (9)

nreef12 avatar nreef12 commented on June 14, 2024 1

probably including links to the relevant upstream Asahi docs

Definitely include this guide: https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet

from ubuntu-asahi.

bbbbbb11 avatar bbbbbb11 commented on June 14, 2024 1

Usefull screenshot.
File system after / before installation

image

As guy from youtube showed (https://youtu.be/aXh_d1OixRI), we able to erase EFI EFI - UBUNTU after installing

diskutil eraseVolume JHFS+ empty /dev/disk0s4

from ubuntu-asahi.

cowpod avatar cowpod commented on June 14, 2024

What worked for me was booting into recovery, and running the wipe-linux.sh script provided by the Asahi team.
Running it in normal OS resulted in permission denied errors, and leftover partitions (such as the EFI partition).

from ubuntu-asahi.

tobhe avatar tobhe commented on June 14, 2024

@cowpod Thanks, I almost forgot about that. Maybe I should mirror that on my domain too. I vaguely remember the Asahi docs warning against using it blindly and I don't know how well it plays with multiple Linux installations.

from ubuntu-asahi.

clementperon avatar clementperon commented on June 14, 2024

@tobhe at the moment the script will erase a random APFS container where the size match 2.5GB, and volumes that match 'asahi|linux|EFI'.
https://github.com/AsahiLinux/asahi-installer/blob/main/tools/wipe-linux.sh

I would have been interested to know that it exist before manually wiping my previous ArchLinux

It could be improved a bit by adding a user confirmation before performing these operations.

from ubuntu-asahi.

cowpod avatar cowpod commented on June 14, 2024

The script warned you what it'd do when you ran the script.

echo "THIS SCRIPT IS DANGEROUS!"
echo "DO NOT BLINDLY RUN IT IF SOMEONE JUST SENT YOU HERE."
echo "IT WILL INDISCRIMINATELY WIPE A BUNCH OF PARTITIONS"
echo "THAT MAY OR MAY NOT BE THE ONES YOU WANT TO WIPE."
echo
echo "You are much better off reading and understanding this guide:"
echo "https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet"
echo
echo "Press enter twice if you really want to continue."
echo "Press Control-C to exit."

We could get the partition UUIDs using like diskutil info /dev/diskXsX | grep "Disk / Partition UUID" | sed 's/.*: //' and place them somewhere, eg. in the EFI partition. Then when we run the uninstall script it'll delete partitions by UUID.

Downside: If we somehow delete the EFI partition, we'd lose those UUIDs. This is unlikely, and if we do lose the EFI partition we've likely already nuked the other partitions as well.

Another option would be to somehow label each partition with a single (newly generated) UUID tied to the install. This would allow us to delete all partitions with said UUID, matching whatever OS you want to remove. We'd still need to place that single UUID somewhere as well...

from ubuntu-asahi.

eslerm avatar eslerm commented on June 14, 2024

from upstream

PSA: Stop telling people to run wipe-linux

That script is deliberately dangerous and only intended for developers wiping regularly.

Going forward mentioning it [on reddit] is banned. Your comments/posts will be removed and repeat offenders will be banned. Yes, this is that serious.

If people are asking how to uninstall, send them to the Partitioning cheatsheet instead, which does mention that script with all the appropriate warnings that y'all never do, as well as documents the right way of doing things manually.

from ubuntu-asahi.

cowpod avatar cowpod commented on June 14, 2024

I fail to see how a reddit post contributes to this. We all know that the script can be dangerous. If you're somehow surprised that a script that warns it'll wipe everything... wipes everything, then I don't know what to say.

from ubuntu-asahi.

eslerm avatar eslerm commented on June 14, 2024

When the docs are made, we should just link to upstream for the uninstall process :)

from ubuntu-asahi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.