Hi Kamoj,Changes in kamoj-addon beta version 2023-07-27 5.5b33
---------------------------------------------------------------
- entware_install.sh : Fixed to work again. Tested with R7800 only. See FAQ.txt!
NOT fixed for R9000 yet.
Please PM me if still any problem. (@Philip Stevenson)
- Cleared up and corrected a more bugs in the code that mounts/unmounts USB and SATA-devices.
(hotplug2.mount, hotplug2.umount, cmddlna, green_download.sh)
- FAQ.txt updated. You must read about Entware if you're gonna use entware_install.sh .
- Minor changes
EDIT: 2023-07-27 21:20: FAQ.txt updated
Not entirely sure this is related to the mounts/unmounts but figured I would start here with question/issue.
** Summary ** On a Netgear R9000 /dev/sda1 will not mount as /mnt/sda1.
Details
=====
For some reason after fully resetting and wiping ... the first (and only) USB flash drive plugged into USB port 1 is mounted as /mnt/sdg1 and I can't figure out to have it as /mnt/sda1 other than temporarily by executing mount via telnet... which has to be done after each reboot.
I have the R9000 and have completely reset/wiped it multiple times in past few days trying to get /dev/sda1 USB flash drive to mount as /mnt/sda1 (/tmp/mnt/sda1). It mounts as /mnt/sdg1 (/tmp/mnt/sdg1) if it's in the USB 1 port and /sdh1 if it's in the USB 2 port. I can manually mount it via telnet with "mount /dev/sda1 /mnt/sda1" but it does not persist on reboot.
I have tried fully unisntalling, removing settings (for add-on) then resetting router and using old stock Netgear version, then resetting and going to Voxel version. I used the commands from previous posts and also using hardware switch (pin hole) and via UI reset. These are the commands used:
nvram default
nvram commit
ngmtd="$(awk -F: '/"netgear"$/ {print $1}' /proc/mtd | grep mtd)" [ -n "$ngmtd" ] && flash_erase /dev/"$ngmtd" 0 0
reboot
I have done this with USB in port 1 entirely time and done it without USB and adding the flash drive to port one after router is up and running.
I have tried with and without using ready SHARE setup to share the root of the USB flash drive. The USB device is named "optware" and I have tried it with multiple formats (FAT32, ext3, ext4... even NTFS).
I have also run (multiple times) the commands you posted to reset USB mounting points:
nvram show | awk -F= '/green_download_path/ {print $1}' | xargs -n1 nvram unset
nvram show | awk -F= '/^shared_usb_folder/ {print $1}' | xargs -n1 nvram unset
nvram show | awk -F= '/usbDeviceName/ {print $1}' | xargs -n1 nvram unset
nvram show | awk -F= '/^node[0-9]*/ {print $1}' | xargs -n1 nvram unset
nvram commit
reboot
Right now it is formatted ext4 (MBR) per Voxel's instructions. I also enabled ready Share and call share "optware" to share out the root (U:\ in router UI) as "optware". /dev/sda1 exists but maps to /mnt/sdg1 (/tmp/mnt/sdg1) and 2nd mount exists for /mnt/optware (/tmp/mnt/optware). If I create directly for sda1 in /mnt and then run command to mount /dev/sda1 as /mnt/sda1 it will work fine -- until reboot.
So my questions are:
1) Where can I configure a mount that will persist on reboot
or
2) Are there hidden places where /sdb1, /sdc1, /sdd1, /sde1, /sdf1 are saved from the past that does not get removed by the nvram commands above?
I was going to use fstab and /etc/fstab is empty -- and I realized I am way out of my depth with all the messy duplicated tmp mounts and non-obvious setup/boot activities where settings or config could be hidden. I have no idea what is "source" and what is copied version of files, when things run at boot and what needs to be edited or if it's OK to edit... etc.
Ideally I would like to correct the issue so after fully resetting the first USB flash drive plugged into USB port 1 becomes /mnt/sda1.
If not, is there a place where I can manually add a command to mount /dev/sda1 /mnt/sda1 on boot that persists on reboot?
More Info
=======
Here is the info from the add-on for the USB device:
Router Information > USB Device
-------------------------------------
USB Device 0.0 % 0.001 / 14.313 GB USB1 (sdg1): optware, USB DISK 3.0 (USB DISK 3.0) USB3.20. File system:ext3. Free: 13.573 GB
System Information > USB1 info
-------------------------------------
CONNECTED_USB_DEVICES='sda'
USB_BUS='2'
USB_CAT='3.20'
USB_DEV='sda'
USB_DEVID='/dev/sda1'
USB_FILESYS='ext3'
USB_FREEMEM='13.573 GB'
USB_IVL='0ms'
USB_LABEL='optware'
USB_MANUF=' '
USB_MODEL='USB DISK 3.0'
USB_MOUNTID='sdg1'
USB_MOUNTING='/tmp/mnt/sdg1'
USB_PARTITION_NO='1'
USB_PORT='USB1'
USB_PROD='USB DISK 3.0'
USB_PWR='504mA'
USB_SERIAL='071C253441137A61'
USB_SPEED='5000 Mbps'
USB_TOTMEM='14.313'
USB_TOTMEM_B='15007760.000'
USB_USEDMEM='0.001'
USB_USEDMEM_B='652.000'
USB_USEDPCT='0%'
USB_UUID='5297a6cf-0044-d342-afc6-ca33ef0795b7'
USB_VENDOR=''
USB_VOLUME='optware'
Telnet > df -h
----------------
Filesystem Size Used Available Use% Mounted on
devtmpfs 503.1M 0 503.1M 0% /rom/dev
tmpfs 512.0k 0 512.0k 0% /dev
ubi0verlay_volume 49.7M 11.2M 35.9M 24% /overlay
ubi1lexmediaserver 257.3M 24.0k 252.5M 0% /tmp/plexmediaserver
overlayfs:/overlay 49.7M 11.2M 35.9M 24% /
/dev/sda1 14.3G 652.0k 13.6G 0% /tmp/mnt/sdg1
Any input is helpful.