[Risolto] formattazione accidentale partizione di sistema

Domande e richieste di un principiante alle prime armi con Ubuntu e il mondo GNU/Linux in generale. Per domande specifiche, utilizzare le altre sezioni.
Regole della sezione
In questa sezione possono inserire nuove discussioni solo coloro che fanno parte del livello "Prode Principiante" e che non hanno superato i 100 messaggi, tutti gli altri possono comunque rispondere regolarmente. Se si fa parte di questo livello e si è registrati al forum prima del 24 aprile 2012, data del passaggio al nuovo forum, consultare questa discussione.

Immagine Come usare UbuntuPrimi passi su Ubuntu Immagine Amministrazione del sistemaComandi di baseInstallare programmiLog di sistemaRiga di comandoSudo
tretigri
Prode Principiante
Messaggi: 13
Iscrizione: giovedì 14 novembre 2013, 17:28
Desktop: ubuntu
Distribuzione: ubuntu 20.04..3 Lts

[Risolto] formattazione accidentale partizione di sistema

Messaggio da tretigri »

Purtoppo per errore ho formattato la partizione che conteneva i file di sistema.

Codice: Seleziona tutto

/dev/nvme0n1p2
Me ne sono accorto al riavvio bloccato su grub. Ho installato testdisk con ubuntu da usb e sono riuscito a ripristinare la partizione, ma al riavvio si blocca in initramfs dove molti comandi sono off.
sono in grande difficolta e non riesco a risolvere il problema, ho provato a verificare il filesystem, ho dei dubbi sulle tabelle di partizione e ora brancolo nel buio :cry:

il messaggio di errore Immagine

ho vericato

Codice: Seleziona tutto

sudo fsck /dev/nvme0n1p2 -y
fsck from util-linux 2.34
e2fsck 1.45.5 (07-Jan-2020)
/dev/nvme0n1p2: clean, 324554/15532032 files, 6870515/62127104 blocks
posto qualcosa che spero possa essere utile per comprendere meglio, postato entrando nella live usb

Codice: Seleziona tutto

sudo fdisk -l
Disk /dev/loop0: 2.1 GiB, 2160009216 bytes, 4218768 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 55.45 MiB, 58130432 bytes, 113536 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 219 MiB, 229638144 bytes, 448512 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 65.1 MiB, 68259840 bytes, 133320 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 50.98 MiB, 53432320 bytes, 104360 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 32.3 MiB, 33865728 bytes, 66144 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk /dev/nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors

Disk model: SAMSUNG MZVPW256HEGL-00000

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: gpt

Disk identifier: 314B60A6-DCE5-43A6-BFA7-9AC708CB2CF8


Device Start End Sectors Size Type

/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System

/dev/nvme0n1p2 1052672 498069503 497016832 237G Linux filesystem



Disk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors

Disk model: ST500LM021-1KJ15

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disklabel type: dos

Disk identifier: 0xe65e82c2


Device Boot Start End Sectors Size Id Type

/dev/sda1 2048 488388607 488386560 232.9G 83 Linux

/dev/sda2 488388608 976773119 488384512 232.9G 83 Linux



Disk /dev/sdb: 14.33 GiB, 15376000000 bytes, 30031250 sectors

Disk model: Ultra USB 3.0

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x2cf4ba3a


Device Boot Start End Sectors Size Id Type

/dev/sdb1 * 0 5999871 5999872 2.9G 0 Empty

/dev/sdb2 5271500 5279499 8000 3.9M ef EFI (FAT-12/16/32)

/dev/sdb3 6000640 30031249 24030610 11.5G 83 Linux


Codice: Seleziona tutto




sudo lshw -C disk

*-namespace

description: NVMe namespace

physical id: 1

logical name: /dev/nvme0n1

size: 238GiB (256GB)

capabilities: gpt-1.00 partitioned partitioned:gpt

configuration: guid=314b60a6-dce5-43a6-bfa7-9ac708cb2cf8 logicalsectorsize=512 sectorsize=512

*-disk

description: ATA Disk

product: ST500LM021-1KJ15

physical id: 0.0.0

bus info: scsi@2:0.0.0

logical name: /dev/sda

version: SDM1

