LinuxQuestions.org
Visit Jeremy's Blog.
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 12-17-2004, 06:09 PM   #1
dudeguy9001
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
Getting Windows files -> Linux disk (2 HDD)


Okay, cut me some slack, I'm new to this whole deal. I've got two hard disks on my computer:

Master- Linux
Slave- Windows

So here's thing thing. I don't know how to access Windows files off my Linux OS. A good friend told me Linux can read from Windows, but Windows can't read from Linux. Anyway, if anyone can show me how to locate files off the Windows disk while running Linux that would be great. Vice-virsa, if possible: I would appriciate being about to locate Linux files off of the Linux disk whilst running Windows. Lucky for me, i just installed Linux, therefore there are no important files on it yet. Thanks.
 
Old 12-17-2004, 06:23 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Linux can natively read Windows partitions and with a 2.6 (current) kernel it can readt NTFS partitions as well so you're set. Windows can't read linux natively, if you use a ext filesystem them you can get Windows drivers to read it but if you use Reiser or XFS then I think you might be stuck.

To mount your Windows partition in linux, create a directory (/mnt/win is easy to remember) and then at a console type this
Code:
/* if you use FAT32 */
# mount -t vfat /dev/hdb1 /mnt/win

/* if you use ntfs */
# mount -t ntfs /dev/hdb1 /mnt/win
Linux can read NTFS alright but it's still not very good at writing to it so you really shouldn't even try. If you want to be able to transfer files between Windows and linux a lot your best bet is to create a FAT32 partition which can be read/written by both windows and linux and use that as a "go-between"
 
Old 12-17-2004, 06:53 PM   #3
dudeguy9001
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I think I understand what you're saying, for the most part, however i'm kind of confused about the following:

Quote:
Code:
/* if you use FAT32 */
# mount -t vfat /dev/hdb1 /mnt/win

/* if you use ntfs */
# mount -t ntfs /dev/hdb1 /mnt/win
What do I save this as? How will the computer read this? Generally, this confuses me; please explain. Thanks
 
Old 12-17-2004, 09:13 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Nah, don't save it you gotta type that in at a console. Do you know what filesystem your Windows partition uses? It'll be either FATxx or NTFS. Which of the above commands you use depends on the filesystem type. Make a directory in /mnt to mount the drive in, here's a step by step, it's sorta confusing at first but once you see the end result it makes sense. Open up a console (Konsole or gnome-terminal maybe, depending on your desktop or maybe aterm) and type this in, each is its own line
Code:
su -
<enter root password here>
mkdir /mnt/win
mount -t ntfs /dev/hdb1 /mnt/win
ls /mnt/win
I assumed Windows is using NTFS which is default option in 2000 and XP, anything before that and you'll be using FAT32 in which case replace -t ntfs with -t vfat
 
Old 12-18-2004, 09:29 AM   #5
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Actually, it also depends on the distribution. Some of the so-called beginner-friendly distributions detect Windows automatically and create a mount point for it. So maybe you alrady have a /windows/ or a /mnt/windows/ folder.
 
  


Reply


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
Windows disk check destroyed my files Impaler Linux - Software 0 08-20-2005 04:09 PM
Copying VCD ''.dat'' files to HDD in LINUX isaac_linux General 0 11-05-2003 12:25 PM
Taking .txt files from Linux to Windows NT on Floppy Disk???? rnk103 Linux - General 1 09-18-2003 07:43 AM
How do I access Windows files on my HDD from Linux? gazingdown Linux - General 4 04-16-2003 02:47 PM
how can i let windows to have the hdd of linux? sagrast Linux - General 7 03-17-2003 12:09 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration