Re: Partitioning strangeness with sun disk labels in lenny

2009-06-03 Thread Hermann Lauer
On Fri, May 29, 2009 at 12:32:02PM +0200, Hermann Lauer wrote:
> partitioning disk with sun labels seems to be broken in lenny,
> after a reboot the new partions are not visible. util-linux fdisk is
> also unhappy with the disk label, see attached output below.
> 
> Only the last output of "cat /proc/partions" is after reboot,
> the other three are after the addition of /dev/sda2 with cfdisk.

Even more strangeness: 
lenny GNU Fdisk 1.2.1 writes a partition which another etch machine
can see (util-fdisk):

   8   1128891620 sdh
   8   1137815622 sdh1
   8   1141068322 sdh2
   8   1158883945 sdh3

But when booting the lenny machine with that disk as sole disk
the partition goes away:

[  100.144792] sd 0:0:0:0: [sda] 17783240 512-byte hardware sectors (9105 MB)
[  100.228140] sd 0:0:0:0: [sda] Write Protect is off
[  100.286532] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, 
supports DPO and FUA
[  100.387682]  sda: sda1 sda3
[  100.429180] sd 0:0:0:0: [sda] Attached SCSI disk

And the etch machines util-fdisk indeed shows the same. As the boot above
did stuck in the initramfs who the hell changed the (probably
broken) partion table ?
silo ? or the kernel 2.6.28x ?

Thanks for any ideas,
  Hermann

-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: hermann.la...@iwr.uni-heidelberg.de


-- 
To UNSUBSCRIBE, email to debian-sparc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Partitioning strangeness with sun disk labels in lenny

2009-05-29 Thread Hermann Lauer
Hello,

partitioning disk with sun labels seems to be broken in lenny,
after a reboot the new partions are not visible. util-linux fdisk is
also unhappy with the disk label, see attached output below.

Only the last output of "cat /proc/partions" is after reboot,
the other three are after the addition of /dev/sda2 with cfdisk.


Which of the partioning tools should work ?

Thanks,
  Hermann

-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: hermann.la...@iwr.uni-heidelberg.deError: Can't have a partition outside the disk!

Disk /dev/sda: 9 GB, 9097159680 bytes
255 heads, 63 sectors/track, 1106 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System 
/dev/sda1   1 973   0   83  Linux

Disk /dev/sdb: 50 GB, 50017927680 bytes
255 heads, 63 sectors/track, 6081 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System 
/dev/sdb1   1 973   0   83  Linux
Detected sun disklabel with wrong version [0x].
Detected sun disklabel with wrong sanity [0x].
Detected sun disklabel with wrong num_partitions [0].
Warning: Wrong values need to be fixed up and will be corrected by w(rite)
Detected sun disklabel with wrong version [0x].
Detected sun disklabel with wrong sanity [0x].
Detected sun disklabel with wrong num_partitions [0].
Warning: Wrong values need to be fixed up and will be corrected by w(rite)
Detected sun disklabel with wrong version [0x].
Detected sun disklabel with wrong sanity [0x].
Detected sun disklabel with wrong num_partitions [0].
Warning: Wrong values need to be fixed up and will be corrected by w(rite)
Detected sun disklabel with wrong version [0x].
Detected sun disklabel with wrong sanity [0x].
Detected sun disklabel with wrong num_partitions [0].
Warning: Wrong values need to be fixed up and will be corrected by w(rite)
Detected sun disklabel with wrong version [0x].
Detected sun disklabel with wrong sanity [0x].
Detected sun disklabel with wrong num_partitions [0].
Warning: Wrong values need to be fixed up and will be corrected by w(rite)

Disk /dev/sda (Sun disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

   Device FlagStart   EndBlocks   Id  System
/dev/sda1 0   973   7815622+  83  Linux native
/dev/sda3 0  1106   88839455  Whole disk

Disk /dev/sda1 (Sun disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

Device FlagStart   EndBlocks   Id  System
/dev/sda1p1 0   973   7815622+  83  Linux native
/dev/sda1p3 0  1106   88839455  Whole disk

Disk /dev/md0 (Sun disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

   Device FlagStart   EndBlocks   Id  System
/dev/md0p1 0   973   7815622+  83  Linux native
/dev/md0p3 0  1106   88839455  Whole disk

Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

   Device FlagStart   EndBlocks   Id  System
/dev/sdb1 0   973   7815622+  83  Linux native
/dev/sdb3 0  1106   88839455  Whole disk

Disk /dev/sdb1 (Sun disk label): 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

Device FlagStart   EndBlocks   Id  System
/dev/sdb1p1 0   973   7815622+  83  Linux native
/dev/sdb1p3 0  1106   88839455  Whole disk
major minor  #blocks  name

   8 08891620 sda
   8 17815622 sda1
   8 21068322 sda2
   9 07815552 md0
   816   48846877 sdb
   8177815622 sdb1
major minor  #blocks  name

   8 08891620 sda
   8 17815622 sda1
   8 38883945 sda3
   816   48846877 sdb
   8177815622 sdb1
   8198883945 sdb3
   9 07815552 md0