On Sun, 29 Dec 2002 08:44:00 -0800, Ray Andrews wrote:
> Hi Glenn,
>> Gdisk.exe can then hide/unhide/change active partitions
>> Heres how I do it on my 1st HDD
>> - --- !w95.bat is located in the root dir of partition 1 ---
>> ('hides' all of the Dos partitions from W95, 'unhides' the W95 partition
>> and makes that W95 partition active)
> This sounds like a must have utility, but why do you hide your DOS partitions
> from windows? If you actvate partitions in a different order, would drive
> letters be assigned in *that* order, or are they always assigned by
> hardware order? (My method of mirroring windows systems relies on being
> able to convince any of two or three partitions that they are "C:" when
> they are active, so being able to play around with activation order could
> be really useful).
I 'hide' the Dos partitions so that WinCrap can't screw-them-up.
If we ever use the 'delete file' function inside of Win9x
A 'recycled' directory is automatically created on the drive that
contains the file being deleted.
I just did it by leaving partition #1 'unhidden" and then used
W95 to delete a file from (the now) drive D:
I then put everything back to the Dos setup and found this.....
chkdsk c: /f
(/f used to 'fix' the invalid cluster caused by WinCrap) :(((
Volume MCCORKLE_01 created Jul-16-2001 22:31 contains an invalid cluster.
279,470,080 bytes total disk space.
172,032 bytes in 11 hidden files.
2,048,000 bytes in 248 directories.
214,794,240 bytes in 4860 user files.
62,455,808 bytes available on disk.
8,192 bytes in allocation unit.
34,115 total allocation units on disk.
7,624 available allocation units on disk.
655,360 total bytes of memory.
643,520 total bytes of free memory.
643,040 bytes in largest free memory block.
__________________________________________________________________
xdir +h c:\
(to show only 'hidden items' in c:\)
rsa-h- 27,880 2-27-97 7:01a c:ibmbio.com
rsa-h- 30,081 2-27-97 7:01a c:ibmdos.com
rs--h- 101 12-25-02 5:42p c:io.idx
r---h- 512 3-07-02 4:31p c:mbr-lilo.bin
r---h- 512 12-28-02 1:32a c:oldmbr.bin
DIRECTORY 12-29-02 4:01p c:recycled
-sa-h- 572 12-28-02 1:02a c:spinrite.fif
total files 6 total bytes 59,658 disk free space 62,439,424
________________________
xdir \recycled
(to show the contents of the 'hidden' directory we now know exists)
DIRECTORY 12-29-02 4:01p c:.
DIRECTORY 12-29-02 4:01p c:..
--a--- 1,106 2-25-01 6:32p c:dd0.bat
--a-h- 65 12-29-02 4:01p c:desktop.ini
--a-h- 300 12-29-02 4:01p c:info
total files 3 total bytes 1,471 disk free space 62,447,616
___________________________
There's the deleted file plus 2 more hidden files left there by W95.
___________________________
To get rid of \recycled I had to reboot into W95 Dos and do all of this.
attrib -h d:\recycled\*.*
del d:\recycled\*.*
rd d:\recycled
Now do see why I want to 'hide' things from W95 ??? <g g g>
___________________
>> gdisk 1 /-hide /p:1
>> gdisk 1 /act /p:1
> Why do you hide and then activate the same partition?
Nope, I was 'unhiding' partition #1
/hide is used to 'hide' a partition.
/-hide (minus hide) is used to 'unhide' it.
--
Glenn
http://arachne.cz/
http://www.delorie.com/listserv/mime/
http://www.angelfire.com/id/glenndoom/download.htm
http://www.thispagecannotbedisplayed.com/