What's new
  • 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!

N66U Mount Point

akashi

Occasional Visitor
I have the latest Merlin firmware installed and have an app called aria2 running on entware with an ext2 formatted 32GB USB flash drive.

Everything was running great until I attached a 160GB external USB hard drive formatted as ext3. This drive is now assigned as sda whereas this was assigned to the 32GB drive before.

The entware app is not working and I have no idea how to change the external hard drive to sdb.

Any help will be appreciated, thanks.
 
I have the latest Merlin firmware installed and have an app called aria2 running on entware with an ext2 formatted 32GB USB flash drive.

Everything was running great until I attached a 160GB external USB hard drive formatted as ext3. This drive is now assigned as sda whereas this was assigned to the 32GB drive before.

The entware app is not working and I have no idea how to change the external hard drive to sdb.

Any help will be appreciated, thanks.

If you give the new drive/partition a label it will be mounted under that name. You can set the label with the "mkfs" (if creating a new file-system) or "tune2fs" (for existing file-systems) commands.

So, you could label the 160GB drive as "blah" and it would be mounted as "/tmp/mnt/blah" which would make "/tmp/mnt/sda" available.

I've found labels or UUID to be a more reliable way of differentiating partitions with AsusWRT.
 
Many thanks Nullity.

I labelled the external USB drive but unfortunately the system is still assigning /dev/sda to the external USB HDD and /dev/sdb to the USB flash drive.

This if my mount output:

ASUSWRT-Merlin RT-N66U_3.0.0.4 Thu Nov 20 18:56:38 UTC 2014
admin@ASUS:/tmp/home/root# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /tmp/mnt/sdb1 type ext2 (rw,nodev,noatime)
/dev/sda1 on /tmp/mnt/USBHDD type ext3 (rw,nodev,noatime,data=ordered)


I haven't tried swapping the drives on the USB ports as I am away.
 
I solved the problem by labelling both my storage devices and reinstalled entware. Everything is working again.

One other question, which command below is correct:

chmod -R 777 /dev/sda1 or chmod -R 777 /tmp/mnt/LABEL

Thanks.
 
I solved the problem by labelling both my storage devices and reinstalled entware. Everything is working again.

One other question, which command below is correct:

chmod -R 777 /dev/sda1 or chmod -R 777 /tmp/mnt/LABEL

Thanks.

The latter.

/dev is the block-device, the raw bits of that physical partition of the drive, or something like that.

/tmp/mnt, /mnt, etc are those bits as understood by the file-system, which present you with a human-readable file/directory interface.

Something like that...
Manpages have an incredible wealth of information that is hugely more reliable than me. It's worth your time to get accustomed to them if you plan on continuing to play with Unix/Linux.
 

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!
Back
Top