serial: W62JNC58

size: 465GiB (500GB)

capabilities: partitioned partitioned:dos

configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=e65e82c2

*-disk

description: SCSI Disk

product: Ultra USB 3.0

vendor: SanDisk

physical id: 0.0.0

bus info: scsi@3:0.0.0

logical name: /dev/sdb

version: 1.00

serial: 4C530001150417121264

size: 14GiB (15GB)

capabilities: removable

configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512

*-medium

physical id: 0

logical name: /dev/sdb

size: 14GiB (15GB)

capabilities: partitioned partitioned:dos

configuration: signature=2cf4ba3a


Codice: Seleziona tutto

sudo parted --list

Model: ATA ST500LM021-1KJ15 (scsi)

Disk /dev/sda: 500GB

Sector size (logical/physical): 512B/4096B

Partition Table: msdos

Disk Flags:


Number Start End Size Type File system Flags

1 1049kB 250GB 250GB primary ext4

2 250GB 500GB 250GB primary ext4



Warning: The driver descriptor says the physical block size is 2048 bytes, but

Linux says it is 512 bytes.

Ignore/Cancel? i

Model: SanDisk Ultra USB 3.0 (scsi)

Disk /dev/sdb: 61.5GB

Sector size (logical/physical): 2048B/512B

Partition Table: mac

Disk Flags:


Number Start End Size File system Name Flags

1 2048B 6143B 4096B Apple

2 2699MB 2703MB 4096kB EFI



Model: SAMSUNG MZVPW256HEGL-00000 (nvme)

Disk /dev/nvme0n1: 256GB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags:


Number Start End Size File system Name Flags

1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp

 2      539MB   255GB  254GB  ext4
ho provato a seguire anche https://askubuntu.com/questions/567730/ ... esnt-exist ma non credo faccia al caso mio, non ho nulla di criptato...

Grazie a tutti per il supporto
Ultima modifica di tretigri il martedì 16 novembre 2021, 22:37, modificato 2 volte in totale.
Roberto Pontecorvi
Rampante Reduce
Rampante Reduce
Messaggi: 6618
Iscrizione: mercoledì 20 maggio 2009, 22:48
Distribuzione: 18.4 mate - 22.4 mate
Sesso: Maschile
Località: Versilia

Re: formattazione accidentale partizione di sistema

Messaggio da Roberto Pontecorvi »

Quando ti compare la scritta -> -initramfs - prova a dare il comando:

Codice: Seleziona tutto

sudo fsck -fv /dev/sdxx
al posto delle xx ci devi inserire la partizione dove c'è il SO e riavviare il pc.
Avatar utente
wilecoyote
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 15387
Iscrizione: giovedì 20 agosto 2009, 16:21
Desktop: Kubuntu et alii
Distribuzione: 9.04 32bit 14/18/20/22.04 LTS 64bit
Sesso: Maschile
Località: Ceranesi - Ge

Re: formattazione accidentale partizione di sistema

Messaggio da wilecoyote »

) Salve, ahi ahi, brutto problema t'è capitato, però se Testdisk ha recuperato la partizione può bastarti usare Boot-Repair per recuperare l'avvio.

Leggi in proposito questa wiki AmministrazioneSistema/BootRepair#Riparazione_dopo_l.27utilizzo_di_TestDisk.

:: Ciao
ACER Extensa 5230E 2,2 Ghz cpu Celeron 900 hdd 160 GB Ram 1 GB scheda video Intel GM500
ACER Extensa 5635Z 2,2 Ghz cpu Celeron T3100 hdd 320 GB Ram 4 GB scheda video Intel Mobile 4
Quando una Finestra chiusa incontra un Pinguino la Finestra chiusa è una Finestra aperta.
tretigri
Prode Principiante
Messaggi: 13
Iscrizione: giovedì 14 novembre 2013, 17:28
Desktop: ubuntu
Distribuzione: ubuntu 20.04..3 Lts

Re: formattazione accidentale partizione di sistema

Messaggio da tretigri »

Roberto Pontecorvi ha scritto:
martedì 16 novembre 2021, 8:17
Quando ti compare la scritta -> -initramfs - prova a dare il comando:

Codice: Seleziona tutto

