I have an USB stick that I am using to install optional packages.
My problem is that sometime gets mounted as sda1 other times as sdb1.
This is a bit of a problem and I am trying to use the fstab.add feature of Merlin's version to mount the usb stick by UUID.
I've created a /jffs/config/fstab.add file, with the content below, but it does not seem to solve my problem. I suppose that my fstab.add file is not correct.
Beside this, I have another USB HDD with 2 partitions that also gets switched sometimes. Since I am using this HDD for my transmission download, this is quite problematic.
The list of available config overrides:
* dnsmasq.conf
* vsftpd.conf
* pptpd.conf
* dhcp6s.conf
* hosts (for /etc/hosts)
* smb.conf
* minidlna.conf
* profile (shell profile, only profile.add suypported)
* upnp (for miniupnpd)
* radvd.conf
* fstab (only fstab supported, remember to create mount point
through init-start first if it doesn't exist!)
There is no support for fstab.add, only a full replacement in the form of fstab. The reason is that the firmware does not create an fstab file, so there is nothing to append to.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
The Following User Says Thank You to RMerlin For This Useful Post:
A reboot or a 'mount -a' should mount the drives as configured in the fstab file.
Beside the mount point switching issue, due to the fact that my HDD is NTFS formatted, I was experiencing some problems with transmission daemon not being able to find the download directory on the drive. I decided to delay the transmission daemon starting and I did the following:
1. Remove the x permission of the "/opt/etc/init.d/S88transmission" script. 2. Create /jffs/post-mount script:
Swap is indeed a very useful feature, especially when you are transferring large quantities of data, like me.
Usually you will use a whole partition of a hard disk for swapping. However, with the 2.6 Linux kernel, swap files are almost as fast as swap partitions, although I recommend using a swap partition.
The beginning(first cylinders) of a HDD is the best place for a swap space, on any OS. So you need to make a partition of 256 or 512 MB and leave it raw(not formated).
After that run the mkswap command:
Code:
mkswap /dev/sdx1
Find the UUID of that swap partition with blkid and test it:
Code:
swapon UUID="swap_partition_UUID"
Verify it with free command.
If is working add the command swapon to init-start.
The Following 3 Users Say Thank You to Serpent For This Useful Post: