Re: partions on floppy

From: Russell King (rmk@arm.linux.org.uk)
Date: Mon Sep 18 2000 - 03:33:38 EST


Adam writes:
> (why I try to do this? I'm trying empirically verify if 'mkswap' will
> check for partion type (ie is this '82') before mkswap-ing it. IMHO, it
> shouldl.... )

No it doesn't, and how can it? There are lots of partitioning formats out
there, so making "mkswap" read the PC BIOS partition sector to verify that
it was a Linux swap partition would be brain dead, especially as you'd have
to bloat mkswap with lots of extra code to go around reading all these
different partition table formats.

Note that floppy disks don't have partitions, and therefore if you create
a partition on a floppy disk, Linux will ignore it.
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:16 EST