Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Paul B. Mahol
On 7/16/09, Patrick Lamaiziere patf...@davenulle.org wrote:
 Hello,

 With 8.0, FreeBSD see my disk with several parts instead slices.
 That works fine but the kernel is not able to core dump to my swap
 (ad4p3a) and I can't break into the debuger (laptop with an usb
 keyboard).
For first one it looks like table is broken.
The last one is unrelated to gpart


 So I would like to revert to slices like with FreeBSD 7.2?

 Thanks, regards.

 baby-jane:~$ gpart show
 =   34  312581741  ad4  GPT  (149G)
  34  6   - free -  (3.0K)
  40 4096001  efi  (200M)
  409640  2262302722  !48465300--11aa-aa11-00306543ecac
 (108G)
   226639912 262144   - free -  (128M)
   226902056   856797123  !ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
 (41G)
   312581768  7   - free -  (3.5K)

 =   0  85679712  ad4p3  BSD  (41G)
  0   4194304  2  freebsd-swap  (2.0G)
4194304   1572864  1  freebsd-ufs  (768M)
5767168   2097152  4  freebsd-ufs  (1.0G)
7864320   2097152  5  freebsd-ufs  (1.0G)
9961472  75718240  6  freebsd-ufs  (36G)

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Patrick Lamaiziere
Le Fri, 17 Jul 2009 09:30:25 +0200,
Paul B. Mahol one...@gmail.com a écrit :

  With 8.0, FreeBSD see my disk with several parts instead slices.
  That works fine but the kernel is not able to core dump to my swap
  (ad4p3a) and I can't break into the debuger (laptop with an usb
  keyboard).
 For first one it looks like table is broken.

It's a Macbook Pro partitionned with the Apple bootcamp utility. 
I'm not sure if I shall fill a PR for this, it looks to be a hack just
for running MS-Windows on a Mac. But that worked fine with 7.X

 The last one is unrelated to gpart

I know, I meant I really need to be able to dump a panic.

Any hint is welcome.

Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Ivan Voras

Patrick Lamaiziere wrote:

Le Fri, 17 Jul 2009 09:30:25 +0200,
Paul B. Mahol one...@gmail.com a écrit :


With 8.0, FreeBSD see my disk with several parts instead slices.
That works fine but the kernel is not able to core dump to my swap
(ad4p3a) and I can't break into the debuger (laptop with an usb
keyboard).

For first one it looks like table is broken.


It's a Macbook Pro partitionned with the Apple bootcamp utility. 
I'm not sure if I shall fill a PR for this, it looks to be a hack just

for running MS-Windows on a Mac. But that worked fine with 7.X


The last one is unrelated to gpart


I know, I meant I really need to be able to dump a panic.

Any hint is welcome.


When the kernel attempts a dump on the device, do you perhaps see a 
message like partition type unsupported?. One thing that's changed in 
GPART is that it will not allow dumps on partitions marked like they 
contain a file system.


Specifically, if you're using GPT, the dump partition's type needs to be 
 either gpt_uuid_freebsd_swap or gpt_uuid_linux_swap. For FreeBSD swap, 
it's 516e7cb5‐6ecf‐11d6‐8ff8‐00022d09712b.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 8.0 and GPT_PART and core-dump

2009-07-17 Thread Patrick Lamaiziere
Le Fri, 17 Jul 2009 12:27:32 +0200,
Ivan Voras ivo...@freebsd.org a écrit :

 When the kernel attempts a dump on the device, do you perhaps see a 
 message like partition type unsupported?. 

Yes at boot-time :
GEOM_PART: Partition 'ad4p3' not suitable for kernel dumps (wrong type?)

One thing that's changed
 in GPART is that it will not allow dumps on partitions marked like
 they contain a file system.
 
 Specifically, if you're using GPT, the dump partition's type needs to
 be either gpt_uuid_freebsd_swap or gpt_uuid_linux_swap. For FreeBSD
 swap, it's 516e7cb5‐6ecf‐11d6‐8ff8‐00022d09712b.

I do not have a GPT partition for the swap. My swap is in ad4p3b
=   0  85679712  ad4p3  BSD  (41G)
 0   4194304  2  freebsd-swap  (2.0G)

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org