sudo fsck -fv /dev/sdxx
al posto delle xx ci devi inserire la partizione dove c'è il SO e riavviare il pc.


Grazie mille, ma non è cambiato molto
20211116_214402.jpg
tretigri
Prode Principiante
Messaggi: 13
Iscrizione: giovedì 14 novembre 2013, 17:28
Desktop: ubuntu
Distribuzione: ubuntu 20.04..3 Lts

Re: formattazione accidentale partizione di sistema

Messaggio da tretigri »

wilecoyote ha scritto:
martedì 16 novembre 2021, 11:30
) Salve, ahi ahi, brutto problema t'è capitato, però se Testdisk ha recuperato la partizione può bastarti usare Boot-Repair per recuperare l'avvio.

Leggi in proposito questa wiki AmministrazioneSistema/BootRepair#Riparazione_dopo_l.27utilizzo_di_TestDisk.

:: Ciao


GRAZIE!! Tutto risolto!


ho installato Boot-Repair da usb e ha risolto in un baleno. Al reboot si è riavviato.

Ha segnalato però un errore, dovrei fare altro?

Codice: Seleziona tutto

An error occurred during the repair.

Please write on a paper the following URL:
https://paste.ubuntu.com/p/BnhHg3xK4P/


In case you still experience boot problem, indicate this URL to:
boot.repair@gmail.com

You can now reboot your computer.

Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.3 LTS entry (nvme0n1p1/EFI/ubuntu/shimx64.efi file) !

e qui una parte del report della riparzione

Codice: Seleziona tutto

boot-repair-4ppa130                                              [20211116_2054]

============================= Boot Repair Summary ==============================



Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
nvme0n1p2,
using the following options:        nvme0n1p1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file    

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.3 LTS entry (nvme0n1p1/efi/****/shim****.efi (**** will be updated in the final message) file) !

User settings: _________________________________________________________________

Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
/usr/share/boot-sav/bs-cmd_terminal.sh: line 177: warning: command substitution: ignored null byte in input
The settings chosen by the user will reinstall the grub-efi-amd64-signed of
nvme0n1p2,
using the following options:        nvme0n1p1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s  use-standard-efi-file


/boot/efi added in nvme0n1p2/fstab
Mount nvme0n1p1 on /mnt/boot-sav/nvme0n1p2/boot/efi

=============== Reinstall the grub-efi-amd64-signed of nvme0n1p2 ===============

grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.13

efibootmgr -v from chroot before grub install
BootCurrent: 0006
Timeout: 2 seconds
BootOrder: 0005,0002,0001,0006,0007,0000,0003
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...,................
Boot0001* UEFI: IP4 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0002* UEFI: IP6 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0003* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0005* ubuntu	HD(1,GPT,6050048b-615d-4255-a9fc-abd575406a75,0x800,0x100000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0006* UEFI: SanDisk	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/CDROM(1,0x506fcc,0x7d00)..BO
Boot0007* UEFI: SanDisk, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)..BO

uname -r
5.11.0-27-generic

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/nvme0n1p1
mv /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/ubuntu/shimx64.efi /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/bootx64.efi
cp /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/ubuntu/grubx64.efi /mnt/boot-sav/nvme0n1p2/boot/efi/EFI/Boot/

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.

efibootmgr -v from chroot after grub install
BootCurrent: 0006
Timeout: 2 seconds
BootOrder: 0005,0002,0001,0006,0007,0000,0003
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...,................
Boot0001* UEFI: IP4 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0002* UEFI: IP6 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0003* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0005* ubuntu	HD(1,GPT,6050048b-615d-4255-a9fc-abd575406a75,0x800,0x100000)/File(EFIubuntushimx64.efi)
Boot0006* UEFI: SanDisk	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/CDROM(1,0x506fcc,0x7d00)..BO
Boot0007* UEFI: SanDisk, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)..BO

chroot /mnt/boot-sav/nvme0n1p2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-90-generic
Found initrd image: /boot/initrd.img-5.4.0-90-generic
Found linux image: /boot/vmlinuz-5.4.0-89-generic
Found initrd image: /boot/initrd.img-5.4.0-89-generic
File descriptor 63 (pipe:[94969]) leaked on lvs invocation. Parent PID 38370: /bin/sh
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings

