LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting Windows files -> Linux disk (2 HDD) (https://www.linuxquestions.org/questions/linux-newbie-8/getting-windows-files-linux-disk-2-hdd-267518/)

dudeguy9001 12-17-2004 05:09 PM

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.:Pengy:

cs-cam 12-17-2004 05:23 PM

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" :)

dudeguy9001 12-17-2004 05:53 PM

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:)

cs-cam 12-17-2004 08:13 PM

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

mjjzf 12-18-2004 08:29 AM

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.


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