ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Accessing Windows Files from Linux
Before you can Use it, you need to Mount It

When you install Linux on a system with an existing operating system like Microsoft Windows? it is easy
to make those files and directories available under Linux. Often installations of Linux even auto-mount
certain things like floppy drives, cd-roms, etc. for you. However, it is often common for your Windows
disk/partition not to be automatically mounted for use.

To be able to get access to your Windows drive/partition under Linux you will need to perform two steps.

    1. Create a directory under Linux that will link to your Windows drive/partition at the prompt type (only
       do this once): mkdir /mnt/win
    2. Then mount your Windows drive and link it to this new directory under Linux at the prompt type
       exactly: mount -t vfat /dev/hda1 /mnt/win

NOTE: If you are using Windows NT, 2000, 2003, or XP you need to instead use this command:

         mount -t ntfs /dev/hda1 /mnt/win

HOW EVER, N O T IC E t ha t f or th os e m ou nt i n g a W ind o ws NT Fi l e S ys tem i t is p os s ib l e t o
c orr up t t he NT FS wh en wr i t in g t o i t f rom L i nux . T her ef or e m os t of th e t im e th e m ou nt wi l l
on l y m o u nt t he W indo ws dr i ve as r ea d o n l y!

    3. Now try changing directories to your Windows drive/partition by typing at the prompt: cd /mnt/win
       and then typing: ls ¨Call

Notice that the actual disk or partition information in this example is /dev/hda1. This is usually the case if
you have installed Linux onto a system with existing Windows. The hda1 refers to the first partition of your
master (1st) hard drive. However, in some cases you may be using a system where Linux is on the hda1
and your Windows drive is actually something different. If you have an error, check what drives and
partitions are already mounted by simply typing the command: mount

If you get the Error Message ¡°Filesystem Unsupported¡± your Linux installation may not have included the
needed NTFS (NT, Win 2000, WinXP) driver. This requires either a reinstall or Kernel compile.

Written for Inventive solution in-house software developer developing java applications.

In-charge: Vivek K. Singh
Date: May 04, 2004

More Related Content

What's hot (19)

Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
Ashita Agrawal
?
Linux
LinuxLinux
Linux
shamxsa
?
Becoming Linux Expert Series-Install Linux Operating System
Becoming Linux Expert Series-Install Linux Operating SystemBecoming Linux Expert Series-Install Linux Operating System
Becoming Linux Expert Series-Install Linux Operating System
skbansal222
?
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
Taaanu01
?
Linux basics
Linux basicsLinux basics
Linux basics
Shagun Rathore
?
Linux
LinuxLinux
Linux
Shilpi Goel
?
The evolution of linux file system
The evolution of linux file systemThe evolution of linux file system
The evolution of linux file system
Gang He
?
Ubuntu for beginners
Ubuntu for beginnersUbuntu for beginners
Ubuntu for beginners
Chantal Meersman
?
Linux file system
Linux file systemLinux file system
Linux file system
Burhan Abbasi
?
Report
ReportReport
Report
Henard Rodriguez
?
UNIX introduction
UNIX introductionUNIX introduction
UNIX introduction
MUFIX Community
?
Introduce to linux
Introduce to linuxIntroduce to linux
Introduce to linux
Shamimul Alam
?
Linux file system
Linux file systemLinux file system
Linux file system
Md. Tanvir Hossain
?
Linux basics
Linux basicsLinux basics
Linux basics
BiplabaSamantaray
?
Linux & Unix Operating System's
Linux & Unix Operating System'sLinux & Unix Operating System's
Linux & Unix Operating System's
Riaz Ahmed Channa
?
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
Mohammed Safwat
?
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
aliabintouq
?
Linux
LinuxLinux
Linux
jc1258
?
Operating system (Introduction to Linux)
Operating system (Introduction to Linux)Operating system (Introduction to Linux)
Operating system (Introduction to Linux)
Muhammad Jawwad Hashmi
?

Similar to Accessing windows files from linux (20)

Unix Administration 4
Unix Administration 4Unix Administration 4
Unix Administration 4
Information Technology
?
Xen server storage Overview
Xen server storage OverviewXen server storage Overview
Xen server storage Overview
Nuno Alves
?
Red Hat Training
Red Hat   TrainingRed Hat   Training
Red Hat Training
Open Source Group
?
Compiling kernel.pdf Compiling kernel Compiling kernel
Compiling kernel.pdf Compiling kernel Compiling kernelCompiling kernel.pdf Compiling kernel Compiling kernel
Compiling kernel.pdf Compiling kernel Compiling kernel
RaghuBR9
?
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
Raja Waseem Akhtar
?
Ch12
Ch12Ch12
Ch12
Raja Waseem Akhtar
?
Linux Recovery
Linux RecoveryLinux Recovery
Linux Recovery
V¨ªctor Capetillo
?
Intro to linux
Intro to linuxIntro to linux
Intro to linux
Ravi Prakash Giri
?
Linux
Linux Linux
Linux
Mindtree
?
Window xp slides
Window xp slidesWindow xp slides
Window xp slides
Usman Abdullah
?
Unix Administration 1
Unix Administration 1Unix Administration 1
Unix Administration 1
Information Technology
?
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
Nishant Munjal
?
Sahul
SahulSahul
Sahul
sahul azzez m.i
?
Sahul
SahulSahul
Sahul
sahul azzez m.i
?
Divya
DivyaDivya
Divya
diva23
?
Divya
DivyaDivya
Divya
diva23
?
File system discovery
File system discovery File system discovery
File system discovery
MOHAMED Elshawaf
?
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on Linux
Sagar Kumar
?
Linux
LinuxLinux
Linux
Hemakumar.S
?
Installing mandriva linux mandriva community wiki
Installing mandriva linux   mandriva community wikiInstalling mandriva linux   mandriva community wiki
Installing mandriva linux mandriva community wiki
Adolfo Nasol
?

