Solved

Reading files from different OS

Posted on 2000-03-22
7
301 Views
Last Modified: 2010-04-20
I have two separate hard drives, on the C drive i have windows 95 (sorry.. :)  ) and i have just installed linux on the D drive. I know Windows does not even know the D drive exists, but i was wondering if there was a way for me to access my files that are on the C drive from linux, on my D drive. files such as mp3s, for instance... Thanks a lot!
0
Comment
Question by:peas
7 Comments
 
LVL 14

Expert Comment

by:mcrider
ID: 2648953
Yes, you can mount it in your /etc/fstab file...

For example:

Create a directory call /dos_c_drive

Then put something like this in your /etc/fstab and reboot linux:

/dev/hda1 /dos_c_drive msdos defaults 1 1

Note that the first argument "/dev/hda1" is the device that points to the C drive... Use whatever device points to you C drive...


Cheers!®©
0
 

Author Comment

by:peas
ID: 2651833
Adjusted points from 5 to 10
0
 

Author Comment

by:peas
ID: 2651834
Thanks a lot for the response mcrider; honestly, i didnt think anyone would reply! however i think i did what you said to do, but it didnt seem to work...
may it have to do with what you said was the "device that points to the C drive", ie. /dev/hda1
how do i find out what device points to the c drive? im sorry; im totally a novice here!! if you can help more, thanks a lot, but if you dont, thanks anyway for the response, i appreciate it! at least i have something to work with!
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Expert Comment

by:orz012999
ID: 2652400
I don't think anyones going to give you a straight answer for only 10 points.  Even though it is simple to access other drives.
0
 
LVL 2

Accepted Solution

by:
Reinier earned 10 total points
ID: 2652799
Sure, some-one will answer. What are you going to do with those points anyway?

Please change that /etc/fstab line to:

/dev/hda1 /dos_c_drive vfat defaults 0 0

The "vfat" will make you see long filenames (see "man mount" and "man fstab") and the two zero's tell not to include this filesystem in backups (see "man dump") and not to check this filesystem at boot (see "man fsck"). You are free to choose any other mount point instead of /dos_c_drive, but make sure the directory you choose exists before your try to mount.

Now, as root, issue a "mount /dos_c_drive". Only after that you will be able to cd to /dos_c_drive and see the contents of "C:".
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2652828
Oh, yes, and from now on the C: drive will be mounted every time you boot linux. If you don't want that you can change "defaults" to "defaults,noauto".

Do you have other users on that system?
If you want all users to be able to mount C: you could add "user" to this option field. For further options see "man mount". Go read about the "uid=xxx", "gid=xxx" and "noexec" options.
0
 

Author Comment

by:peas
ID: 2653407
Thanks a lot rainier! I really appreciate you taking the time to help out

I dont have other users on there, but i want to look into the permissions stuff anyway.

Thanks again, also, mcrider!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question