[99404] in RedHat Linux List
Re: Keeping Windows95/98 from seeing Linux drives?
daemon@ATHENA.MIT.EDU (Jan Carlson)
Sat Nov 14 01:42:55 1998
Date: Sat, 14 Nov 1998 01:41:34 -0500
From: Jan Carlson <janc@iname.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>
HOW TO HIDE YOUR LINUX PARTITION FROM WINDOWS:
Windows will continue to beleive a partition exists
as a windows partition, as long as the DOS SIGNATURE
in one of the first few blocks INSIDE the partition is not erased.
Changing the filesystem type from 6 to 82 or 83 is not enough.
Doing mkswap or mke2fs may not be enough.
Deleting the partition with Linux fdisk is not enough.
Why not? Because not of these actions erases the
DOS SIGNATURE in the partition.
Ways to erase the first few blocks in a partition:
1. Delete the partition using *windows* or *dos* fdisk.
Windows fdisk erases the DOS SIGNATURE,
Linux fdisk does not!
2. If it has a linux filesystem, fill the partition
until it won't take any more files. Do it as root,
so that the 5% reserved space is filled too.
Then delete the 'filler' files.
3. Before making a Linux filesystem in a
partition, you can erase the first few blocks
by copying in a large file. This will erase any DOS SIGNATURE.
Example for /dev/hda2:
cp /etc/termcap /dev/hda2
Warning: do not do this if there is a filesystem in the
partition, as it will destroy it and all the files there.
But it's ok, and a good idea, right after you
change the filesystem type from 6 to 82 or 83,
and before you do mkswap or mke2fs.
You can buy Partition Magic or System Commander.
They know what to do also, but it's not necessary.
--
Jan Carlson
janc@iname.com Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.2
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.