Unhide GRUB boot menu in nvme0n1p2/boot/grub/grub.cfg

An error occurred during the repair.

You can now reboot your computer.

Please do not forget to make your UEFI firmware boot on the Ubuntu 20.04.3 LTS entry (nvme0n1p1/EFI/ubuntu/shimx64.efi file) !

============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/nvme0n1.
 => libparted MBR boot code is installed in the MBR of /dev/sda.

nvme0n1p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi 
                       /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg

nvme0n1p2: _____________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.3 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.


================================ 1 OS detected =================================

OS#1:   Ubuntu 20.04.3 LTS on nvme0n1p2

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
Live-session OS is Ubuntu 64-bit (Ubuntu 20.04.3 LTS, focal, x86_64)


===================================== UEFI =====================================

BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled.

efibootmgr -v
BootCurrent: 0006
Timeout: 2 seconds
BootOrder: 0005,0002,0001,0006,0007,0000,0003
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...,................
Boot0001* UEFI: IP4 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0002* UEFI: IP6 Realtek PCIe GBE Family Controller	PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x1)/MAC(80fa5b4a0c29,0)/IPv6([::]:<->[::]:,0,0)..BO
Boot0003* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0005* ubuntu	HD(1,GPT,6050048b-615d-4255-a9fc-abd575406a75,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0006* UEFI: SanDisk	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/CDROM(1,0x506fcc,0x7d00)..BO
Boot0007* UEFI: SanDisk, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(10,0)/HD(1,MBR,0x2cf4ba3a,0x506fcc,0x1f40)..BO
This session has been detected as 'live' because df -Th / contains overlay

85fa9d77b929ec4231aba29476574eb6   nvme0n1p1/BOOT/fbx64.efi
469e608783843a701d172242f016c79c   nvme0n1p1/BOOT/mmx64.efi
fa1bf1a7f90a852abe0bdbd089b7f1b0   nvme0n1p1/ubuntu/grubx64.efi
469e608783843a701d172242f016c79c   nvme0n1p1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   nvme0n1p1/ubuntu/shimx64.efi
728124f6ec8e22fbdbe7034812c81b95   nvme0n1p1/BOOT/BOOTX64.efi


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

nvme0n1	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes
sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, no-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

nvme0n1p1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
nvme0n1p2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

nvme0n1p1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
nvme0n1p2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

nvme0n1p1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	nvme0n1
nvme0n1p2	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	nvme0n1
sda1	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda2	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk nvme0n1: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 314B60A6-DCE5-43A6-BFA7-9AC708CB2CF8
            Start       End   Sectors  Size Type
nvme0n1p1    2048   1050623   1048576  512M EFI System
nvme0n1p2 1052672 498069503 497016832  237G Linux filesystem
Disk sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0xe65e82c2
      Boot     Start       End   Sectors   Size Id Type
sda1            2048 488388607 488386560 232.9G 83 Linux
sda2       488388608 976773119 488384512 232.9G 83 Linux
Disk sdb: 14.33 GiB, 15376000000 bytes, 30031250 sectors
Disk identifier: 0x2cf4ba3a
      Boot   Start      End  Sectors  Size Id Type
sdb1  *          0  5999871  5999872  2.9G  0 Empty
sdb2       5271500  5279499     8000  3.9M ef EFI (FAT-12/16/32)
sdb3       6000640 30031249 24030610 11.5G 83 Linux

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:4096:msdos:ATA ST500LM021-1KJ15:;
1:1049kB:250GB:250GB:ext4::;
2:250GB:500GB:250GB:ext4::;
sdb:15.4GB:scsi:512:512:unknown:SanDisk Ultra USB 3.0:;
nvme0n1:256GB:nvme:512:512:gpt:SAMSUNG MZVPW256HEGL-00000:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:539MB:255GB:254GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                     
├─sda1      ext4     af3c06f9-5b44-45af-84cd-54a6e8c2e8de e65e82c2-01                          DATI1                    
└─sda2      ext4     7c297f1d-71d5-4052-8618-292e2d4514e6 e65e82c2-02                          DATI 2                   
sdb         iso9660  2021-08-19-11-03-38-00                                                    Ubuntu 20.04.3 LTS amd64 
├─sdb1      iso9660  2021-08-19-11-03-38-00               2cf4ba3a-01                          Ubuntu 20.04.3 LTS amd64 
├─sdb2      vfat     54C5-9C6C                            2cf4ba3a-02                                                   
└─sdb3      ext4     0e249874-8451-44b5-b67b-92473390c45b 2cf4ba3a-03                          writable                 
nvme0n1                                                                                                                 
├─nvme0n1p1 vfat     5C70-D7E3                            6050048b-615d-4255-a9fc-abd575406a75                          EFI System Partition
└─nvme0n1p2 ext4     252a0a7c-0f26-4c20-ac21-21fb9f8af592 7c0a2a25-260f-204c-ac21-21fb9f8af592                          

df (filtered): _________________________________________________________________

                                                          Avail Use% Mounted on
disk/by-label/writable[/install-logs-2021-11-16.1/crash]  10.6G   0% /var/crash
disk/by-label/writable[/install-logs-2021-11-16.1/log]    10.6G   0% /var/log
nvme0n1p1                                                503.2M   2% /mnt/boot-sav/nvme0n1p1
nvme0n1p2                                                198.9G   9% /mnt/boot-sav/nvme0n1p2
sda1                                                     216.5G   0% /mnt/boot-sav/sda1
sda2                                                     104.9G  49% /mnt/boot-sav/sda2
sdb1                                                          0 100% /cdrom

Mount options: __________________________________________________________________

disk/by-label/writable[/install-logs-2021-11-16.1/crash] rw,relatime
disk/by-label/writable[/install-logs-2021-11-16.1/log]   rw,relatime
nvme0n1p1                                                rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
nvme0n1p2                                                rw,relatime
sda1                                                     rw,relatime
sda2                                                     rw,relatime
sdb1                                                     ro,noatime,nojoliet,check=s,map=n,blocksize=2048

=================== nvme0n1p1/efi/ubuntu/grub.cfg (filtered) ===================

search.fs_uuid 252a0a7c-0f26-4c20-ac21-21fb9f8af592 root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

=================== nvme0n1p2/boot/grub/grub.cfg (filtered) ====================

Ubuntu   252a0a7c-0f26-4c20-ac21-21fb9f8af592
Ubuntu, with Linux 5.4.0-90-generic   252a0a7c-0f26-4c20-ac21-21fb9f8af592
Ubuntu, with Linux 5.4.0-89-generic   252a0a7c-0f26-4c20-ac21-21fb9f8af592
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

======================== nvme0n1p2/etc/fstab (filtered) ========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/ubuntu--vg-root /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme0n1p1 during installation
/dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0
UUID=7c297f1d-71d5-4052-8618-292e2d4514e6 /home ext4 rw 0 2
UUID=5C70-D7E3  /boot/efi       vfat    defaults      0       1

==================== nvme0n1p2/etc/default/grub (filtered) =====================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
Avatar utente
wilecoyote
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 15387
Iscrizione: giovedì 20 agosto 2009, 16:21
Desktop: Kubuntu et alii
Distribuzione: 9.04 32bit 14/18/20/22.04 LTS 64bit
Sesso: Maschile
Località: Ceranesi - Ge

Re: [Risolto] formattazione accidentale partizione di sistema

Messaggio da wilecoyote »

) Salve, Boot-Repair ha una smodata passione nel segnalare problemi, di cose da non dimenticare, ecc.

Dando una lettura però sembra tutto a posto, tant'è che ti s'avvia liscio, l'unica cosa che ti consiglio è fare un aggiornamento, giusto per verificare che sia tutto a posto.

:: Ciao
ACER Extensa 5230E 2,2 Ghz cpu Celeron 900 hdd 160 GB Ram 1 GB scheda video Intel GM500
ACER Extensa 5635Z 2,2 Ghz cpu Celeron T3100 hdd 320 GB Ram 4 GB scheda video Intel Mobile 4
Quando una Finestra chiusa incontra un Pinguino la Finestra chiusa è una Finestra aperta.
Scrivi risposta

Ritorna a “Dilemmi del principiante”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 10 ospiti