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
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
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