Click to See Complete Forum and Search --> : auto execute mount on startup


gcb
11-13-2001, 01:06 PM
i want to mount my /dev/hda1 partition (win98) on startup...

i tried to put 'auto' instead of 'noauto' in my fstab, but it gives all kinds of errors on startup...so, i was wondering...

is there anyway i can run the command:

mount /dev/hda1 /mnt/windows

during the startup procedure...like autoexec.bat does for dos?

sixfeetsix
11-13-2001, 01:18 PM
Can you mount the partition once your Linux has finish starting up and you are logged in?

mrBen
11-13-2001, 01:20 PM
What is the full line you have in your /etc/fstab and what are the errors you get?

gcb
11-13-2001, 01:23 PM
Originally posted by sixfeetsix:
<STRONG>Can you mount the partition once your Linux has finish starting up and you are logged in?</STRONG>


yes...once it's booted & i'm logged in, i can mount the partition

sixfeetsix
11-13-2001, 01:34 PM
Like MrBen wrote, print your line in fstab since it's the best way to automount the partition

Here's mine (FAT32 partition)
/dev/hda3 /mnt/windows vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0

gcb
11-13-2001, 02:01 PM
Originally posted by sixfeetsix:
<STRONG>Like MrBen wrote, print your line in fstab since it's the best way to automount the partition

Here's mine (FAT32 partition)
/dev/hda3 /mnt/windows vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0</STRONG>


/dev/hda1 /mnt/windows vfat noauto,user,exec,umask=0,codepage=850,iocharset=is o8
859-1 0 0