From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,4cace95b2a8353bf,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-12-01 09:04:17 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!sunic!news.tele.fi!news.csc.fi!news.helsinki.fi!not-for-mail From: Rik Faith Newsgroups: comp.os.linux.announce Subject: DOS 6.2 and cfdisk/fdisk Followup-To: comp.os.linux.misc Date: 1 Dec 1994 18:45:39 +0200 Organization: ? Sender: wirzeniu@cc.Helsinki.FI Message-ID: <3bkujj$3v2@kruuna.Helsinki.FI> NNTP-Posting-Host: kruuna.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: DOS 6.2, cfdisk, fdisk, bug Recently it has come to our attention that there is an unfavorable interaction between the Linux fdisk programs and DOS 6.2 FORMAT. First, let us state that we have always recommended creating partition table entries with an OS-specific partition table program. For example, you should make DOS partitions with the DOS FDISK program and Linux partitions with the Linux cfdisk program. That said, it appears that problems can result if a DOS partition is made with the latest version of cfdisk (0.8 BETA) or fdisk (1.5b): DOS FORMAT will not necessarily respect the size of the DOS partition as stated in the partition table. This is because DOS FORMAT looks for some information in the first sector of the data area of the partition, and treats this information as more reliable than the information in the partition table. DOS FORMAT expects DOS FDISK to clear the first 512 bytes of the data area of a partition whenever a size change occurs. DOS FORMAT will look at this extra information even if the /U flag is given -- we consider this a bug in DOS FORMAT and DOS FDISK. The bottom line is that if you use cfdisk or fdisk to change the size of a DOS partition table entry, then you must also use dd to zero the first 512 bytes of that partition before using DOS FORMAT to format the partition. For example, if you were using cfdisk to make a DOS partition table entry for /dev/hda1, then (after exiting cfdisk and rebooting Linux so that the partition table information is valid) you would use the command "dd if=/dev/zero of=/dev/hda1 bs=512 count=1" to zero the first 512 bytes of the partition. BE EXTREMELY CAREFUL if you use the dd command, since a small typo can make all of the data on your disk useless. We will carefully explore patches for cfdisk and fdisk. Rickard E. Faith Kevin E. Martin -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu PLEASE remember Keywords: and a short description of the software.