Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard netgear network printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Mounting....

Reply  
Thread Tools
dileep's Avatar
Junior Member with 9 posts.
 
Join Date: Oct 2003
30-Oct-2003, 04: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, 05: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, 05: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, 01: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, 02: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

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
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 04:30 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.