[RISOLTO] Tabella partizione cancellata

Usate questo forum per richieste di aiuto e consigli sull'hardware montato nelle vostre macchine con GNU/Linux Slackware.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata e la versione del Kernel. Questi dati aiutano le persone che possono rispondere.
2) Citare il tipo di hardware coinvolto in modo dettagliato.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT. Non usare termini gergali come procio, mobo e simili per identificare i componenti hardware.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

Ora creati una partizione GPT come abbiamo visto sopra.

E ridai quel e2fsck dopo aver dato sync

Va bene anche da sysrescuecd.

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

rik70 ha scritto:Ora creati una partizione GPT come abbiamo visto sopra.

E ridai quel e2fsck dopo aver dato sync

Va bene anche da sysrescuecd.
Dopo che ho ricreato tutto...

root@sysresccd /root % e2fsck /dev/sda1
e2fsck 1.42.7 (21-Jan-2013)
The filesystem size (according to the superblock) is 732566272 blocks
The physical size of the device is 732566121 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

py67 ha scritto: root@sysresccd /root % e2fsck /dev/sda1
e2fsck 1.42.7 (21-Jan-2013)
The filesystem size (according to the superblock) is 732566272 blocks
The physical size of the device is 732566121 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?
Eh no, mo non deve più rompere le p@lle.

Riazzera la tabella della partizioni.

dai sync

ora prova a crearla con parted:

=========================

parted /dev/sdx

mklabel gpt

mkpart

name Linux

filesystem [ quello di default ]

start 1

end -1

....
===========
Correggi dove sbaglio che vado a memoria

Rifai sync e e2fsck

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

The filesystem size (according to the superblock) is 732566272 blocks
The physical size of the device is 732566121 blocks
Manca veramente poco:

lamenta ancora una -piccola stavolta - differenza, ma ci siamo quasi: non disperiamo.
Ultima modifica di rik70 il sab 19 ott 2013, 15:04, modificato 1 volta in totale.

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

Continua a dare partition table is likely to be corrupt

gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): x

Expert command (? for help): z
About to wipe out GPT on /dev/sda. Proceed? (Y/N): Y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): Y
root@sysresccd /root % sync
root@sysresccd /root % parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart
Partition name? []? Linux
File system type? [ext2]?
Start? 1
End? -1
(parted) q
Information: You may need to update /etc/fstab.

root@sysresccd /root % sync
root@sysresccd /root % e2fsck /dev/sda1
e2fsck 1.42.7 (21-Jan-2013)
The filesystem size (according to the superblock) is 732566272 blocks
The physical size of the device is 732565760 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

Ancora un tentativo

Stessa procedura di prima:

azzeramento tabella partizioni.

Ora creiamo una partizione standard, non più gpt:

====
fdisk /dev/sdX

n

p - partizione primaria

numero: 1

start [default 2048] invio

end [invio]

w

sync

e2fsck

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

potrebbe questo comando essere utile?

resize2fs /dev/sda xxxx

letto in giro

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

rik70 ha scritto:Ancora un tentativo

Stessa procedura di prima:

azzeramento tabella partizioni.

Ora creiamo una partizione standard, non più gpt:

====
fdisk /dev/sdX

n

p - partizione primaria

numero: 1

start [default 2048] invio

end [invio]

w

sync

e2fsck
come prima

e2fsck /dev/sda1
e2fsck 1.42.7 (21-Jan-2013)
The filesystem size (according to the superblock) is 732566272 blocks
The physical size of the device is 536870655 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

fdisk -l /dev/sdX

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

rik70 ha scritto:fdisk -l /dev/sdX
root@sysresccd /root % fdisk -l /dev/sda

Disk /dev/sda: 3000.6 GB, 3000591900160 bytes, 5860531055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45055df8

Device Boot Start End Blocks Id System
/dev/sda1 2048 4294967294 2147482623+ 83 Linux

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

Allora:

Disk /dev/sda: 3000.6 GB, 3000591900160 bytes, 5860531055 sectors

I 3 tera li vede ma non sono coerenti con i blocchi del filesystem visti da e2fsck

Geometrie diverse??.

Allora, torniamo indietro:

fdisk /dev/sdX

d

[ qui dovrebbe automaticamente cancellare la partizione 1]

w

sync

E mi dai un altro bel fdisk -l /dev/sdX

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

rik70 ha scritto:Allora:

Disk /dev/sda: 3000.6 GB, 3000591900160 bytes, 5860531055 sectors

I 3 tera li vede ma non sono coerenti con i blocchi del filesystem visti da e2fsck

Geometrie diverse??.

Allora, torniamo indietro:

fdisk /dev/sdX

d

[ qui dovrebbe automaticamente cancellare la partizione 1]

w

sync

E mi dai un altro bel fdisk -l /dev/sdX
root@sysresccd /root % fdisk -l /dev/sda

Disk /dev/sda: 3000.6 GB, 3000591900160 bytes, 5860531055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x45055df8

Device Boot Start End Blocks Id System
root@sysresccd /root %

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

Ora:

sync
===================
gdisk /dev/sdX

o

w

sync

gdisk -l /dev/sdX

Avatar utente
py67
Linux 2.x
Linux 2.x
Messaggi: 489
Iscritto il: mar 4 ott 2005, 18:34

Re: Tabella partizione cancellata

Messaggio da py67 »

root@sysresccd /root % gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860531055 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 74BD1B40-53D8-4E07-984B-5AE75A8CCAB9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860531021
Partitions will be aligned on 2048-sector boundaries
Total free space is 5860530988 sectors (2.7 TiB)

Number Start (sector) End (sector) Size Code Name
root@sysresccd /root %

rik70
Iper Master
Iper Master
Messaggi: 2492
Iscritto il: gio 10 mar 2011, 9:21
Slackware: 15.0
Kernel: 5.15.x-generic
Desktop: Sway
Distribuzione: Arch Linux

Re: Tabella partizione cancellata

Messaggio da rik70 »

Bene, adesso:

altro sync e riazzera la tabella delle partizioni con gdisk

e mi ridai lo stesso comando di prima dopo il sync.

Ho paura che si tratti di un problema di geometria del disco modificata durante il partizionamento iniziale e che rende il tutto incoerente col filesystem.

Ma non ne sono sicuro, quindi aspettiamo ZeroUno che di matematica ne sa più di me.

Rispondi