crwld.org » Blog Archive » How to: mount a Windows (NTFS) partition in Debian?
231 views

How to: mount a Windows (NTFS) partition in Debian?

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 3.67 out of 5)
Loading ... Loading ... Please note: crwld.org is not responsible for any damage you may do to your computer by following the instructions bellow.

So…you have a dual boot of Windows and Debian and you want to mount a Windows partition in your Debian distro, so that you are able to access windows files and folders?
First of all, you need to know where your Windows partition is. To do this run the following command in your terminal as root:

fdisk -l

You’ll see a list whit all your partitions. Usually, the Windows partition is the first one. In my case it’s /dev/hda1.
Now, we create a new directory in Debian to mount our Windows partition. Again, as root:

mkdir /mnt/windows

And finally, we mount our partition:

mount /dev/hda1 /mnt/windows -t ntfs -w

You can run “man mount” to a learn some more about the mount command.
If you wish to unmount it:

umount /mnt/windows

And it’s done. You can now access your Windows files and folders in your Debian system.
This may also work with other GNU/Linux distributions.

If you prefer, you can also download the following bash script to mount your partition for you:

mount_win.sh (right click -> save as)

Don’t forget to change “/dev/hda1” to your Windows partition and “/mnt/windows” if you wish to create the partition in a different directory.
To run it just navigate to the directory where you saved it and do “. mount_win.sh” as root.

Take care!

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

crwld.org@2008 || WordPress @ Red Star edited by Buttpt || Header by ashlik