Computing.Net > Forums > Unix > File Creation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

File Creation

Reply to Message Icon

Name: Arun Kumar
Date: September 17, 2002 at 00:03:51 Pacific
OS: LINUX/WINDOWS
CPU/Ram: p3
Comment:

If I am doing a file write program in c under LINUX.. can I create the file in D drive of the pc instead of the linux user area.




Sponsored Link
Ads by Google

Response Number 1
Name: TaaKie
Date: September 17, 2002 at 01:54:28 Pacific
Reply:

Yes you can.
First you have to mount your D: drive on an empty directory, for instance: mkdir /my_d_drive
mount /my_d_drive /dev/hdb (or whatever drive it is.)
You can get the D drive automaticly by inserting a line in the /etc/fstab file.
If you do make sure you give with the mount option "msdos"

Hope it helps,
TaaKie


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: File Creation

file creation date www.computing.net/answers/unix/file-creation-date/7242.html

Unix Shell Script Files www.computing.net/answers/unix/unix-shell-script-files/6215.html

Rename files older than 2 days www.computing.net/answers/unix/rename-files-older-than-2-days/4185.html