ntfs usb drive mounted on Ubuntu 16.04 but access is read-only
dmesg command shows:
[ 7841.139989] scsi 13:0:0:0: Direct-Access WD My Passport 25E1 1019 PQ: 0 ANSI: 6
[ 7841.140448] scsi 13:0:0:1: Enclosure WD SES Device 1019 PQ: 0 ANSI: 6
[ 7841.142162] sd 13:0:0:0: Attached scsi generic sg2 type 0
[ 7841.142458] ses 13:0:0:1: Attached Enclosure device
[ 7841.142691] ses 13:0:0:1: Attached scsi generic sg3 type 13
[ 7841.142771] sd 13:0:0:0: [sdb] Spinning up disk...
[ 7847.595418] .ready
[ 7847.595909] sd 13:0:0:0: [sdb] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
[ 7847.596347] sd 13:0:0:0: [sdb] Write Protect is off
[ 7847.596356] sd 13:0:0:0: [sdb] Mode Sense: 47 00 10 08
[ 7847.596724] sd 13:0:0:0: [sdb] No Caching mode page found
[ 7847.596733] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[ 7847.693638] sdb: sdb1
[ 7847.694887] sd 13:0:0:0: [sdb] Attached SCSI disk
[ 7848.180642] ntfs: volume version 3.1.
sudo apt install ntfs-3g
remount the usb and drive is accessible
partition manager creates partition as root.
sudo chown -R $USER:$USER /media/myusername/drivename
edit the /etc/rc.local file
sudo nano /etc/rc.local
Place this line BEFORE the ‘Exit 0’ line
(sleep 8;sudo su - pi -c "/home/pi/xxxxx")&
to install matplotlib in python3.4 on Ubuntu
sudo python3.4 -m pip install matplotlib leads to various dependency problems. Use the package installer :
sudo apt-get install python3-matplotlib
Add a service file /lib/systemd/system/picam.service similar to this:
enable then start/stop using:
sudo systemctl enable picam.service
sudo systemctl start picam.service
sudo systemctl stop picam.service
to view the output:
sudo journalctl -u picam.service
plug hard rive into router
In the router html interface
“Advanced”/”USB Port” share with samba username=xxx password=yyy device = defaulted to usb1_1 directory = Router rights=read+write
remember to enable Samba (tick box)
On network computer (pi)
sudo mkdir /mnt/Router (if it doesn’t exist)
sudo chown -R pi:pi /mnt/Router
sudo mount -t cifs -o username=xxx,password=yyy,uid=pi //192.168.sss.fff/xxx /mnt/Router
BACKUP /etc/fstab to fstab.bak THEN sudo gedit /etc/fstab and add line :
//192.168.1.fff /mnt/Router username=xxx,password=yyy,uid=pi,gid=pi 0 0
sudo mount -a (to then run the fstab file) (add it to bottom of .bashrc file to automount as boot of fstab occurs before network available.
something to do with loading up the lived disk, mounting drives and then installing and updating grub.
Saved the log on the live CD desktop, doh 🙁
Sorry, need to Google it !
sudo apt-get install virtualbox-qt (or whatever its called)
create a new virtual machine, insert windows DVD and install windows as a virtual machine
- in the virtual machine (i.e. windows) under Devices select insert guest additions CD. Guest Additions appears in the windows taskbar.
- install the windows guest additions virtual CD by right clicking it. Windows will restart when installed.
- Under windows machine->session information Guest Additions is shown with a version.
- On the HOST (Ubuntu) select a folder to share via the Virtual Box Manager Settings.
- REBOOT windows
- Under Computer (NOT Network) there should be a mapped drive available, e.g. SharedFolder (\\vboxsrv) (E:)
There is NO NEED to install guest additions on Ubuntu from what I can tell (although I did that first so cannot be totally sure). They are after all called GUEST additions.
To install the USB device:
On Ubuntu host command prompt
sudo usermod -G vboxusers -a <user>
REBOOT or log off Ubuntu to let change take effect.
On the host it is best to create a usb filter for the usb device that needs adding so that Windows doesn’t try to use all usbs (can be problems with Windows suddenly getting/losing control of usb devices without shutting down correctly):
use lsusb command to get the information about the usb devices
By using internet speedtest under a variety of the settings the following was found (this may not hold true in the future but its what seemed to make sense at the time) :
1 Wireless WMM (QoS)
Enabling QoS means that VOIP/videos/games take priority and can cause issues for web browsers when gaming is in progress. Heavy gaming seems to even stop connection to the wireless network (at that time the specific game causing problems was DOTA 2).
Switching off QoS leaves all network connections the same access to the internet causing lag problems for game users/video watchers.
Channel (1,6,9,11 are supposedly best for less interference) Is significant with 6 significantly better on the 2.4GHz band for our particular wifi network at the current time. Wireless phones and microwave may interfere along with other local wifi networks.
Unsure of 5GHz band cos not sure what uses it, channels 36,40,44,48 recommended so stuck it at 40 (from 112)
3 Other settings had little or adverse effects
tried 40MHz, 20Mhz, 5GHz off
switching off various devices
moving all electrical items from around the router.
4 These are the current working settings :
- Open image
- Right click the layer and Add Alpha Channel
- Get the Tools->Selection->Free Select lasso tool and click round the edge (just inside) of the object.
- Select->Feather (and an amount for feathering)
- Select->Invert (causes the background to be selected)
For a hard edged outline, instead of feathering the outline can be clicked round using the Select->Scissors tool and carefully clicking all round adding/moving the points as required.