Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there a way to transfer files in windows to linux via one OS operating inside the other on my dual boot machine, as i have windows files that need reading inside linux, but i dont want to burn cd's every time!
Just mount a vfat partition that can be used for data in both systems.
It is best not to mount your windows drive incase you corrupt any system files. Also if it is NTFS - the linux NTFS support is still not perfect and should really ony be used for reading from an NTFS drive.
Yes, you can. From Linux, you can usually mount the other partition (if you're using RedHat and NTFS you need to download extra modules) .
Let's say you've got Windows (FAT32) partition - /dev/hda1. To mount it, create /mnt/windows (command: 'mkdir /mnt/windows') directory (or similar) and run
mount -t vfat /dev/hda1 /mnt/windows
Now you can access your Windows files in /mnt/windows.
The best way I know is to go /mnt/windows/...wherever. If not mounted, you probably can mount it yourself. It should be one of your hard disk entries under /dev. (maybe hda3 or something). It comes mounted on every Linux installation I've seen. You don't even have to copy it to your linux partition to use it!
Originally posted by andym so could i mount a partition of windows and copy files from one to the other and vice versa without corrupting anything on either partition?
I would only do this with a fat windows fs. If you use NTFS then I would mount it as read only as linux ntfs support is still not quite stable.
If you installed Windows first most likely it is on hda1, which would be your 1st partiton. When you look under Windows explorer or some similar Windows based tool do you see any other letters besides C. If not then Windows is probably only using one partiton.
For another clue of what is using which partiton try typing df or possibly typing mount without any extra parameters. That will show what is currently mounted as what under Linux. I have never had anything bad happen when I used the mount command and guessed wrong about what is where, it would just fail to mount the partition. I tend to think there probably is not much danger in making wrong guess.
Using fdisk would probably also give you that information about all the partitons. I do not use fdisk very often and would need to look up how to use it, so I will skip that option. By the way what version of Windows do you have. If it is Win 95, 98 or ME Windows would be on a FAT 32 or possibly a FAT 16 partiton. If you have Win NT 4.0, WIN 2000 or Win XP Windows could be on a NTFS or FAT partiton.
Originally posted by david_ross I would only do this with a fat windows fs. If you use NTFS then I would mount it as read only as linux ntfs support is still not quite stable.
I haven't had trouble out of NTFS under Mandrake 9, though I damaged it putting Mandrake in. I could still get to it and work with it just fine.
Ok, in Windows now? Open a virtual dos prompt and type fdisk.
It will ask you if you want to enable large disk support. Answer yes.
See any letters other than C? Tell us.
Under file system, does it say fat32 or ntfs?
Note: Windows's fdisk does not recognize Linux partitions. It will see them as empty unpartitioned space. Don't mess with any partitions. Once I deleted a windows partition I didn't need anymore and then all of a sudden Linux didn't boot (no kernel found) so be careful. All you want to do now is chhoice 4 - display partition information.
Which windows OS are you running?
=============================
Here's the "works on most computers that have Windows loaded on the first partition of the primary master IDE drive" method.
Bot into linux.
Log on as root.
go to /mnt and create dir 'win' or 'windows' or whatever you wanna call it.
Open a terminal and type the following:
mount -t vfat /dev/hda1 /mnt/win
navigate to /mnt/win. Do you see all the stuff you have on c: in Windows?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.