Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PARTITIONNEMENT] migration de table freebsd -> linux
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
Pyros
n00b
n00b


Joined: 20 Feb 2003
Posts: 15
Location: Nantes, France

PostPosted: Sun Nov 27, 2005 9:48 am    Post subject: [PARTITIONNEMENT] migration de table freebsd -> linux Reply with quote

Bonjour,

j'avais une machine en dual boot
Code:

hda = gentoo
hde sur primaire MB UDMA66 qui était sous freebsd
hdf = data gentoo
hdg = data gentoo


Je tente de réutiliser le hde pour reformater tout le disque et le passer en ext3 dans le but d'y installer le systeme à terme.

au fdisk je n'arrive pas à ecrire ma partition sans aucun message d'erreur (pareil avec cfdisk)

Pour info :
Code:

# fdisk -l

Disk /dev/hda: 10.2 GB, 10239860736 bytes
16 heads, 63 sectors/track, 19841 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         204      102784+  83  Linux
/dev/hda2             205        1245      524664   82  Linux swap / Solaris
/dev/hda3            1246       19841     9372384   83  Linux

Disk /dev/hde: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hde doesn't contain a valid partition table

Disk /dev/hdg: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1               1       19929   160079661   83  Linux

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

   Device Boot      Start         End      Blocks   Id  System
/dev/hdh1               1       19457   156288321   83  Linux


J'ai fait un smartctl qui ne me signale aucun pb.
Le DMESG reste desespérement vide aussi en dehors des infos physique sur le disque au boot (normal...)

Comment faire pour réinitialiser cette ^$ù*$ç de table de partition ?

Code:

# fdisk /dev/hde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 30515.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
mamachine ~ # fdisk /dev/hde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
...

le DMESG affiche laconiquement
Code:

 hde: unknown partition table
 hde: unknown partition table


Quelq'un a une idée ??? tous les posts que j'ai trouvé sur ce sujet avait un moment ou à un autre un message d'erreur

Merci d'avance
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun Nov 27, 2005 9:54 am    Post subject: Reply with quote

Ton disque étant partionné au format BSD (et pas DOS comme utilisé par linux), fdisk ne le connait pas.
L'option "o" de fdisk (o créer une nouvelle table vide de partitions DOS) devrait t'aider grandement :

Code:
fdisk /dev/hde
o
n
etc..
w

_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
Pyros
n00b
n00b


Joined: 20 Feb 2003
Posts: 15
Location: Nantes, France

PostPosted: Sun Nov 27, 2005 10:14 am    Post subject: Reply with quote

Merci mais...
A priori sans effet...
de même que le cfdisk -z ...

Code:

Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 30515.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
mamachine ~ # fdisk /dev/hde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 30515.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

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