ubuntuusers.de

2. Xubuntu Installation wieder löschen

Status: Ungelöst | Ubuntu-Version: Xubuntu 24.04 (Noble Numbat)
Antworten |

Windowshasser2017

Anmeldungsdatum:
2. November 2017

Beiträge: 3

Moin,

ich habe ein Dual-Boot mit Xubuntu 24.04 und Windows 10 und aus Verzweiflung ein 2. Xubuntu installiert, weil ich Probleme mit dem ersten hatte. Diese Probleme konnte ich mittlerweile lösen und möchte gerne die 2. Installation wieder löschen.

Hier: https://forum.ubuntuusers.de/topic/zweite-ubuntu-distribution-loeschen/ hatte ich 2 Empfehlungen gelesen, die für mich beide plausibel sind, aber trotz 12 Jahre Ubuntu-Erfahrung habe ich Schiß, dass ich mir mit der falschen Vorgehensweise mein System zerschieße, weil ich von GRUB so gut wie nichts weiß. Die erste lautet:

Also brauchst du nur die Partition / und /home von Ubuntu Mate löschen und im laufenden System von Xubuntu ein:

sudo update-grub

machen.

Die 2. :

Das läßt mich vermuten, daß Mate nach Xubuntu installiert wurde. Ist auch wurscht,

Xubuntu starten, sudo grub-install /dev/sda

Mate löschen

Meine Systeme sind im EFI-Modus installiert und falls benötigt hier die Ausgaben von sudo fdisk -l

sudo fdisk -l

Festplatte /dev/loop0: 4 KiB, 4096 Bytes, 8 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop1: 163,79 MiB, 171749376 Bytes, 335448 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop2: 163,8 MiB, 171761664 Bytes, 335472 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop3: 9,14 MiB, 9584640 Bytes, 18720 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop4: 13,24 MiB, 13881344 Bytes, 27112 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop5: 55,66 MiB, 58363904 Bytes, 113992 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop6: 55,66 MiB, 58363904 Bytes, 113992 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop7: 74,21 MiB, 77819904 Bytes, 151992 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/nvme1n1: 1,86 TiB, 2048408248320 Bytes, 4000797360 Sektoren
Festplattenmodell: INTEL SSDPEKNW020T8                     
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 4E07AA80-4875-494B-B6AC-FEFC6EB93C62

Gerät              Anfang       Ende   Sektoren  Größe Typ
/dev/nvme1n1p1       2048    1085439    1083392   529M Windows-Wied
/dev/nvme1n1p2    1085440    1290239     204800   100M EFI-System
/dev/nvme1n1p3    1290240    1323007      32768    16M Microsoft re
/dev/nvme1n1p4    1323008 2209793750 2208470743     1T Microsoft Ba
/dev/nvme1n1p5 2209794048 2211104767    1310720   640M Windows-Wied
/dev/nvme1n1p6 2211104768 2313506815  102402048  48,8G Linux-Dateis
/dev/nvme1n1p7 2313506816 4000796671 1687289856 804,6G Linux-Dateis


Festplatte /dev/nvme0n1: 7,28 TiB, 8001563222016 Bytes, 15628053168 Sektoren
Festplattenmodell: PNY CS3140 8TB SSD                      
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 4344789F-346D-4ED4-8BB1-8A1EB5FAF7C8

Gerät               Anfang        Ende    Sektoren Größe Typ
/dev/nvme0n1p1        2048 15579234303 15579232256  7,3T Linux-Date
/dev/nvme0n1p2 15579234304 15581435903     2201600    1G EFI-System
/dev/nvme0n1p3 15581435904 15628050431    46614528 22,2G Linux-Date


Festplatte /dev/sda: 7,28 TiB, 8001563222016 Bytes, 15628053168 Sektoren
Festplattenmodell: Samsung SSD 870 
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: F0E83BC8-5059-4D83-AD95-39B30B095E36

Gerät      Anfang        Ende    Sektoren Größe Typ
/dev/sda1    2048 15628052479 15628050432  7,3T Linux-Dateisystem


Festplatte /dev/loop8: 74,24 MiB, 77844480 Bytes, 152040 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop9: 66,17 MiB, 69386240 Bytes, 135520 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop10: 66,53 MiB, 69758976 Bytes, 136248 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop11: 67,76 MiB, 71049216 Bytes, 138768 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop12: 267,43 MiB, 280420352 Bytes, 547696 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop13: 268,88 MiB, 281939968 Bytes, 550664 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop14: 164,82 MiB, 172830720 Bytes, 337560 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop15: 504,15 MiB, 528642048 Bytes, 1032504 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop16: 505,09 MiB, 529625088 Bytes, 1034424 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop17: 91,69 MiB, 96141312 Bytes, 187776 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop18: 153,9 MiB, 161374208 Bytes, 315184 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop19: 153,91 MiB, 161382400 Bytes, 315200 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop20: 187,8 MiB, 196923392 Bytes, 384616 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop21: 185,77 MiB, 194789376 Bytes, 380448 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop22: 38,73 MiB, 40615936 Bytes, 79328 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop23: 38,83 MiB, 40714240 Bytes, 79520 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop24: 446,11 MiB, 467779584 Bytes, 913632 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes


Festplatte /dev/loop25: 446,16 MiB, 467828736 Bytes, 913728 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
markus@markus-ThinkPad-P71:~$ 

und

sudo parted -l

sudo parted -l
Modell: ATA Samsung SSD 870 (scsi)
Festplatte  /dev/sda:  8002GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Dateisystem  Name   Flags
 1      1049kB  8002GB  8002GB  ext4         /home


Modell: PNY CS3140 8TB SSD (nvme)
Festplatte  /dev/nvme0n1:  8002GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Dateisystem  Name    Flags
 1      1049kB  7977GB  7977GB  ext4         PNY8TB
 2      7977GB  7978GB  1127MB  fat32                boot, esp
 3      7978GB  8002GB  23,9GB  ext4


Modell: INTEL SSDPEKNW020T8 (nvme)
Festplatte  /dev/nvme1n1:  2048GB
Sektorgröße (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags: 

Nummer  Anfang  Ende    Größe   Dateisystem  Name                          Flags
 1      1049kB  556MB   555MB   ntfs         Basic data partition          versteckt, diag
 2      556MB   661MB   105MB   fat32        EFI system partition          boot, esp
 3      661MB   677MB   16,8MB               Microsoft reserved partition  msftres
 4      677MB   1131GB  1131GB  ntfs         Basic data partition          msftdata
 5      1131GB  1132GB  671MB   ntfs                                       versteckt, diag, no_automount
 6      1132GB  1185GB  52,4GB  ext4
 7      1185GB  2048GB  864GB   ext4

Wenn ich es richtig verstehe, muss ich diese Partition löschen: /dev/nvme0n1p3 15581435904 15628050431 46614528 22,2G Linux-Date

Und reicht dann das

sudo update-grub

oder muss es

sudo grub-install /dev/sda

sein?

Danke für Eure Hilfe Markus

Lidux

Anmeldungsdatum:
18. April 2007

Beiträge: 16663

Hallo Windowshasser2017,

Das darf nicht sein:

sudo grub-install /dev/sda

da du ein EFI System hast und der Bootloader in der EFI Partition liegt, d.h. welche von den zweien kannst nur du wissen.

Einfach die richtige Partition /en des nicht benötigten Xubuntu löschen / formatieren. Das funktionierende System starten und ein:

sudo update-grub

reicht wahrscheinlich.

Gruss Lidux

Windowshasser2017

(Themenstarter)

Anmeldungsdatum:
2. November 2017

Beiträge: 3

Danke für die Antwort Lidux!

Ich habe die Partition des anderen Ubuntus gelöscht und dann

sudo update-grub

ausgeführt.

Nach einem Reboot hing ich dann plötzlich in einer Eingabeaufforderung von grub fest. Mittels dieser Anleitung über die chroot-Methode habe ich dann wieder grub neu installiert:

https://wiki.ubuntuusers.de/GRUB_2/Reparatur/#Wann-welche-Methode

Dabei kam dann folgende Fehlermeldung:

efi variables cannot be set on this system

Und nach einiger Recherche konnte ich das Problem mit

mount -t efivarfs none /sys/firmware/efi/efivars

lösen nach dieser Anleitung:

https://nikvdp.com/post/cloning-a-linux-install/

Vielleicht wäre es das beste gewesen statt

sudo update-grub

dies zu verwenden

sudo grub-install

ohne Angabe einer Partition, aber ich habe keine Lust das nochmal auszuprobieren. 😉

Ich lasse das hier noch eine Weile offen, falls noch jemand Erkenntnisse teilen möchte und schließe es dann in ein paar Tagen.

Antworten |