Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[table de partitions]corrompue suite a install d'XP(résolut)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
math_roc
n00b
n00b


Joined: 07 Jan 2006
Posts: 65

PostPosted: Sun Jun 22, 2008 11:12 pm    Post subject: [table de partitions]corrompue suite a install d'XP(résolut) Reply with quote

Bonsoir,

suite a une installation de XP en dual boot (et aprés avoir réinstallé grub..) j'ai eut un petit soucis.
je peux bien démarrer et utiliser ma gentoo, mais: la partition swap ne fonctionne plus:

Code:
mathieu@localhost ~ $ sudo swapon /dev/sda5
swapon: /dev/sda5: Invalid argument


du coup je regarde la table de partition:

Code:
mathieu@localhost ~ $ sudo fdisk /dev/sda

The number of cylinders for this disk is set to 19457.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
omitting empty partition (5)

Command (m for help): p

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3405    27350631    7  HPFS/NTFS
/dev/sda2            3406       19457   128937659+   f  W95 Ext'd (LBA)
/dev/sda3            3667       16830   105739830   83  Linux
/dev/sda5            3406        3666     2096451   82  Linux swap / Solaris
/dev/sda6           16831       16846      128488+  83  Linux
/dev/sda7           16847       19457    20972826   83  Linux

Command (m for help):


pour moi, vu comme ça y'avais pas vraiment de problème, ce que je devrai avoir (en maj, c'est les labels):
|-sda1: ntfs (xp)
|/-
||- sda3:DATA ext3 (videos/music/pictures)
||- sda5:SWAP swap
||- sda6:BOOT ext2 (/boot)
||- sda7:GENTOO ext3 (/)
|\-

lorsque je lance gparted, il me dit:
[code]mathieu@localhost ~ $ sudo gparted
======================
libparted : 1.8.8
======================
Can't have overlapping partitions.[code]

ce que je comprend (ou crois avoir compris):
- la partition sda2 contenant les 4 autres partitions a été transformé en une partition normale qui recouvre ces 4 partitions.
un truc dont je suis pas sur, une partition pas primaire (DATA) ne devrai pas avoir un numéro > a 4?

voila ou j'en suis, j'ose pas faire un mkswap de peur de casser qqch, et puis j'aimerai bien régler le pb. ça serai possible de modifier a la main sda2 pr la retransformer en partition logique?

merci d'avance, mathieu.


Last edited by math_roc on Mon Jun 23, 2008 4:46 pm; edited 2 times in total
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Sun Jun 22, 2008 11:55 pm    Post subject: Reply with quote

Bonsoir,

Tout d'abord, pourrais-tu mettre ton titre en conformité avec nos règles ?

math_roc wrote:
un truc dont je suis pas sur, une partition pas primaire (DATA) ne devrai pas avoir un numéro > a 4?

Si, justement, c'est bien ça le problème : apparemment, tu as une partition primaire (sda3) qui traine dans l'espace de la partition étendue (sda2)

Si c'est une question de table de partition corrompue, testdisk devrait pouvoir t'aider.
Back to top
View user's profile Send private message
math_roc
n00b
n00b


Joined: 07 Jan 2006
Posts: 65

PostPosted: Mon Jun 23, 2008 4:45 pm    Post subject: Reply with quote

merci, problème résolut.

la méthode a été un peu crade, mais... :
avec testdisk, créer un fichier backup.log, je l'édite pour passer sda3 en sda8 en partition logique. je load la nouvelle config, apply changes
et voila :)

note pour la prochaine fois: penser a réinstaller grub...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum