PDA

Bekijk de volledige versie : fstab - automount



thE_29
03-10-2007, 18:24
Yesterday i read the changes on the newest firmware and i found this entry:
21. Added support for /etc/fstab before automount

But who is it working?

I have this entry for my usb dongle:
/dev/discs/disc1/part1 /tmp/dongle vfat defaults 0 2

The directory dongle exists! But always when i am putting the dongle in the usb slot, it mounts on this directory:
/dev/discs/disc1/part1 on /tmp/harddisk type vfat (rw,noatime)

Who do i have to configure the fstab file or where to place or what to do? When i search the forum for the word fstab, there arent any usable threads or manuals for that..

plz help :)
thx alot!

DrChair
03-10-2007, 19:27
i'm succesfully using fstab in my router, but my devices are always connected, so it only uses it during reboots.

Anyhow, the according to the info I found (using babelfish on the russian-forum), you should use the /dev/scsi/... instead of the /dev/discs/... like this:



/dev/scsi/host0/bus0/target0/lun0/part1 /tmp/dongle vfat defaults 0 2


host0 is disc1
host1 is disc2

So it is either this, or fstab is only used while booting.

thE_29
03-10-2007, 19:48
It is /dev/scsi/host1/bus0/target0/lun0/part1 /tmp/hump msdos defaults
0 2 but it would not work...

When i write the cmd in the shell, the drive is mounted corretctl.. Maybe its just working on startup :(

thE_29
04-10-2007, 11:05
Another question is, when i write the file /etc/fstab will it be there after a reboot?!

Maybe i have to put it into /opt/etc?


And, when it just mounts on startup, then the text is wrong:
"21. Added support for /etc/fstab before automount"

Here it says before automount and automount is when i plug into a usb dongle or a hdd and not on startup!

DrChair
04-10-2007, 17:20
Another question is, when i write the file /etc/fstab will it be there after a reboot?!


If you do a :


echo "/tmp/etc/fstab" >> /tmp/local/.files


and save it to the flash:



flashfs save && flashfs commit && flashfs enable


it will be there after a reboot.



And, when it just mounts on startup, then the text is wrong:
"21. Added support for /etc/fstab before automount"

Here it says before automount and automount is when i plug into a usb dongle or a hdd and not on startup!

Depends on how you read it...

During startup, after initialising the usb-driver, it also performs an automount, to mount devices that are present at boot time...