I have installed Ubuntu removing windows 7. Now I can't find my Hard disk drive. I tried these command.

sudo fdisk -l

It shows me there are 3 hard disk named : dev/sda1, sda2, sda5.

But when I open dev and try to open I see that is like a text file.

that file is sda2: block special

I am using Ubuntu 14.04.

I would appreciate your help.

  • 3
    No, this is one drive (sda) with three partitions (1,2,5). – crasic Jun 9 '14 at 17:49

You don't normally access your primary disk from /dev, which tends to be for specialist use.

Your primary disk is automatically mounted when you start your computer.

Your root (the equivalent of C:\ in Windows) is identified, simply, as /. All of the users' home folders (with the exception of the special user root) are stored within a folder called /home (the equivalent of C:\Users within Windows). Your own home folder will be in in your name; suppose your username is fred, then your home folder is /home/fred.

If you like the terminal, you can access these folders with the command cd and list their contents with ls. So, try these commands (ignore the bits starting with #, as they are for description only):

cd /           # Take you to the root folder.
pwd            # Show where you are right now, i.e. "/".
ls -l          # List all the folders and files within the root folder.
cd /home       # Take you to the main home folder.
ls -l          # List all the users' home folders (probably just yours).
cd ~           # The tilde is a short-cut for "/home/fred" (or whatever your username is).
               # This is also called your home folder (rather than the /home folder).
cd /home/fred  # Equivalent to the previous command.
cd             # Also equivalent to the previous command, because the default for
               #    cd is to change to your home folder.
pwd            # Show where you are right now, i.e. "/home/fred".
ls -l          # List all of your own folders and files.
ls -lA         # Again list, but include all of the hidden folders and files.
               # All hidden files and folders begin with a dot.
ls -la         # As previous, but include the two special folders "." and "..".
               # "." simply means "this folder", while ".." means the parent folder.
cd .           # Change to the current folder; i.e. do nothing.
pwd            # Still shows "/home/fred".
cd ..          # Change to the parent folder; in this case, to /home.
pwd            # Shows "/home".
mount          # View all of your mounted partitions.

If you prefer the GUI to the terminal, you can access your folders and files through the Files manager (technically called Nautilus). Click on the Files icon in your Launcher at the top right of your screen:

Files icon at the top right of your screen

This takes you straight to your home folder, where you can see all of your (unhidden) folders and files. You can toggle between viewing or hiding hidden folders and files either through the menu (View > Show Hidden Files), or by pressing Ctrl+H.

By the way…

It may be useful for you to learn the difference between disks and partitions. Windows confuses the two, calling them both "disks". /dev/sda is your primary disk, which contains various partitions numbered /dev/sda1, /dev/sda2, and so forth. The numbers do not have to be sequential.

On your installation, probably /dev/sda1 is your root, /dev/sda2 is /home, and /dev/sda5 is the Linux swap area, but the combination of mount and sudo fdisk -l (or sudo parted --list) would tell you for sure.


This is how you can access /dev/sdaX partitions:

sudo mount /dev/sdaX /mnt

Now go to /mnt

NOTE: I believe there is something wrong. Otherwise your partitions should be accessible from here:

enter image description here

  • Not necessarily wrong, if NTFS driver was not installed during install, Windows drive won't be put in fstab and will not automount – crasic Jun 9 '14 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.