On Thu, 30 Aug 2018 01:29:32 -0700 (PDT), Ichrak Mansour
> declaimed the
>I'm using the Beaglebone in IoT mode with the latest debian image.
>I tried to modify the name of the Beaglebone disk and modifying its icon,
>as I need to modify start.htm, when I try to modify it or copy an image, an
>alert is displayed this disk is write-protected,
>so how can I remove this protection? and how can Ichange start.htm?
On Thu, 30 Aug 2018 04:41:33 -0700 (PDT), Ichrak Mansour
> declaimed the
Two posts, only three hours apart in the middle of the night, asking
the same question. The group isn't a real-time help line -- after making a
post you should give 12-24 hours before expecting a response.
As for the question... If I understand you, you want to change the
"disk" ("Beaglebone Getting Started") that shows up on Windows when you
connect to a BBB using a USB cable.
About 4 years ago, that was a real FAT partition, and modifications
There is no longer a FAT partition on the OS images. It is itself an
"IMG" file that gets mounted as a read-only filesystem.
To modify the contents you'll have to modify the IMG file itself. I tried
the long/hard route, but that wasn't usable.
use sftp to copy the proper .img from /var/local/ to my Windows box
use etcher to write the .img to a small SD card (1GB)
(had to reboot since etcher seems to have totally removed the card readers
from my system display)
insert SD card, edit files on it
use Win32DiskImager to /read/ the SD card to .img file (tried using it to
write, but some utility gave me some message about trying to change MBR and
use sftp to copy the new .img file to the BBB -- this failed as the new
image was 1GB and too large for the space on the eMMC. It might have worked
if I used an ancient 128MB "transflash" card instead.
So... with some google work
I managed to do this sequence ON THE BBB
debian@beaglebone:~$ sudo losetup -f
debian@beaglebone:~$ sudo losetup -P /dev/loop0
debian@beaglebone:~$ sudo mkdir /media/usbstuff
debian@beaglebone:~$ sudo mount -t vfat /dev/loop0p1 /media/usbstuff
debian@beaglebone:~$ sudo vim /media/usbstuff/test.txt
<some edits to put stuff in the file>
debian@beaglebone:~$ sudo umount /media/usbstuff
debian@beaglebone:~$ sudo losetup -d /dev/loop0
There are probably some mount options that would let the user account
modify the files but for this test I didtn't bother looking for them.
Reboot the BBB, and I get this on Windows:
Volume in drive I is BEAGLEBONE
Volume Serial Number is C15E-456E
Directory of I:\
05/17/2018 03:13 PM <DIR> App
05/17/2018 03:13 PM <DIR> Drivers
05/17/2018 03:13 PM <DIR> Docs
05/17/2018 03:13 PM <DIR> scripts
05/17/2018 03:13 PM 288 autorun.inf
05/17/2018 03:13 PM 41,174 LICENSE.txt
05/17/2018 03:13 PM 32,493 README.htm
05/17/2018 03:13 PM 428 README.md
05/17/2018 03:13 PM 32,493 START.htm
08/30/2018 04:01 PM 105 test.txt
6 File(s) 106,981 bytes
4 Dir(s) 3,434,496 bytes free
This is just a nonsense file to see if
I can modify the USB visible virtual partition
And edit more
Wulfraed Dennis Lee Bieber AF6VN