More from Vivek K. Singh (14)

Addressing Ethical Trade Risks in Garment Industry
Addressing Ethical Trade Risks in Garment IndustryAddressing Ethical Trade Risks in Garment Industry
Addressing Ethical Trade Risks in Garment Industry
Vivek K. Singh
?
The Death of Traditional Marketing
The Death of Traditional MarketingThe Death of Traditional Marketing
The Death of Traditional Marketing
Vivek K. Singh
?
What it take to be an Entrepreneur?
What it take to be an Entrepreneur?What it take to be an Entrepreneur?
What it take to be an Entrepreneur?
Vivek K. Singh
?
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
Vivek K. Singh
?
Business intelligence (BI)
Business intelligence (BI)Business intelligence (BI)
Business intelligence (BI)
Vivek K. Singh
?
Mobile Device: Trend, Growth and Future Prospect
Mobile Device: Trend, Growth and Future ProspectMobile Device: Trend, Growth and Future Prospect
Mobile Device: Trend, Growth and Future Prospect
Vivek K. Singh
?
Accounting information system
Accounting information systemAccounting information system
Accounting information system
Vivek K. Singh
?
Emotional Intelligence
Emotional IntelligenceEmotional Intelligence
Emotional Intelligence
Vivek K. Singh
?
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
Vivek K. Singh
?
Black Sea and CIS Countries Business cycle
Black Sea and CIS Countries Business cycleBlack Sea and CIS Countries Business cycle
Black Sea and CIS Countries Business cycle
Vivek K. Singh
?
Bank intranet
Bank intranetBank intranet
Bank intranet
Vivek K. Singh
?
SME development in georgia
SME development in georgiaSME development in georgia
SME development in georgia
Vivek K. Singh
?
Cloud computing
Cloud computingCloud computing
Cloud computing
Vivek K. Singh
?
Georgia Profile
Georgia ProfileGeorgia Profile
Georgia Profile
Vivek K. Singh
?
Addressing Ethical Trade Risks in Garment Industry
Addressing Ethical Trade Risks in Garment IndustryAddressing Ethical Trade Risks in Garment Industry
Addressing Ethical Trade Risks in Garment Industry
Vivek K. Singh
?
The Death of Traditional Marketing
The Death of Traditional MarketingThe Death of Traditional Marketing
The Death of Traditional Marketing
Vivek K. Singh
?
What it take to be an Entrepreneur?
What it take to be an Entrepreneur?What it take to be an Entrepreneur?
What it take to be an Entrepreneur?
Vivek K. Singh
?
Business intelligence (BI)
Business intelligence (BI)Business intelligence (BI)
Business intelligence (BI)
Vivek K. Singh
?
Mobile Device: Trend, Growth and Future Prospect
Mobile Device: Trend, Growth and Future ProspectMobile Device: Trend, Growth and Future Prospect
Mobile Device: Trend, Growth and Future Prospect
Vivek K. Singh
?
Accounting information system
Accounting information systemAccounting information system
Accounting information system
Vivek K. Singh
?
Black Sea and CIS Countries Business cycle
Black Sea and CIS Countries Business cycleBlack Sea and CIS Countries Business cycle
Black Sea and CIS Countries Business cycle
Vivek K. Singh
?
SME development in georgia
SME development in georgiaSME development in georgia
SME development in georgia
Vivek K. Singh
?

Accessing windows files from linux

  • 1. Accessing Windows Files from Linux Before you can Use it, you need to Mount It When you install Linux on a system with an existing operating system like Microsoft Windows? it is easy to make those files and directories available under Linux. Often installations of Linux even auto-mount certain things like floppy drives, cd-roms, etc. for you. However, it is often common for your Windows disk/partition not to be automatically mounted for use. To be able to get access to your Windows drive/partition under Linux you will need to perform two steps. 1. Create a directory under Linux that will link to your Windows drive/partition at the prompt type (only do this once): mkdir /mnt/win 2. Then mount your Windows drive and link it to this new directory under Linux at the prompt type exactly: mount -t vfat /dev/hda1 /mnt/win NOTE: If you are using Windows NT, 2000, 2003, or XP you need to instead use this command: mount -t ntfs /dev/hda1 /mnt/win HOW EVER, N O T IC E t ha t f or th os e m ou nt i n g a W ind o ws NT Fi l e S ys tem i t is p os s ib l e t o c orr up t t he NT FS wh en wr i t in g t o i t f rom L i nux . T her ef or e m os t of th e t im e th e m ou nt wi l l on l y m o u nt t he W indo ws dr i ve as r ea d o n l y! 3. Now try changing directories to your Windows drive/partition by typing at the prompt: cd /mnt/win and then typing: ls ¨Call Notice that the actual disk or partition information in this example is /dev/hda1. This is usually the case if you have installed Linux onto a system with existing Windows. The hda1 refers to the first partition of your master (1st) hard drive. However, in some cases you may be using a system where Linux is on the hda1 and your Windows drive is actually something different. If you have an error, check what drives and partitions are already mounted by simply typing the command: mount If you get the Error Message ¡°Filesystem Unsupported¡± your Linux installation may not have included the needed NTFS (NT, Win 2000, WinXP) driver. This requires either a reinstall or Kernel compile. Written for Inventive solution in-house software developer developing java applications. In-charge: Vivek K. Singh Date: May 04, 2004