[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#238091: debian-installer: partman does not detect sun disklabel



One time on Mon, Mar 15, 2004 at 01:24:03PM +0200 this person named Anton Zinoviev wrote:
> > Partman invoked from d-i didn't seem to detect my sun disklabel and
> > therefore, attempts to rewrite the entire disk without noticing that
> > there are already pre-existing partitions.  (Well, one partition.)
> 
> Partman should never rewrite the disk without confirmation by the user.

Yes, you're right - there is the option to undo whatever changes are
made but it could not detect the partition I had at *all*.

> > This is a partition table from a woody install.  The original
> > disklabel was inherited from Solaris.
> > 
> > od -v -Ax -tx1 < /dev/sda | head -32
> > 000000 53 55 4e 32 2e 31 47 20 63 79 6c 20 32 37 33 33
> > ....
> 
> Hmm, I tried to re-od by an awk script and the woody version of parted
> seams not to recognise this label (I haven't tried the newest version
> of parted).  This is strange because parted is the default partitioner
> on SPARCs and even it can not detect your disklabel.  Can you confirm
> that parted doesn't recognise the disk label on this disk?  If it
> doesn't how you can partition the disk on Linux?

The woody installer used fdisk (which may have caused the problem,
actually.) Parted complains when I try to get it to see the disk.

I should also mention that when I installed woody, I wiped out the
existing partitions, specifically /dev/sda3 (the whole disk partition)
which is apparently some kind of required feature of Sun disklabels. 

The Solaris install partition table geometry is 2733/19/80, whereas the
Linux hdparm -g is 1017/67/62. Parted complains about this too (see
below.)

BTW, parted was willing to reformat the entire disk, AFAICT, but I
didn't want to wipe out the installation I already had yet; I'll test it
later, though I assume it will work.

[The errors are the same whether in woody's parted or d-i's.]

(parted) check
Warning: The disk CHS geometry (1017,67,62) does not match the geometry
stored
on the disk label (3500,19,80).
Ignore/Cancel? i
Warning: The disk label describes a disk bigger than
/dev/scsi/host0/bus0/target0/lun0/disc.
Ignore/Cancel? i
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
Error: Unable to satisfy all constraints on the partition.                
Error: Can't have the end before the start!

(parted) print
Error: Can't have a partition outside the disk!                           
Error: Can't have a partition outside the disk!                           
Error: Unable to satisfy all constraints on the partition.                
Error: Can't have the end before the start! 

[shell]
~ # cat /proc/partitions
major minor  #blocks  name
 8     0    2113362 scsi/host0/bus0/target0/lun0/disc
 8     1     699960 scsi/host0/bus0/target0/lun0/part1
  
-- 
off the chain like a rebellious guanine nucleotide
http://double-helix.org

Attachment: signature.asc
Description: Digital signature


Reply to: