Download Article
Maintain access to your Windows files when migrating to Ubuntu
Download Article

One of the biggest difficulties migrating to Ubuntu is losing access to your windows files. Fortunately, it is not too difficult to overcome this...but read the warnings before trying this out. All that is needed is to mount the windows partition after you boot into Ubuntu. Of course, the first problem is determining which partition contains the windows files.

Things You Should Know

  • Navigate to System → Administration → Synaptics Package Manager to locate and install gparted. Then, run it from System → Partition Editor
  • Open a terminal and type sudo -s to root yourself.
  • Type the prompt "mkdir /mnt/windows". Then, type {{{1}}}.
  • Be sure to replace /dev/sda2 with the partition name you located earlier with the Partition Editor.
  1. How.com.vn English: Step 1 Install gparted (System...
    Install gparted (System → Administration → Synaptics Package Manager → search for gparted, mark it for installation and, when it installs, run it from System → Partition Editor). Look for an NTFS partition – it is likely to be the one windows is on.
  2. How.com.vn English: Step 2 Having located the...
    Having located the partition, write down the name – it will look something like /dev/hda2 or /dev/sda2, depending if your drives are PATA, SCSI or SATA. Do this carefully – Now check to see if this is the partition by manually mounting it and looking at the files.
    Advertisement
  3. How.com.vn English: Step 3 Open a terminal (Application → Accessories → Terminal) and make yourself root by typing sudo -s and pressing enter.
    You will be prompted for the root password and will then become root. Being root assumes that you know what you are doing – you could easily cause disaster if you make a mistake, so concentrate. Carefully type this line at the prompt and press enter
  4. How.com.vn English: Step 4 Type the prompt.
    mkdir /mnt/windows
  5. How.com.vn English: Step 5 Replace the name.
    You may replace /mnt/windows with /mnt/windrv or any other name you prefer. Having created the directory that is going to hold your windows files, type the following command carefully at the prompt and press enter
  6. How.com.vn English: Step 6 Type the command.
    mount -t ntfs /dev/sda2 /mnt/windows -o "umask=022"
  7. How.com.vn English: Step 7 Make sure you replace /dev/sda2 with the name of the windows partition you wrote down.
    Now access the mounted drive and ensure that you can read the files by going to Places → Computer and navigating to /mnt/windows. If you can see your files, you are all set. If not, you've mounted the wrong drive, unmount it using umount /dev/sda2, making sure that you use the correct name for your drive.
  8. Advertisement

Community Q&A

Search
Add New Question
  • Question
    It says that it can't find /dev/sda/2 in /etc/fstab. What does that mean?
    How.com.vn English: Living Concrete
    Living Concrete
    Top Answerer
    The location will not always be /dev/sda2. It may be something else on your system. You will need to look at GPartEd in order to figure out what you need to type in for the mount command. Also, you put an extra '/' in /dev/sda2 right before the 2. This may have affected your mount command as well.
  • Question
    What does it mean when it says Mount is denied because the NTFS volume is already exclusively opened?
    How.com.vn English: Somone
    Somone
    Community Answer
    It means something else is already accessing the volume. Make sure that no other programs are using the volume and try again.
  • Question
    My root password is wrong. What can I do?
    How.com.vn English: Somone
    Somone
    Community Answer
    You will have to change your root password. The root password is typically the administrator's login password. But if it's not, you will have to change it by editing boot commands.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • Start a text editor as root by typing gedit /etc/init.d/mountwinfs.sh. Copy the lines below into the text editor and save it as /etc/init.d/mountwinfs.sh.
      • Now, you will probably want to have the computer boot up and automatically mount the windows drive so you can save files back and forth seamlessly. This is easily achieved via a script that loads at startup. The commands in the script will have to be run with root permissions, so you will have to save the file in /etc/init.d. You are going to use the same command you used manually. Most of the other lines in the script are comments.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      Advertisement

      About This Article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 23 people, some anonymous, worked to edit and improve it over time. This article has been viewed 662,656 times.
      How helpful is this?
      Co-authors: 23
      Updated: May 22, 2023
      Views: 662,656
      Categories: Ubuntu
      Thanks to all authors for creating a page that has been read 662,656 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement