Why the hard drive is called C
dfarq.homeip.net
dfarq.homeip.net
A few years ago it was still possible to do stuff like
subst ?: C:\somepath
Then you had a drive ?: which was accepted by half of your programs but not the others.I don't have a win10 laying around so I can't test if this is still true today.
> subst ?: C:\somepath
>Then you had a drive ?: which was accepted by half of your programs but not the others.
Neat! Like a Windows version of chroot? Can it be used to stop programs from accessing C?
Windows has the concepts of window stations and sessions. One of these 2 is the namespace for drive letters, as it allows different rdp users to have their own network drives, and also give services their own security context . Take sysinternals winobj to look around. Maybe you can build something chrootlike out of it, I dont really know, I am a bit out of my depth here.
As a DoS of DOS: x:\> copy c:\config.sys CLOCK$
Also special DOS filenames:
CON PRN AUX NUL {COM,LPT}[1-9]
https://superuser.com/questions/1362080/which-characters-are...Print autoexec.bat to the dot matrix printer on LPT1?
x:\> copy autoexec.bat lpt1
x:\>
Create a file called foo.txt without an editor? x:\> copy con foo.txt
whatever
whatever
whatever
whatever
^Z<ENTER>
x:\>
A social DoS of any machine with BASIC or similar. 10 INPUT "Press any key to continue..."; $X
20 GOTO 10
When good floppies go bad: General Failure reading drive A:\.
Abort, Ignore, Retry, Fail?I have heard the arguments but I have learned nothing.
Tbf, you can do the same thing on Linux with AppImages.
There are very very few cases today where your program and it's accompanying files are so large that they cannot be expected to live on only a single disk.
The filesystem, on unix-like systems, is a namespace that contains every resource on the system (everything is a file). / is the root of the namespace. There is no good reason for a particular physical disk used to store some data to be at the root of the namespace; it's an implementation detail, and maybe not even the correct implementation detail. You might want to back a particularly weighty location with a larger disk, or a faster disk, or you might even want to run your system entirely off NFS. The filesystem abstracts all that away from applications. You can arrange your data physically however you like, and with a few lines in fstab, only the lowest levels of the OS need to know about it. You can also change all this on the fly. Contrast with Windows, where running out of space on disk C - THE disk, decided at installation and forever unchangeable - is a catastrophe, and there's no way of moving a weighty program to another disk without "reinstalling" it.
"GoboLinux is a modular Linux distribution: it organizes the programs in your system in a new, logical way. Instead of having parts of a program thrown at /usr/bin, other parts at /etc and yet more parts thrown at /usr/share/something/or/another, each program gets its own directory tree, keeping them all neatly separated and allowing you to see everything that's installed in the system and which files belong to which programs in a simple and obvious way."
"Oh, that's what we used before we had hard disks".
"Hard disks? What's that"?
"Well, it's a kind of permanent data storage for computers".
"..."
"..."
"Grampa, what's 'computers'"?
Feel bettter now? :P
In current Windows systems without floppy drives, you can map A: and B: to network drives with the NET USE command, just like any other unused drive letter.
I've used both of them too and in the case of CMS the one thing I didn't like about it was the lack of tree-structured directories. You couldn't easily explore the filesystem without them. Also, if I remember correctly, the drives addressed by letters were virtual drives - certainly our IBM 4381s did not have 26 physical drives :)
Still, I wrote a lot of useful software in CMS, so perhaps it's not that important.
> Also, if I remember correctly, the drives addressed by letters were virtual drives
In most cases they were virtual drives (attached to your virtual machine) that were mapped to a set of contiguous cylinders on a physical drive. (But you could allocate a virtual drive that consisted of an entire physical drive if you wanted to, which could be useful if you wanted an entire device to be managed by some guest operating system that was running in a VM/370 virtual machine.)
Backwards compatibility. I agree it is unfortunate.
I wonder what would happen if you called it A or B?
The best place to do this is in the Disk Management app. The easiest way to access it is via the Win+X menu.
\\machine\c\your_folders \\machine\d\yet_more_folders
D: # changes to D: Drive
cd Videos # enter the Videos directory
cd "C:\Program Files\ffmpeg\bin"
At this point the prompt will still say D:\Videos>
and you can type "C:ffmpeg my-movie.avi" and Windows will execute ffmpeg from the "current directory" of the C: drive, but process the file D:\Videos\my-movie.avi .
Having fixed letters is a bit antiquated, but drives as separate entities seems to match the real world quite well.
It is not part of the partition. It is just an arbitrary path that is mapped to your USB stick. You can choose where you want it to be mapped depending on your needs and what you are trying to do. There are conventions about where most Linux distributions will map removable media (/mnt or /media), but conventions do not have to be followed if you do not want to.
The "one filesystem" design of Unix / Linux is all about abstraction. Anything that follows file-like conventions can be mapped into the filesystem. For example, on Linux there is a virtual filesystem under /proc.
"/proc is very special in that it is also a virtual filesystem. It's sometimes referred to as a process information pseudo-file system. It doesn't contain 'real' files but runtime system information (e.g. system memory, devices mounted, hardware configuration, etc). For this reason it can be regarded as a control and information centre for the kernel. In fact, quite a lot of system utilities are simply calls to files in this directory. For example, 'lsmod' is the same as 'cat /proc/modules' while 'lspci' is a synonym for 'cat /proc/pci'. By altering files located in this directory you can even read/change kernel parameters (sysctl) while the system is running."
Source: https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.ht...
What's wrong with it being your main hard disk?
Sort of.
Some smaller Linux live CD / live USB distributions such as Damn Small Linux (DSL) (https://en.wikipedia.org/wiki/Damn_Small_Linux) and Puppy Linux (https://en.wikipedia.org/wiki/Puppy_Linux) had the option to load the entire distribution into memory (RAM disk) and run completely from memory.
This allowed them to run very fast since the entire base filesystem was in RAM and also be ephemeral since the filesystem would disappear on reboot or power off.
Your could still mount the computer's hard disk or other removable disks, but / was in RAM.
Other larger Linux live CD / live USB distributions such as Knoppix (https://en.wikipedia.org/wiki/Knoppix) would place a core portion of the system on a RAM disk and then read from the CD / USB to get other files as needed.
Plan 9 (https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs) is not a Linux distro, but a Unix successor that extended the "everything is a file" Unix idea even further to allow multiple computers to act as one using the 9P protocol. This means that you could "mount" server _programs_ running on other computers somewhere under / and use file-like operations to interact with them. Almost like a REST API, but with 9P instead of TCP and file-like I/O instead of HTTP GET, PUT, and POST.
It's a shame AmigaOS' volume system never caught on. It would have solved the problems the article describes re. drive letter assumptions: "Assign A: DH0:" - Problem solved!
I feel really old now.
Otoh I don't miss all the swapping between the 5 floppies that SAS C compiler came on before I finally got my hands on a humongous 40 megabyte hard drive.
Also remember how the drives would click every second to check if you had actually inserted anything and how there was some freeware anticlick program on one of the Fish disks that reconfigured to somehow work without the annoying clicky noise. (Or you could just feed it a disk). Fun times.
I think there is some daemon running in the background trying to automount stuff, as the USB drive constantly clicks when empty just like the Amiga used to.
Very irritating.