What's new

[fix] mount drive correct from first time

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

K

krabs

Guest
Like the title said prevent hotplug from failing to mount at the first try!

examples

hotplug[533]: USB /dev/sda1(ntfs) failed to mount at the first try!
hotplug[528]: USB /dev/sda2(ext2,ext3) failed to mount at the first try!


Create mount directories of partitions in init-start(jffs/scripts). If partitions are labeled give the directories the name of the partitions.
The router normally automount partions with a label under /tmp/mnt/<label>

Code:
mkdir -p /tmp/mnt/<label> or partion(sda1,sda2)
mkdir -p /tmp/mnt/...


Check mount options

Code:
 # cat /etc/mtab
/dev/sda2 /tmp/mnt/entware ext2 --> rw,nodev,noatime 0 0
/dev/sda3 /tmp/mnt/data ext2    --> rw,nodev,noatime 0 0

Create fstab(jffs/configs)

while it is possible to use labels or uuid's in fstab. I'm using the "device path" because it's not working properly for me.
For a reason I don't know I'm getting Buffer I/O error's on device mtdblock4,6 when using UUID's,labels to mount partition or even with the command "blkid".
If you have more then one drive you probably need, have (labels,uuids) to prevent linux from mounting on a first-come first-serve basis(switching between sda,sdb)


Code:
# <file system> <dir>                   <type>  <options>       <dump>  <pass> 
/dev/sda2       /tmp/mnt/<label>,part   ext2    rw,nodev,noatime   0       0                                                  
LABEL=          
UUID=

Reboot and partions should be mounted at first try!
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top