Log in

Bekijk de volledige versie : USB disk mount order



Kenny
22-09-2008, 15:38
Hello, i've got an usb pendrive and an external hd for storage, both attached to the asus. The pendrive has all the system stuff and should be mounted before the external hd, but when i reboot the router, it mounts the hd first and then the pendrive, so i cannot access to my apps and services. Is there a way to fix this?

raas
22-09-2008, 15:59
Hi Kenny,

you can control this in fstab (/etc/fstab)
See the example below:


#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /mnt ext3 rw,noatime 1 1

as for the 'initializing' -order.
In my experience the bottom-usb-port is accessed first (/dev/discs/disc0), then, the upper-usb-porst is access last (/dev/discs/disc1)

HTH

Kenny
22-09-2008, 16:36
hi, this is my fstab:

#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1

I've tried switching usb ports, no luck

al37919
22-09-2008, 17:24
if both devices are always plugged in your system, and hdd is always detected first, why not use for the flash:

/dev/discs/disc1/part1 none swap sw 0 0
/dev/discs/disc1/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc1/part3 /tmp/harddisk ext3 rw,noatime 1 1

Kenny
22-09-2008, 18:19
thank you very much, it works! :)