Mount a Windows partition to Linux

Linux OS Topics
Post Reply
Ageek
Sergeant
Sergeant
Posts: 22
Joined: Sat Aug 01, 2009 10:54 am

Mount a Windows partition to Linux

Post by Ageek » Thu Sep 03, 2009 5:01 pm

In general most of the all modern distribution of Linuxes automatically connect the Windows partition to Linux.

When installing the Linux version, if there any windows partition Linux automatically enter an entry to the location /etc/fstab or /etc/mtab

Lets think if connect a new Windows hard disk physically to a Linux machine,

Initially you can list down the partition by typing

Code: Select all

# fdisk -l 
Out put may like this, this may differ from your output
Device BootStartEndBlocksIdSystem
/dev/sda11653524519112Compaq diagnostics
/dev/sda2 *654702851207187+7HPFS/NTFS
/dev/sda370411459360669472+fW95 Ext'd (LBA)
/dev/sda4702970409639083Linux
/dev/sda595921459340178533+7HPFS/NTFS
/dev/sda6704172831951834+82Linux swap / Solaris
/dev/sda77284959118538978+83Linux
OR

You can type

Code: Select all

mount
you may see a output like this

Code: Select all

.....
....
/dev/sda5 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
In previous output you can distinguish the Windows partitons

Then you can mount it to a location, first you have to create a mount point in location such as /media/windows

Code: Select all

# mkdir -p /media/windows 
# mount -t ntfs-3g /dev/sda5 /media/windows
This creates a directory in location /media/windows . The parameter -p stand for, if there is a folder with the same name 'don;t ceate it'. mount mounts /dev/sda5 to /media/windows which is having a NTFS file format.
Post Reply

Return to “Linux”