Linksys e8450 ubi / belkin rt3200
OpenWRT Version 23.05.0
Usb 2.0
I am following this guide to have a ntfs usb be the main storage for the os (i dont actually need the os itself, just extra packages + transmission and its gigabyte files)
The usb is already formatted to ntfs and automounts at boot using "network shares" (or samba) to /dev/sda but i used a yt guide, not official guide to do this.
I am using ntfs so i can access transmission webui and move files into my windows pc.
I would actually use ext4 if i can freely move transmission files into my pc.
I dont want to corrupt my system so can i get corrections on the exact commands to use?
Starting at 1. Preperation I will change the ext4 to ntfs and leave the rest of the code alone right?
opkg update
opkg install block-mount kmod-fs-ext4 e2fsprogs parted
parted -s /dev/sda -- mklabel gpt mkpart extroot 2048s -2048s
In the next step i have to configure fstab to mount rootfs_data.
DEVICE="$(block info | sed -n -e '/MOUNT="\S*\/overlay"/s/:\s.*$//p')"
uci -q delete fstab.rwm
uci set fstab.rwm="mount"
uci set fstab.rwm.device="${DEVICE}"
uci set fstab.rwm.target="/rwm"
uci commit fstab
Do i replace anything on here? I think i delete ${device} and replace it with the UUID of the usb. Or do i put the UUID between { } and only delete the word "device"
In a later step i get this
eval $(block info ${DEVICE} | grep -o -e 'UUID="\S*"')
eval $(block info | grep -o -e 'MOUNT="\S*/overlay"')
uci -q delete fstab.extroot
uci set fstab.extroot="mount"
uci set fstab.extroot.uuid="${UUID}"
uci set fstab.extroot.target="${MOUNT}"
uci commit fstab
Do i delete the word between { } and put in the item? What is device? What is mount? I thought we were using /dev/sda as the default?
I assume all the other commands will work with copy paste