jkreski wrote: ↑
Thu Jan 04, 2018 1:39 pm
The /etc/fstab file that that was created after it was mounted on reboot was:
proc /proc proc defaults 0 0
/dev/mmcblk0p6 /boot vfat defaults 0 2
/dev/mmcblk0p7 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
#/dev/sda6 /dev ntfs-3g auto,nofail,rw,default 0 0
That's the same fstab as you posted above. That disk utility doesn't do anything to fstab, it uses it's own config data, it's an auto mount tool for the desktop.
Incidentally, the commented out line you have for /dev/sda6 is bad, really bad. You've specified the mount point as /dev It would probably fail, but if it didn't expect all sorts of weird and interesting stuff to happen as all the device nodes become invisible.
There must be some variant of a Windows PATH command?
Yes, but PATH doesn't do what you seem to think it does. PATH (the PATH env variable on linux) tells the shell where to look for programs not where to install them.
Looking back, if I interpret your first post correctly, what you want is to booth the PI from the USB drive not to boot from SD card and use a mounted USB HDD?
If so, you're probably going about things the wrong way. I've not used USB boot so hopefully someone who has will correct any mistakes.
As I understand it, once you've set the USB boot flag you take out the SD card, attach the USB device and boot. The PI expects the USB drive to be partition and formatted in the same manner as the SD card would be: first partition is fat32 and the boot partition, second etx4 and has the system. Other partitions may exist beyond that but will be ignored until you configure the system to do something with them.
For your desired use case, you need to either install raspbian to the USB drive as you would to an SD card (which will destroy any data already on that drive) or copy the existing system to the linux partition on that drive and (re)configure an SD card so while the PI boots from that, it uses the USB device in place of the normal system partition.
See here for the USB boot option: https://www.raspberrypi.org/documentati ... des/msd.md
This looks like a good bet for the second option: viewtopic.php?t=44177
Disclaimer: I've not used either of these methods and make sure you know what you are doing and have backed up your data before you start making changes to partitions on your USB drive.