LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   /mnt/card disappears! (https://www.linuxquestions.org/questions/linux-software-2/mnt-card-disappears-253022/)

daihard 11-09-2004 08:11 PM

/mnt/card disappears!
 
I'm using Turbolinux 10 Desktop. I've noticed a very strange thing happening... for some reason, the directory I created for mounting an SD card disappears at reboot!

I always name it /mnt/card. I have the following entry for it in /etc/fstab:

/dev/sda1 /mnt/card vfat noauto,user,exec 0 0

As far as the functionality is concerned, I can always mount the SD card by typing "mount /mnt/card" as myself. I can also read/write from the card. The only problem is, I have to re-create the directory each time I reboot the machine!

Have you guys seen anything like this before? If so, what can I do to fix this problem?

Thanks,
Dai

jkobrien 11-10-2004 04:28 AM

Hi,

Not sure if it's related, but I have a similar problem with my zip drive. The workaround for me, is to make sure that there's a disk in the drive when I reboot.

John

daihard 11-10-2004 12:18 PM

Quote:

Originally posted by jkobrien
Hi,

Not sure if it's related, but I have a similar problem with my zip drive. The workaround for me, is to make sure that there's a disk in the drive when I reboot.

Thanks for the reply. I'll try and see if that makes any difference.

Matir 11-10-2004 12:42 PM

/mnt isn't any sort of unusual (non-persistent) partition, is it? (i.e., ramdisk)

daihard 11-10-2004 02:25 PM

Quote:

Originally posted by Matir
/mnt isn't any sort of unusual (non-persistent) partition, is it? (i.e., ramdisk)
No, it's not. It is within the root partition.

Matir 11-10-2004 02:44 PM

That is VERY odd. Do other directories in /mnt persist properly?

daihard 11-10-2004 02:48 PM

Quote:

Originally posted by Matir
That is VERY odd. Do other directories in /mnt persist properly?
They do. I also created /mnt/xp to smbmount a directory on my XP box. That one has the exact same permissions and ownership (i.e. root), but it never disappears. :eek:

Matir 11-10-2004 02:52 PM

Just for kicks, try maybe /mnt/sdcard and see if it persists. I know you want /mnt/card, but let's just see if we can figure out that cause.

daihard 11-10-2004 03:03 PM

Quote:

Originally posted by Matir
Just for kicks, try maybe /mnt/sdcard and see if it persists. I know you want /mnt/card, but let's just see if we can figure out that cause.
Thanks for the suggestion. I will try that once I get home. (It's my home machine.)

Matir 11-10-2004 03:20 PM

No problem. If this solves the problem, I have to wonder if some script somewhere rm's /mnt/card. Can't imagine why, but it's worth checking.

daihard 11-10-2004 08:04 PM

Quote:

Originally posted by Matir
No problem. If this solves the problem, I have to wonder if some script somewhere rm's /mnt/card. Can't imagine why, but it's worth checking.
I found something very interesting.

First, renaming the directory to /mnt/sdcard per se did not solve the problem. However, that meant /etc/fstab did not have the correct entry anymore (since it still has /mnt/card as the mount point), and that seems to have been it!

Apparently, the following line in my /etc/fstab was the culprit:

/dev/sda1 /mnt/card vfat noauto,user,exec 0 0

Why? I have no idea. Once I renamed it to /mnt/sdcard in /etc/fstab to corrrectly match the new name, then /mnt/sdcard started disappearing again...

Matir 11-10-2004 08:34 PM

Some sort of software removing mount points? Weird.


All times are GMT -5. The time now is 11:56 AM.