[Risolto] [Boot] Partizione danneggiata....

Riconoscimento, installazione e configurazione delle periferiche.
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Ho già modificato però....ora con cfdisk vedo questo:

Codice: Seleziona tutto

                          cfdisk (util-linux-ng 2.16)

                              Disk Drive: /dev/sda
                       Size: 320072933376 bytes, 320.0 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 38913

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
                                      Unusable                             1,05*
    sda1        Boot        Primary   NTFS             []              12884,91*
    sda2                    Primary   NTFS             []             150000,00*
                                      Unusable                             7,51*
    sda3                    Primary   Linux ext3                       19995,66*
                            Logical   Free Space                           0,01*
    sda5        NC          Logical   Linux ext3                      136663,03*
                            Logical   Free Space                           8,20*
    sda6                    Logical   Linux swap / Solaris               509,99*
                            Logical   Free Space                           0,02*


     [   Help   ]  [  Print   ]  [   Quit   ]  [  Units   ]  [  Write   ]


                               Print help screen
ma gparted vede ancora non allocato...

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo fdisk -lu

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xeea27c5d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    25167871    12582912    7  HPFS/NTFS
/dev/sda2        25167872   318136608   146484368+   7  HPFS/NTFS
/dev/sda3       318151260   357205267    19527004   83  Linux
/dev/sda4       357205275   624141311   133468018+   f  W95 Ext'd (LBA)
/dev/sda5       357205401   624125248   133459924   83  Linux
/dev/sda6       624141315   625137322      498004   82  Linux swap / Solaris

Disk /dev/sdb: 2004 MB, 2004877312 bytes
129 heads, 32 sectors/track, 948 cylinders, total 3915776 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          32     3915775     1957872    b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(956, 128, 32) logical=(948, 75, 32)

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo sfdisk -d
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=     2048, size= 25165824, Id= 7, bootable
/dev/sda2 : start= 25167872, size=292968737, Id= 7
/dev/sda3 : start=318151260, size= 39054008, Id=83
/dev/sda4 : start=357205275, size=266936037, Id= f
/dev/sda5 : start=357205401, size=266919848, Id=83
/dev/sda6 : start=624141315, size=   996008, Id=82
# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=       32, size=  3915744, Id= b, bootable
/dev/sdb2 : start=        0, size=        0, Id= 0
/dev/sdb3 : start=        0, size=        0, Id= 0
/dev/sdb4 : start=        0, size=        0, Id= 0
se tento di ripristinare ottengo:

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo sfdisk -I /dev/sda /home/sda_sectors_modified.save
Re-reading the partition table ...
BLKRRPART: Inappropriate ioctl for device
ma sinceramente a me basterebbe riuscire a formattare tutto tranne le prime due partizioni....
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Comunque al posto dei due parametri ho messo l'inizio della partizione /sda4 e la dimensione in modo che arrivasse fino all'inizio della swap....l'unica cosa che non mi spiego da profano è il fatto che avessi /sda4 e /sda5 "sovrapposte"....
einstein1969
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 931
Iscrizione: mercoledì 7 dicembre 2005, 11:52

Re: [Boot] Partizione danneggiata....

Messaggio da einstein1969 »

Non credo che i calcoli siano giusti.
L'estesa finisce prima della swap...
ubuntu@ubuntu:~$ sudo fdisk -lu

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xeea27c5d

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048    25167871    12582912    7  HPFS/NTFS
/dev/sda2        25167872  318136608  146484368+  7  HPFS/NTFS
/dev/sda3      318151260  357205267    19527004  83  Linux
/dev/sda4      357205275  624141311  133468018+  f  W95 Ext'd (LBA)
/dev/sda5      357205401  624125248  133459924  83  Linux
/dev/sda6      624141315  625137322      498004  82  Linux swap / Solaris

Disk /dev/sdb: 2004 MB, 2004877312 bytes
129 heads, 32 sectors/track, 948 cylinders, total 3915776 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xc3072e18

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          32    3915775    1957872    b  W95 FAT32
Partition 1 has different physical/logical endings:
    phys=(956, 128, 32) logical=(948, 75, 32)
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Deve finire subito prima?Mi daresti una mano a sitemare?Grazie :)
einstein1969
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 931
Iscrizione: mercoledì 7 dicembre 2005, 11:52

Re: [Boot] Partizione danneggiata....

Messaggio da einstein1969 »

si, facciamo insieme i calcoli
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Ok cosa devo fare?
einstein1969
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 931
Iscrizione: mercoledì 7 dicembre 2005, 11:52

Re: [Boot] Partizione danneggiata....

Messaggio da einstein1969 »

Il totale dei settori del disco e':

255*63*38913=625137345

La dimensione dell'estesa dovrebbe quindi essere:

625137345 - 357205275 = 267932070 (a meno di un settore)

prova a dare questo comando se ti tornano i calcoli anche a te:

echo "357205275,267932070,f" | sudo sfdisk -f -uS /dev/sda -N4 -O sda_sectors_modified_2.save

poi posta i soliti

Codice: Seleziona tutto

sudo fdisk -lu
sudo sfdisk -d
sudo parted /dev/sda print
e anche il palimpsest diskmanager
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Gparted vede tutto ora!Non avevo capito che l'estesa dovesse finire al termine della swap :-[

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo fdisk -lu

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xeea27c5d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    25167871    12582912    7  HPFS/NTFS
/dev/sda2        25167872   318136608   146484368+   7  HPFS/NTFS
/dev/sda3       318151260   357205267    19527004   83  Linux
/dev/sda4       357205275   625137344   133966035    f  W95 Ext'd (LBA)
/dev/sda5       357205401   624125248   133459924   83  Linux
/dev/sda6       624141315   625137322      498004   82  Linux swap / Solaris

Disk /dev/sdb: 2004 MB, 2004877312 bytes
129 heads, 32 sectors/track, 948 cylinders, total 3915776 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          32     3915775     1957872    b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(956, 128, 32) logical=(948, 75, 32)

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo sfdisk -d
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=     2048, size= 25165824, Id= 7, bootable
/dev/sda2 : start= 25167872, size=292968737, Id= 7
/dev/sda3 : start=318151260, size= 39054008, Id=83
/dev/sda4 : start=357205275, size=267932070, Id= f
/dev/sda5 : start=357205401, size=266919848, Id=83
/dev/sda6 : start=624141315, size=   996008, Id=82
# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=       32, size=  3915744, Id= b, bootable
/dev/sdb2 : start=        0, size=        0, Id= 0
/dev/sdb3 : start=        0, size=        0, Id= 0
/dev/sdb4 : start=        0, size=        0, Id= 0

Codice: Seleziona tutto

ubuntu@ubuntu:~$ sudo parted /dev/sda print
Model: ATA ST9320320AS (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  12,9GB  12,9GB  primary   ntfs            boot
 2      12,9GB  163GB   150GB   primary   ntfs
 3      163GB   183GB   20,0GB  primary   ext3
 4      183GB   320GB   137GB   extended                  lba
 5      183GB   320GB   137GB   logical   ext3
 6      320GB   320GB   510MB   logical   linux-swap(v1)

I tuoi calcoli per quello che ne capisco sono corretti ma perchè fdisk vede 625142448 settori anzichè 255*63*38913=625137345?
Allegati
Screenshot.png
einstein1969
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 931
Iscrizione: mercoledì 7 dicembre 2005, 11:52

Re: [Boot] Partizione danneggiata....

Messaggio da einstein1969 »

credo che fdisk sia affetto da bugs...
e' meglio usare sfdisk (ma e' pericoloso e difficile da usare)

Sono contento che anche diskmanager abbia risolto il problema dei miliardi di GB liberi :D con questa operazione...
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Grazie mille, senti ma mi sai anche dire quale può essere la causa di un errore di questo tipo?La cosa è sorta dopo che il pc è stato in assitenza...
einstein1969
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 931
Iscrizione: mercoledì 7 dicembre 2005, 11:52

Re: [Boot] Partizione danneggiata....

Messaggio da einstein1969 »

Potrebbe essere un tools che non funziona bene... Sono cose rare ma possono capitare. Meglio fare backup prima di ogni operazione.
andrea0206
Prode Principiante
Messaggi: 224
Iscrizione: giovedì 24 settembre 2009, 11:16

Re: [Boot] Partizione danneggiata....

Messaggio da andrea0206 »

Ok, Grazie per l'aiuto!!buona domenica :)
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 5 ospiti