SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
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 –all

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

Weitere ähnliche Inhalte

Was ist angesagt?

Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - OverviewAshita Agrawal
 
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 Systemskbansal222
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file systemTaaanu01
 
The evolution of linux file system
The evolution of linux file systemThe evolution of linux file system
The evolution of linux file systemGang He
 
Linux & Unix Operating System's
Linux & Unix Operating System'sLinux & Unix Operating System's
Linux & Unix Operating System'sRiaz Ahmed Channa
 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OSMohammed Safwat
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentationaliabintouq
 
Operating system (Introduction to Linux)
Operating system (Introduction to Linux)Operating system (Introduction to Linux)
Operating system (Introduction to Linux)Muhammad Jawwad Hashmi
 

Was ist angesagt? (19)

Linux operating system - Overview
Linux operating system - OverviewLinux operating system - Overview
Linux operating system - Overview
 
Linux
LinuxLinux
Linux
 
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
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux
LinuxLinux
Linux
 
The evolution of linux file system
The evolution of linux file systemThe evolution of linux file system
The evolution of linux file system
 
Ubuntu for beginners
Ubuntu for beginnersUbuntu for beginners
Ubuntu for beginners
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Report
ReportReport
Report
 
UNIX introduction
UNIX introductionUNIX introduction
UNIX introduction
 
Introduce to linux
Introduce to linuxIntroduce to linux
Introduce to linux
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux & Unix Operating System's
Linux & Unix Operating System'sLinux & Unix Operating System's
Linux & Unix Operating System's
 
Introduction to Linux OS
Introduction to Linux OSIntroduction to Linux OS
Introduction to Linux OS
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux
LinuxLinux
Linux
 
Operating system (Introduction to Linux)
Operating system (Introduction to Linux)Operating system (Introduction to Linux)
Operating system (Introduction to Linux)
 

Ähnlich wie Accessing windows files from linux

Ähnlich wie Accessing windows files from linux (20)

Unix Administration 4
Unix Administration 4Unix Administration 4
Unix Administration 4
 
Xen server storage Overview
Xen server storage OverviewXen server storage Overview
Xen server storage Overview
 
Red Hat Training
Red Hat   TrainingRed Hat   Training
Red Hat Training
 
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
 
Ch12
Ch12Ch12
Ch12
 
Linux Recovery
Linux RecoveryLinux Recovery
Linux Recovery
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Linux
Linux Linux
Linux
 
Window xp slides
Window xp slidesWindow xp slides
Window xp slides
 
Unix Administration 1
Unix Administration 1Unix Administration 1
Unix Administration 1
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Sahul
SahulSahul
Sahul
 
Sahul
SahulSahul
Sahul
 
Divya
DivyaDivya
Divya
 
Divya
DivyaDivya
Divya
 
File system discovery
File system discovery File system discovery
File system discovery
 
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
 
Linux
LinuxLinux
Linux
 
Installing mandriva linux mandriva community wiki
Installing mandriva linux   mandriva community wikiInstalling mandriva linux   mandriva community wiki
Installing mandriva linux mandriva community wiki
 
Tricks N Tips By Ravish Roshan
Tricks N Tips By Ravish RoshanTricks N Tips By Ravish Roshan
Tricks N Tips By Ravish Roshan
 

Mehr von 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 IndustryVivek K. Singh
 
The Death of Traditional Marketing
The Death of Traditional MarketingThe Death of Traditional Marketing
The Death of Traditional MarketingVivek 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 ProspectVivek K. Singh
 
Accounting information system
Accounting information systemAccounting information system
Accounting information systemVivek K. Singh
 
Emotional Intelligence
Emotional IntelligenceEmotional Intelligence
Emotional IntelligenceVivek 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 cycleVivek K. Singh
 
SME development in georgia
SME development in georgiaSME development in georgia
SME development in georgiaVivek K. Singh
 

Mehr von 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
 
The Death of Traditional Marketing
The Death of Traditional MarketingThe Death of Traditional Marketing
The Death of Traditional Marketing
 
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?
 
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
 
Business intelligence (BI)
Business intelligence (BI)Business intelligence (BI)
Business intelligence (BI)
 
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
 
Accounting information system
Accounting information systemAccounting information system
Accounting information system
 
Emotional Intelligence
Emotional IntelligenceEmotional Intelligence
Emotional Intelligence
 
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
 
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
 
Bank intranet
Bank intranetBank intranet
Bank intranet
 
SME development in georgia
SME development in georgiaSME development in georgia
SME development in georgia
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Georgia Profile
Georgia ProfileGeorgia Profile
Georgia Profile
 

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 –all 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