Do We have C: or D:  Drives on Linux File system

Posted on 2005-04-15
Last Modified: 2010-04-20
Hi Experts,
I have A question about Comparing Windows Family and Linux Family.
Do we have C: ,D: or etc on linux File system?
if no, how can i implement it ?

Best Regards

Question by:ronnie_bobo
    LVL 95

    Accepted Solution

    No you don't.  And generally, you can't.  You can (sort of) implement linux style file systems with Windows however, using Mount Points on 2000 or XP.

    Windows assigns drive letters to each partition.  Giving you a maximum of 26 drives.
    Linux has you specify a root drive (you might consider this LIKE C:\ but it's not the same and differs notably).  Root is referred to as "/"  Then, you mount any other drives you want to directories.  For example, the closest way to implement D, E, F would be to create folders labeled d, e, f and mount other partitions/drives to them.  So:

    / = Drive "C:"
    /d = drive "d:"
    /e = drive "e:"

    One of the great things about *nix file systems is that you can have hundreds of disks mounted on one system, if you could physically have that many.  And if you use NFS (Network File System) you can even mount "shared" directories like this.  So for example:

    Computer 1:
    / = disk 1
    /d = disk 2
    /e = disk 3
    /f = computer2/disk1
    /g = computer3/disk1
    /e/r = computer8/disk5


    Just understand, Linux is NOT windows.  IF you mount drives like this you'll be the only one.  Don't treat Linux like windows and don't try too hard to get it work just like it.  It doesn't - and that's a good thing.

    Author Comment


    Why Windows divide HDD to Drives but Linux Not ?

    LVL 5

    Assisted Solution

    The Linux system is more elegant because its treats everything simply as space which can be mounted at any part of the logical system.
    So ofr example if you install a lot of programs in /usr you can add a second disk copy accross the data and mount the new drive as / user.

    Whereas windows is inelegant and forces you to treat each disk as a seperate entity (this has been redressed to a certain extent in XP)

    Hope that helps anwer your question
    LVL 13

    Assisted Solution

    Linux does divide drives, at least the logical partitions:

    If you have a partitioned drive in Windows, you end up seeing drive letters:   C:, D:, and so on.

    In linux, these typically show up as something like:   /dev/hda1, /dec/hda2, and so on.

    There are many more distinct differences, but the concept is essentially the same.
    LVL 34

    Assisted Solution

    "Why Windows divide HDD to Drives but Linux Not ?"

    Because Windoze is essentially DOS, which itself was derived in large part from CP/M (for example, the DOS program file format .COM was directly modelled on the CP/M program file format .CDM, to aid in automated translation of programs from CP/M to DOS, among other reasons). Windoze started as basically a GUI task switcher for DOS, and it retains those roots, right thru W2K3.

    The roots of Linux, on the other hand, derive from UNIX, and the design philosophy behind UNIX was quite different (e.g. process-oriented vs. thread-oriented, solid memory protection vs. no memory protection) - a "tree" paradigm was chosen for the filesystem architecture. The flexibility and adaptability of that architecture has served UNIX well, and the wisdom of the choice has been borne out over time.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now