LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting hard disk through fstab (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-hard-disk-through-fstab-112171/)

aiims1777 11-04-2003 05:07 AM

Mounting hard disk through fstab
 
I have Red Hat Linux 9.Whenever I change the settings in my /etc/fstab file by adding a line to mount my other partitions like windows, during bootup I get a failure message saying mount point 0( or 1) does not exist.Still the mounting takes place and I can see my windows partition using Nautilus.
Can someone help me send away these failure messages at bootup?Thanks.

koyi 11-04-2003 05:22 AM

post your /etc/fstab here.

You mean you can see the files in your windows partition?

denominator 11-04-2003 05:22 AM

where is the windows partition mounted that you can see in nautilus? i think you've added an extra 0 (or 1) somewhere in the line and linux is trying to mount the partition there as well. post the contents of your fstab here, so someone can take a look at it.

aiims1777 11-05-2003 02:59 AM

My windows partition is /hda1 and I have a directory called /mnt/Windows which I created to use as a mount point. My /etc/fstab entry for this reads
/dev/hda1 /mnt/Windows vfat noauto,user,owner 0 0
At boot the error message i get reads
Mounting local filesystems : mount : mount point 0 does not exist : no mount point defined ( FAILED)
I tried changing the last field to 1 0 or 2 0 or 2 1. Each time the error message comes and mount point 1 (or 2) does not exist comes in the message.
Booting, however proceeds and I come to the GNOME desktop. On opening /mnt/Windows in Nautilus, I can navigate all my windows partition files.
Can you tell me what values to set for the last field in fstab so that the boot error message does not come?

denominator 11-05-2003 03:17 AM

those last two values actually control two things

first number - whether the filesystem should be backed up or not 1 is yes 0 is no

second number - how frequently fsck is run on the filesystem. Its probably a good idea to leave the windows filesystem alone, so leave this option as 0.

I cant understand why it gives that error, the only thing i can think of right now is to make sure that the last values don't get shoved to the next line. This could happen if you tried editing the file with line-wrapping enabled and spurious newlines got inserted. Hang around and someone should give you better advice

aiims1777 11-05-2003 05:36 AM

Problem solved!
Thank you Denominator.
I was editing my fstab with text wrapping enabled and so the line was breaking on to the next line. Tip for others with such problems Click Edit --Preferences--Wrap and uncheck the Enable text wrapping box. Then write your text on a single line.
Thanks again, Denominator.


All times are GMT -5. The time now is 01:18 AM.