Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » Symbolic link under MS-DOS ??!!??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Symbolic link under MS-DOS ??!!?? [message #112677] Mon, 16 September 2013 13:50 Go to next message
guido is currently offline  guido
Messages: 50
Registered: May 2013
Karma: 0
Member
Message-ID: <6293@boring.UUCP>
Date: Tue, 22-Jan-85 12:39:29 EST
Article-I.D.: boring.6293
Posted: Tue Jan 22 12:39:29 1985
Date-Received: Sun, 27-Jan-85 05:25:48 EST
Reply-To: guido@mcvax.UUCP (Guido van Rossum)
Organization: CWI, Amsterdam
Lines: 33
Apparently-To: rnews@mcvax.LOCAL

Much to my surprise, I seem to have created a symbolic link on my MS-DOS
hard disk!  The problem is, since symbolic links are undocumented, I don't
know how to get rid of it.

What actually happened is this: I decided to move some stuff to a lower
directory in the hierarchy, and wanted to create a directory named 'old':
	C> mkdir old
After a second or two, the whole screen turned to dots (the graphic displayed
for ^G, probably), nicely blinking as if I had trapped some alarm.
Shift-break nor Ctrl-Alt-Del would help me out, so I switched the power
off and on.  Back in the directory where I tried to do the mkdir, I found
that there was a directory named 'old'.  Guess my surprise when I found that
it contained some files, and at close inspection had exactly the same lay-out
as my root (\) directory!  Well, after
	C> cd old
	C> cd
	C:\
	C>
I concluded that 'old' was actually the same as root.  I have found no other
strange circumstances, but now I am puzzled by two questions:
	- what happened exactly
	- how to get rid of this directory!
Rmdir of course won't work, because the directory isn't empty.
I haven't got any utilities to tackle the disk.

Note added in proof: the chkdsk program seems to have trouble with my hard
disk -- it sits there reading and working, and never ever outputs a thing.

Any help would be appreciated.  I run an IBM-PC with expansion box with an
IBM 10Mb hard disk drive, and MS-DOS 2.0.

	Guido van Rossum, CWI, Amsterdam
	mcvax!guido
Re: Symbolic link under MS-DOS ??!!?? [message #112691 is a reply to message #112677] Mon, 16 September 2013 13:50 Go to previous messageGo to next message
johna is currently offline  johna
Messages: 8
Registered: May 2013
Karma: 0
Junior Member
Message-ID: <322@haddock.UUCP>
Date: Fri, 25-Jan-85 23:56:30 EST
Article-I.D.: haddock.322
Posted: Fri Jan 25 23:56:30 1985
Date-Received: Mon, 28-Jan-85 07:17:39 EST
Lines: 10
Nf-ID: #R:boring:-629300:haddock:13600010:000:420
Nf-From: haddock!johna    Jan 25 16:37:00 1985

You have created a directory entry containing just an 8 byte name, 3 byte
extension, 1 byte attribute (10H) and all the rest of the fields are zeros.
Zero in bytes 26-27 (the starting cluster of a file/directory) indicates
the root, as it does in directory entries . and .. (dot & dotdot).

I know of no way to remove this entry without a disk editor or
  GASP!! reformatting.

			!decvax!ima!haddock!johna (John Adams)
Re: Symbolic link under MS-DOS ??!!?? [message #112695 is a reply to message #112677] Mon, 16 September 2013 13:50 Go to previous messageGo to next message
broehl is currently offline  broehl
Messages: 79
Registered: May 2013
Karma: 0
Member
Message-ID: <1919@wateng.UUCP>
Date: Mon, 28-Jan-85 09:58:48 EST
Article-I.D.: wateng.1919
Posted: Mon Jan 28 09:58:48 1985
Date-Received: Tue, 29-Jan-85 05:41:24 EST
References: <322@haddock.UUCP>
Reply-To: broehl@wateng.UUCP (Bernie Roehl)
Organization: U of Waterloo, Ontario
Lines: 29
Summary: 

Actually, you don't need a disk editor; you can do it with DEBUG.
It's a little tedious, however; since it's a directory, you can't simply
edit it.  Assuming the offending directory is under root, you can find
its entry in the root directory by just prowling through the first few
sectors of the disk, then patch the necessary bytes and write the root
directory sectors out again.  In particular, you can change it from a
directory to an ordinary file, so you can erase it.

The reason chkdsk hangs is that it recursively walks the directory
hierarchy, and since that hierarchy now contains itself, chkdsk never
terminates.

I would stronly sugest backing up the disk before attempting to edit the
directory using DEBUG, especially if you have little or no previous
experience in that area.  Of course, if you're going to back it all up
anyway, why not just reformat and restore everything but the bad directory
entry?

I can't predict how BACKUP will respond to your funny directory; the
simplest work-around is to backup everything *but* that directory, so that
it's never stored on the backup diskettes (also makes the restore a lot
easier).

Best of luck!
					--Bernie Roehl
 
-- 
        -Bernie Roehl    (University of Waterloo)
	...decvax!watmath!wateng!broehl
Re: Symbolic link under MS-DOS ??!!?? [message #112696 is a reply to message #112677] Mon, 16 September 2013 13:50 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: jchapman@watcgl.UUCP (john chapman)
Message-ID: <1081@watcgl.UUCP>
Date: Mon, 28-Jan-85 13:03:02 EST
Article-I.D.: watcgl.1081
Posted: Mon Jan 28 13:03:02 1985
Date-Received: Tue, 29-Jan-85 05:43:36 EST
References: <322@haddock.UUCP>
Organization: U of Waterloo, Ontario
Lines: 17

 >  You have created a directory entry containing just an 8 byte name, 3 byte
 >  extension, 1 byte attribute (10H) and all the rest of the fields are zeros.
 >  Zero in bytes 26-27 (the starting cluster of a file/directory) indicates
 >  the root, as it does in directory entries . and .. (dot & dotdot).
 >  
 >  I know of no way to remove this entry without a disk editor or
 >    GASP!! reformatting.
 DEBUG will let you do this (access blocks on the disk)
 e.g.
 l 0 100,2,5
loads 5 sectors starting at sector 2 from drive 0 (a:) to location
100 (all numbers are hex). the w command writes them back out.  These
are physical device sectors (i.e. not necessarily 512 bytes).  I      
repaired my root (after doing a RECOVER which supposedly recovers bad
blocks but which actuall converted all my files *and* directories to
simple files of the form FILEnnnn.CHK until root dir ran out of space)
and while it was tedious it works.
Re: Symbolic link under MS-DOS ??!!?? [message #112702 is a reply to message #112677] Mon, 16 September 2013 13:50 Go to previous message
bmw is currently offline  bmw
Messages: 18
Registered: May 2013
Karma: 0
Junior Member
Message-ID: <336@aesat.UUCP>
Date: Tue, 29-Jan-85 08:13:01 EST
Article-I.D.: aesat.336
Posted: Tue Jan 29 08:13:01 1985
Date-Received: Tue, 29-Jan-85 09:26:09 EST
References: <322@haddock.UUCP>
Reply-To: bmw@aesat.UUCP (Bruce Walker)
Organization: AES Data Inc., Mississauga Ont., Canada
Lines: 23
Summary: 

In article <322@haddock.UUCP> johna@haddock.UUCP writes:
 > You have created a directory entry containing just an 8 byte name, 3 byte
 > extension, 1 byte attribute (10H) and all the rest of the fields are zeros.
 > Zero in bytes 26-27 (the starting cluster of a file/directory) indicates
 > the root, as it does in directory entries . and .. (dot & dotdot).
 > 
 > I know of no way to remove this entry without a disk editor or
 >   GASP!! reformatting.
 > 
 > 			!decvax!ima!haddock!johna (John Adams)

Actually, DEBUG makes a pretty good (read "cheap") disk editor.  Check out the
commands "Load" and "Write" and you will find that you may specify particular
sectors or blocks of sectors to read/write into/from memory.  In memory, they
may be examined and modified with the "Display" and "Enter" commands.  In this
fashion, one may edit the actual directory area (just stuff a 0xE5 into the
first byte of the entry to eliminate, and update the on-disk copy. *BEWARE*,
though, this process is not for the inexperienced or faint-of-heart, patching
directories of live disks is not unlike open-heart surgery: one slip and
*SzzzzzxxxK!* (slicing motion of hand across throat).

Bruce Walker     {allegra,ihnp4,linus,decvax}!utzoo!aesat!bmw
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hard disk overhead?
Next Topic: Unix on the AT&T PC 6300
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Apr 18 17:00:59 EDT 2024

Total time taken to generate the page: 0.05571 seconds