LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-20-2008, 10:34 AM   #1
thelink123
Member
 
Registered: Aug 2008
Location: India, Kerala
Distribution: openSUSE 11
Posts: 46

Rep: Reputation: 15
Smile Linux command for copying a directory in windows to the Linux partition


Hi,

I want to copy some of the directories in windows partition to my Linux partition. Tell me the command for doing this in Linux.

thanks,
--thelink123
 
Old 08-20-2008, 10:39 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Hi and welcome to LQ. If you are dual booting, you can do this using a file manager (its either Konqueror if you are using KDE or Nautilus if you are using GOME). An alternative would be to use the command, "cp" (without quotes). You can find out more information about the cp command by entering the command "info cp" or "man cp" in a terminal.
 
Old 08-20-2008, 10:56 AM   #3
thelink123
Member
 
Registered: Aug 2008
Location: India, Kerala
Distribution: openSUSE 11
Posts: 46

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks for the quick response.I know there is a command like 'mount windows dir linux dir'. The problem is i dont know the exact usage of that. Can u please help me to figure out the exact command for the same.

thanks
--thelink123
 
Old 08-20-2008, 11:27 AM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by thelink123 View Post
Thanks for the quick response.I know there is a command like 'mount windows dir linux dir'. The problem is i dont know the exact usage of that. Can u please help me to figure out the exact command for the same.
You can help us by replying with the output of "fdisk -l". Then we can tell you exactly what to type.

In the general case, you need a mount point:
Code:
# mkdir /mnt/windows
Then you need to mount your windows partition:
Code:
# mount -tntfs /dev/sda1 /mnt/windows
These instructions assume your are trying to mount a Windows NTFS partition and that it is the first partition on the first drive, and the first drive is handled as SCSI device by the kernel. If you have an older kernel, or you are using a FAT32 partition, you might need
Code:
# mount -tvfat /dev/hda1 /mnt/windows
 
Old 08-21-2008, 01:17 PM   #5
thelink123
Member
 
Registered: Aug 2008
Location: India, Kerala
Distribution: openSUSE 11
Posts: 46

Original Poster
Rep: Reputation: 15
Smile Is this mounting persistent?

Thanku so much for the reply. Now i know how to mount a windows folder on to a linux folder.

Now i want to know whether this mounting is persistent. If i restart the syetem will the mounting remain the same. If it does not please tell me how to make the mounting permanent.

thanks
--thelink123
 
Old 08-21-2008, 03:12 PM   #6
trist007
Member
 
Registered: May 2008
Distribution: Slackware
Posts: 972

Rep: Reputation: 56
If you want to make it permanent, you have to make an entry in the /etc/fstab file.

Also, on mounting, I usually do

mount -t ntfs /dev/sda1 /mnt/windows

instead of

mount -tnfts /dev/sda1 /mnt/windows
 
Old 08-21-2008, 04:27 PM   #7
jasohl
Member
 
Registered: Oct 2006
Location: Seattle, Washington
Distribution: Gentoo, LinuxMint, Arch Linux
Posts: 99

Rep: Reputation: 18
fstab

to mount the windows drive everytime you restart you have to at it to /etc/fstab

Code:
/dev/hda1  	/mnt/windows  	ntfs  	defaults  	1 2
basicly all the info and options you use with the mount command

for more info man fstab
info on the options is under man mount
 
  


Reply

Tags
mount, mounting, permanent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux copying Windows oneandoneis2 General 7 01-27-2006 07:07 PM
Copying from Linux partition to Linux partition Commando464 Linux - Newbie 7 08-25-2004 07:34 PM
Copying a windows or linux install to a new hard disk using linux.... some_cs_student Linux - Software 7 05-24-2004 07:17 PM
copying files from linux to windows partition as user aiims1777 Linux - General 15 11-15-2003 01:56 AM
Copying Long Filenames from Win2k to a Linux Samba directory brianabroad Linux - General 0 10-30-2003 12:41 AM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration