Using the espressobin with the latest release, it has a built in SATA controller and cable for a drive. I have been using that drive with SAMBA for some time. Today I added NTFS drivers and opkg installed a NTFS USB kernel and driver but now I have two mounted drives with the same ID /mnt/sda2 The first drive, the ext4 dual partitioned has a ext4 swap partition (/mnt/sda1) and the main data partition (/mnt/sda2). When I plugged in my NTFS drive into the USB outlet, it got assigned as /mnt/sda2 so now I have a duplicate. How do I fix?
root@OpenWrt:~# fdisk -l
Disk /dev/mtdblock0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 4.56 TiB, 5000981078016 bytes, 9767541168 sectors
Disk model: ST5000DM000-1FK1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 93E2D20F-5E10-3CD5-D21F-BB4C9C113531
Device Start End Sectors Size Type
/dev/sda1 2048 2047999 2045952 999M Linux swap
/dev/sda2 2048000 9767536063 9765488064 4.6T Microsoft basic data
Disk /dev/mmcblk0: 28.99 GiB, 31104958464 bytes, 60751872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x15828375
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 35327 33280 16.3M 83 Linux
/dev/mmcblk0p2 36864 561663 524800 256.3M 83 Linux
Disk /dev/sdb: 4.56 TiB, 5000981077504 bytes, 9767541167 sectors
Disk model: Expansion Desk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 00BB9638-0151-4FD4-BDB4-522E2F35B3B2
Device Start End Sectors Size Type
/dev/sdb1 34 262177 262144 128M Microsoft reserved
/dev/sdb2 264192 9767540735 9767276544 4.6T Microsoft basic data
Partition 1 does not start on physical sector boundary.
root@OpenWrt:~#
root@OpenWrt:~# ls -al /dev/sd*
brw------- 1 root root 8, 0 Jan 1 1970 /dev/sda
brw------- 1 root root 8, 1 Jan 1 1970 /dev/sda1
brw------- 1 root root 8, 2 Jan 1 1970 /dev/sda2
brw------- 1 root root 8, 16 Jan 1 1970 /dev/sdb
brw------- 1 root root 8, 17 Jan 1 1970 /dev/sdb1
brw------- 1 root root 8, 18 Jan 1 1970 /dev/sdb2