Tag: mount
quick mount
20/07/2016
Just a quick way to mount a windows share
1 |
sudo mount -t cifs //IPADDRESS/music /mnt/ -o username=USER,password=PASSWORD |
If you not sure what shares are on the windows machine
1 |
net share |
Share the post "quick mount"

Fix mount issues Linux and Windows 8 NTFS
27/07/2014
Windows 8 has a option that you can boot faster. It stores (hibernates) your system. Sometimes Linux can’t mount your local disks and it will give you this kinda error:
Unable to mount location
Error mounting /dev/sda2 at /media/pieter/DATA: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda2” “/media/pieter/DATA”‘ exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/sda2’: Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the ‘ro’ mount option.
What worked for me was to disable the “fast start” option in windows 8.
1. Open Control Panel and choose Power Options.
2. Click on “Choose what the power buttons do”.
3. Click on “Change settings that are currently unavailable”.
4. Uncheck “Turn on fast startup (recommended)”.
If you want to try some more options this page might help you:
http://www.hecticgeek.com/2013/01/mount-windows-8-partition-ubuntu-hybrid-boot/
Share the post "Fix mount issues Linux and Windows 8 NTFS"
Mounting a network hd
22/08/2013
Make the mount folder
1 |
sudo mkdir /mnt/nethdd |
Add the network drive to fstab:
1 |
sudo nano /etc/fstab |
//192.168.0.10/HDDShared /mnt/nethdd cifs auto,password= 0 0
Mount it
1 |
sudo mount /mnt/mynethdd |
Ok that worked as long as you want to have it read only..
Tried some other things to get it read/write..
This seems to work for now:
1 2 |
sudo chown -R pi /mnt/nethdd/ sudo chmod a+rwx /mnt/nethdd/ |
fstab:
1 |
//192.168.1.254/HDDShared /mnt/nethdd cifs rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 |
remount withour rebooting:
1 |
sudo mount -a |
Share the post "Mounting a network hd"