Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Speaking of disk labels
@ 2002-12-12 20:18 Eugene Chu
  2002-12-12 21:21 ` Michal Jaegermann
  2002-12-12 22:04 ` Falk Hueffner
  0 siblings, 2 replies; 4+ messages in thread
From: Eugene Chu @ 2002-12-12 20:18 UTC (permalink / raw)
  To: axp-list

I have a question regarding disklabels on Linux/Alpha.  When I use
fdisk, I am given the ability to create either a DOS label or a DOS and
BSD label.  Which one do I really need?

One of the things I do is to create RAID sets with multiple drives.
I found that I do need to start the partition I intend to use as part
of a RAID set at cylinder 2, or the labels of all but the first drive
in the set will get clobbered as soon as I put a file system onto the
md device.  This causes problems the next time the system needs to do
a mkraid, such as after a reboot.  Up until then the RAID seems to
work just fine.

I'm not sure how much space the label needs, but the miser in me wants
to give it as little as necessary.  So one of the things I saw was the
ability to change drive parameters such as cylinders, tracks, and
sectors.  Since these are not real numbers anyway, I set them so that
each virtual cylinder is a nice convenient size, such as 1 MB.  So I am
willing to give up that first MB (in my 181GB drive) to save the disk
label from being clobbered.  This works fine in the BSD label, but I
can't seem to make the same configuration in the DOS label.  If I use
the "expert" mode in the DOS label manager of fdisk, I can set the
values, but the main DOS label manager still sees the original
parameters.  At this point, most of the commands in the standard DOS
label manager will cause fdisk to crash.  But if I leave it alone,
and even have no DOS partitions, the system seems to create the RAID
just fine, so I'm guessing it is using the BSD partitions.  But doing
a v in the DOS mode still causes fdisk to segfault.  Is it safe to
run my disks this way, where the BSD parameters and partitions are
not consistent with the DOS parameters?

eyc




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Speaking of disk labels
  2002-12-12 20:18 Speaking of disk labels Eugene Chu
@ 2002-12-12 21:21 ` Michal Jaegermann
  2002-12-12 22:04 ` Falk Hueffner
  1 sibling, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 2002-12-12 21:21 UTC (permalink / raw)
  To: axp-list

On Thu, Dec 12, 2002 at 12:18:39PM -0800, Eugene Chu wrote:
> I have a question regarding disklabels on Linux/Alpha.  When I use
> fdisk, I am given the ability to create either a DOS label or a DOS and
> BSD label.  Which one do I really need?

Any you want as long as it is supported by your kernel.  What
partitioning is used is only important for a boot disk and not because
of your Linux kernel but because a firmware expects some particular
disk layout.   You do not care if you are booting from a floppy
or CD (as then you do not have any boot hard drives :-).

> But doing
> a v in the DOS mode still causes fdisk to segfault.

Standard fdisk still has bugs for a situation when you have BSD
disklabel and you will try to switch with any operations to FAT one.
I reported that few years ago, and even provided a patch (true,
rather hacky one but a goal was to mess with fdisk internals as
little as possible) but no go so far.  The only sure way to switch
between partitioning types is to erase first sector or two using
'dd count=2 if=/dev/zero ... ' and write one on a clean slate.

  Michal




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Speaking of disk labels
  2002-12-12 20:18 Speaking of disk labels Eugene Chu
  2002-12-12 21:21 ` Michal Jaegermann
@ 2002-12-12 22:04 ` Falk Hueffner
  1 sibling, 0 replies; 4+ messages in thread
From: Falk Hueffner @ 2002-12-12 22:04 UTC (permalink / raw)
  To: axp-list

chu@tes-mail.jpl.nasa.gov (Eugene Chu) writes:

> I have a question regarding disklabels on Linux/Alpha.  When I use
> fdisk, I am given the ability to create either a DOS label or a DOS
> and BSD label.  Which one do I really need?

If you want to boot via SRM console from that disk, you need BSD labels.
If you want to boot via ARC console from that disk, you need DOS labels.
If you don't want to boot from that disk at all, you can use whatever
you like.

-- 
	Falk




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Speaking of disk labels
@ 2002-12-13 18:23 Eugene Chu
  0 siblings, 0 replies; 4+ messages in thread
From: Eugene Chu @ 2002-12-13 18:23 UTC (permalink / raw)
  To: axp-list

Thanks to Michal and Falk for their replies.

It looks like I am safe in using my disks in their current configs;
it does not matter whether I created DOS or BSD partitions.  Micahl
confirmed the bug in fdisk that causes it to crash if the parameters
have not been set consistently.  In that case, the only way to start
over would be to zero it out with a dd from /dev/zero.  This was what
I did several times during my tests.

eyc




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-13 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 20:18 Speaking of disk labels Eugene Chu
2002-12-12 21:21 ` Michal Jaegermann
2002-12-12 22:04 ` Falk Hueffner
  -- strict thread matches above, loose matches on Subject: below --
2002-12-13 18:23 Eugene Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox