Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had a problem with my Ubuntu install, and I need to uninstall it. However, I have one folder on there with an important assignment in it that I'd like to keep still. I can still get into Ubuntu with the command line, and it was installed beside Windows so I had access to my Windows partition as well. My question is - is it possible to access the Windows partition using the command line?

share|improve this question
1  
If you are not comfortable with commandline-fu, you should be able to boot from a LiveCD/LiveUSB and copy the files using the GUI. –  Javier Rivera Feb 9 '11 at 15:31

1 Answer 1

up vote 4 down vote accepted

First you need to know the partition your Windows is. For that you can use the command

cat /proc/partitions

Then you need to make a folder, where the partition will be mounted to:

mkdir /mnt/win

Next

mount /dev/*** /mnt/win

Then

cd /mnt/win
share|improve this answer
    
If the windows partition was labelled, you can also use /dev/disk/by-label/* instead of /dev/sdXY. (use ls -lA /dev/disk/by-label to get a list or use tab-completion on /dev/disk/by-label/) –  Lekensteyn May 15 '11 at 20:58
    
sudo fdisk -l /dev/sda (or sdb ... etc. for you second drive) is really more useful than cat /proc/partitions. –  loevborg May 15 '11 at 21:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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