There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Mounting....


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
dileep's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2003
30-Oct-2003, 03:52 AM #1
Mounting....
I am new bee to Red hat Linux 9 and I installed it on P IV 1.7 Ghz with 256 MB RAM.
Its a clean install and I want to mount the DOS partitions as well.

For this, I logged in as root

and created the required folders in /mnt/Windows

If I want to mount C: in Linux,

I typed the following command..

# fdisk -l
#mount /dev/hda1 /mnt/Windows/C ( C is created prior to this command)

This also works fine and I can share the files.

The PROBLEM is , whenever I shutdown, and start my system, I need to type these commands everytime. Is there any way (like autoexec.bat in DOS) such that they execute while loading Linux?


Thanks in Advance

regards
Dileep
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
30-Oct-2003, 04:20 AM #2
Yes. Linux maintains a list of filesystems in the file /etc/fstab. If you add entries for your Windoze filesystems, they will be mounted automatically at boot. For example, on my system, I typically mount my C: and D: Windoze drives with the following entries in /etc/fstab:
Code:
/dev/hda1        /WIN98C          vfat        defaults         1   0
/dev/hda5        /WIN98D          vfat        defaults         1   0
Hope this helps.
__________________
The slowest component still sits at the keyboard.
dileep's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2003
30-Oct-2003, 04:44 AM #3
Thanks for the reply, I'll try and try to send the result.

Thanks once again
dileep's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2003
30-Oct-2003, 12:53 PM #4
It WORKED!! WORKED !!

Thank you CodeJockey
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
31-Oct-2003, 01:29 AM #5
You're welcome -- and nice work updating your /etc/fstab file. You can find out more about mounting filesystems on the mount man page; the fstab man page describes more details about the format of the /etc/fstab file. You access man pages by using the man command and specifying the page you are interested in, such as:

man mount
man fstab
etc.

Hope this helps.
__________________
The slowest component still sits at the keyboard.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:06 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.