What's new

Usb hdd mount problem

  • 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!

kiesa1231

Regular Contributor
Hello all i installed entware in mnt/sda1 But asus somtimes mount after turn on to mnt/sdb1.Hdd file system fromated to ext3 only one partition.How setup to force mount only mnt/sda1 on first usb port or second port?Now hdd connected to usb port 1.Please help thanks
 
It is well known "feature". Use labels to access usb disks.

I'm curious about the labeling. I'm not familiar with the linux environment, and I have read that a script would need to be executed upon the router bootup to assign the label to the drive.

If the drive is tied to /dev/sda1 upon making the labeling script, and then after a reboot the drive is then assigned to /dev/sdb1, how is the script now going to point to the proper drive?

Perhaps I misinterpreted the script syntax, but is there a variable used to obtain the drive? How can the script distinguish between one USB device and another if I were to swap a different USB drive in the same slot?
 
I think you have your wires crossed there. You only need to label (unique,no spaces) once. Mounts are then tmp/mnt/Label instead of dynamic tmp/mnt/sd..
 
The easiest way to label a disk is directly from terminal:
Code:
tune2fs -L "[COLOR="Red"]desired_label_here[/COLOR]" /dev/sda1
reboot
To remove label
Code:
tune2fs -L "" /dev/sda1
reboot
 

Similar threads

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