04-24-2011 07:33 PM - edited 04-24-2011 07:56 PM
I figured out why my system was NOT shutting down properly.
The mount of /opt was stuck hmm maybe the order i did it in?
/usr/local/etc # mount /tmp/usbmounts/sda2 -o remount,rw
/usr/local/etc # mount -o bind /tmp/usbmounts/sda2/opt/oleg-optware /opt
/usr/local/etc # mount
/dev/scsi/host0/bus0/target0/lun0/part2 on /tmp/usbmounts/sda2 type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /tmp/usbmounts/sda1 type ufsd (rw,nodiratime,nls=utf8,nls=utf8,uid=0,gid=0,fmask
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
after power button pressed i was left in telnet (power on screen off)
/usr/local/etc # mount
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
I had to use
/usr/local/etc # umount /opt
and then it SHUT DOWN ... odd.
Bodhi, not sure about the /opt. I just recal reading there is a limited number of writes (but large) to the ram.
I'd rather not over tax it
I would not have botherd but I did a install of samba and it sucked up like 40-50 meg or something..yikes!
I do not recall how much free space we have in thesystem unused.
/opt/etc # cat /proc/mtd
dev: size erasesize name
mtd0: 09e60000 00020000 "Partition_000"
mtd1: 01000000 00020000 "/"
mtd2: 008c0000 00020000 "/usr/local/Resource"
mtd3: 03c00000 00020000 "/usr/local/etc"
mtd4: 00ce0000 00020000 "Partition_004"
mtd5: 10000000 00020000 "disc"
/opt/etc # cat /proc/nandinfo
/opt/etc # cat /proc/meminfo
MemTotal: 120580 kB
MemFree: 1428 kB
Buffers: 208 kB
Cached: 24424 kB
SwapCached: 0 kB
Active: 9048 kB
Inactive: 21616 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 120580 kB
LowFree: 1428 kB
SwapTotal: 32 kB
SwapFree: 32 kB
Dirty: 28 kB
Writeback: 0 kB
Mapped: 8988 kB
Slab: 6840 kB
CommitLimit: 60320 kB
Committed_AS: 12068 kB
PageTables: 504 kB
VmallocTotal: 1048548 kB
VmallocUsed: 1436 kB
VmallocChunk: 1046560 kB
04-24-2011 09:30 PM
Your shutdown problem might have something to do with the hotplug. I don't think FAT+ hotplug will mount ext2 or ext3 automatically like fat32 or ntfs (it did not work with ext2 or ext3 for me)... So perhaps the hotplug umount attempt during shutdown caused problem? ... just a wild a guess:-)
I've installed optware and then samba2 successfully. I wrote scripts to automate these as much as I can. So far I got 2 scripts to automate optware and samba2 installation. The samba config file is too much trouble, because smb.conf must be modified manually, as you're reported.
For starter, I will upload a new bin pack with optware and samba2 installation scripts. Everybody can improve on these then it would be great :-)
After installing optware, nano, and samba2, I'm down to 18 MB free (was 54 MB).
04-25-2011 09:42 AM - edited 07-28-2011 02:08 AM
Installing Utilties on FAT+ Mod 2.23 FW by SEB (version April 17)
Download the binpack here (updated 04/26/11)
Download the binpack 1.1 here (updated 05/01/11)
Download the binpack 1.2 here (updated 05/03/11)
Download the binpack 1.3 here (updated 07/20/11)
Download bug fix to binpack 1.3 here (updated 07/22/11)
Installing Utilties on FAT+ Mod 2.23 (Mod FW by Seb_123, version April 17)
For use with FAT+Mod-2.23-binpack-bodhi-1.3.zip
Install Oleg Optware and BusyBox
- Use a USB drive (flash or HDD) formatted with FAT32
- Create a top level directory /bin on this USB drive
- Copy all files in this bin pack to the USB /bin directory
- Unplug all USB drives currently connected to the FAT+
- Power up the FAT+ and insert this USB drive. This USB drive will be mounted at /tmp/usbmounts/sda1
- Telnet into the FAT+. User name is root, no password necessary.
- Execute the optware installation
- When it's done, copy the autorun.sh (or merge the content if there is one already in /usr/local/etc). And
for convenience, also copy BusyBox binary. This autorun.sh start busybox FTP during
power ON. So it's recommended that both files are copied to /usr/local/etc/ as followed:
cp /tmp/usbmounts/sda1/bin/autorun.sh /usr/local/etc/
cp /tmp/usbmounts/sda1/bin/busybox-mipsel /usr/local/etc/
- Execute the mount command to check if /opt is now mounted
- Modify the /tmp/usbmounts/sda1/bin/smb.conf so that the line
interfaces = 192.168.0.51/24
matches the FAT+ IP address. Note that the FAT+ should be assigned a static IP address before
this so that Samba will work consistently. Whenever the FAT+ IP address changed, the smb.conf must be modified
to match the new IP, so static IP is best. There is also a line for workgroup, which can be left as is. If after installation, Samba
fails to share the USB drive(s), this workgroup should be looked at and adjusted to whatever the Windows workgroup is.
workgroup = WORKGROUP
- Execute the samba installation
- When it's done, the current USB drive is shared automatically under the share named "media". This is a directory
under /usr/local/etc. There are 3 symlinks in this share, usb-sda1, usb-sdb1, and usb-sdc1. Whenever a USB drive is plugged in,
it is automatically shared in that order. If a USB hub is used to connect more than 3 drives, then more symlinks
should be created to accomodate more USB drives, for example:
ln -s /tmp/usbmounts/sdd1 /usr/local/etc/media/usb-sdd1
and so on.
- Check the samba share if it appears on other PC in the network. On Windows, it should appear as
"media on FAT+ (VENUS)". Visit this share, and all USB drives will shown as shared folder usb-sda1, usb-sdb1,....
- Note that the FAT+ mini USB port will always get the first letter sda1 if a Free Agent GO drive is in that slot during power ON (does not
matter how many drives are connected). But if it is inserted later, then it will get sdb1, sdc1,... depending on how many USB drives were already
Setup Command Paths for nano and busybox (added in 1.2)
- Change directory to the USB drive bin directory and execute the script. NOTE: this script must be executed at the USB drive directory where the
bin pack is (/tmp/usbmounts/sda1/bin or /tmp/usbmounts/sdb1/bin ...)
- copy the new autorun.sh to /usr/local/etc (or merge with current content if autorun.sh version 1.1 has been modified)
cp autorun.sh /usr/local/etc/
Install Transmission (added in 1.3)
- Change directory to the USB drive TOP directory and execute the script. NOTE: this script must be executed at the
USB drive TOP level directory (/tmp/usbmounts/sda1 or /tmp/usbmounts/sdb1 ...). If the drive is at sda1:
- Run the installation script
- copy the run script to /usr/local/etc
cp ./bin/run_transmission.sh /usr/local/etc/
- copy or merge the autorun.sh script to /usr/local/etc. Set the global flag for Transmission to YES so that
Transmission is started automatically after a cold start (power disconnected), or reboot. Or set the flag
to NO so Tranmission will not be started automatically (use run_transmission.sh to start manually).
cp ./bin/autorun.sh /usr/local/etc/
- start transmission
Control Transmission (added in 1.3)
- To control transmission, i.e. adding torrents, change settings, and password follow the 2 steps below
1. To control transmission using Web browser
After running this script to start transmission, on your browser enter URL
(where x.x.x.x is the FAT+ IP address) to start the Transmission control GUI.
username is transmission, password is fatplus.
2. To change password, stop tranmission at the telnet prompt
then edit the transmission setting file in the USB drive
to replace the hashed password with plain text password (it will be hashed
automatically after transmission started):
the rpc-password line in the json file looks like this
replace it with your new password in plain text (put it inside the double quote)
"rpc-password": "whatever is the new password"
run this script (run_transmission.sh) again to start transmission
3. For complete instruction in using the Web Interface see this web site
Keep Alive (added in 1.3)
To keep the FAT+ running without automatically going to sleep after idling for 1 hour
- modify /usr/local/etc/bin/keep-alive.sh to change "192.168.0.51" to the FAT+ IP address
(the local host IP 127.0.0.1 should work fine acording to hexcide, but I could not make it work for some reason)
- Modified autorun.sh to
1. Add waiting period of 20 seconds before starting services.
2. Add /opt mounting check to avoid double mounting.
3. Stop and start samba with log redirected to /tmp to avoid writing to flash.
- Added 2 files: profile and setup-commands-path.sh
1. Set the system PATH variable to include /usr/local/etc/bin. This is possible by mounting
/etc/profile to /usr/local/etc/profile to allow modification.
2. Set the symlinks for /opt/bin/nano and all busybox commands to /usr/local/et/bin. This will enable
commands execution without typing the full path.
- Modified autorun.sh to mount profile
- Added 4 files: transmission_install.sh, settings.json, keep-alive.sh, and run_transmission.sh
Transmission installation and running is fully scripted (no need to edit settings.json or other scripts)
- Modified 1 file: autorun.sh
Provide global flags to run various utilities, including flag to start Transmission
To upgrade from binpack 1.2, copy all files in this bin pack to the USB bin directory /tmp/usbmounts/sda1/bin. And
then follow the "Install Transmission" section above to install it, if desired.
To update only autorun.sh, after copying files to USB bin directory, merge or copy this autorun.sh to /usr/local/etc.
Also copy the keep-alive.sh to /usr/local/etc/bin (if this feature is enable in autorun.sh, it will be invoked).
The instruction above is also included in the README.txt in the zip file.
04-25-2011 05:13 PM - edited 04-25-2011 05:17 PM
cool stuff, will test it soon.
so samba2 is not the same as samba (technically i think i used samba3.2..)
-whats a good command to fix the PATH to include whatever when we login
i dont think /usr/local/etc or whatever is included
-To make this more MODULAR... can we have a good autorun.sh script to DETECT the location of our standard /opt directory.
personally I'd say have a ./opt/ on the USB drive (/tmp/usbmounts/sda1/opt/)
a good script that checks for existintance of /opt on all usbmountsand then just pick one would be nice.
perhaps add a file into the ./opt/ like __master or __useme for people that may have more than one? not sure
Seriously, sometimes (on my goflex) if i pull out the drive without shutting down it remounts as /sdb1...sdc1...etc
grrrr then I must pull the power
-make a PACKAGE and host it somewhere, then we can just tell people
and ipkg install binpack....ipk?
- webinterface anyone (where is playdude!)
***PS NEVER TYPE REBOOT*** on the unit...bad things can happen. never shuts down right..files corrupt...its evil.
04-25-2011 06:19 PM
ok for the samba.
1) can we make some user/pass here. im feel to exposed
2) Logs..who needs logs... can we limit the writting to the flash and put them on like /tmp or something
but other than that...IT WORKS...
I think i'll go back to my sda2 ext3 though.
04-25-2011 09:14 PM
RSS MENU FUN
ok this is a upload of the XLIVE and other menus that I've poached and fixed links to make workon external drive. It has preloaded lots of cool stuff. "Some do not work with the FAT/GOFLEX" but most things do.
your drive must be
please extract this file to that
so you will have /tmp/usbmounts/sda1/opt/rsspack/........
in there you will see
telnet in and do a
if you do not have a savedrss folder type
if you do not have a scripts folder type
I HAVE A US VERSION SO I ASSUME that is the menu for all...
if it messed up your menu just remove th file from that scrpts folder as it overrides the built in one.
reload the INTERNET icon to reload page.
ps. this folder gets created if you save a favorite for weather!
enjoy this example.
once you modify the menu_US.rss it always points to your special "jumpstart" menu, so then you never have to mess with the main menu again. PSSSS keep a backup of your .RSS menus when you edit them. I've seen the goflex corrupt them many times when shutting down or doing stuff or pulling power..etc
04-25-2011 10:16 PM - edited 04-25-2011 10:33 PM
I'm glad it works
- Yes samba2 is the lightweight version, for use when we don't have a lot of RAM. I think samba3 needs swap space to run given the FAT+ has only 128MB RAM.
- Definitely, I think /opt mounting can be make more flexible. How about this:
1. In autorun.sh, we will look for oleg-optware folder in the order below, first partition that has oleg-optware will be mounted as /opt:
2. In optware_install.sh, OPTDIR will be replaced with $1 so that the installation command can be either:
- The drawback with using the /tmp/usbmounts/sd* to mount /opt is what you've found. The drive letters got moved around by hotplug, so it is not possible to predict where the USB drive is (even worse if there is a hub involved). The only sure thing is the mini USB port will get sda1 if the drive is in the slot when you power ON.
- "busybox-mipsel syslogd -C200" can be used to start the logging daemon to log to 200K of RAM. And then use "busybox-mipsel logread" to read the system log. We can start syslogd in autorun.sh. However, samba will write to /opt regularly So I think you did make it simple by mounting /opt to /tmp/usbmounts/sd*. OTOH, I think it is more flexible to mount /opt to /usr/local/etc, because it allows you to not have any USB drive attached. So if we can route samba log to RAM disk then it will be OK?