Mount Commands
Local Windows Partition
If you are dual booting the system with Windows, you will need to "Disable Windows Fast Start" so as to not cause file read/write corruption between the OSs.
- In Windows, click the Start button and search for "cpanel"
- Click "Choose what the power buttons do"
- Click "Change settings that are currently unavailable"
- Uncheck the "Fast Startup" check-box
- Reboot Windows
Install the following prerequisite. It may already be installed, but just to make sure.
Make the folder for the mount point
To find the disk that we want to use, use the following command. Note the drive, the partion, and the size. This will help to verify you are using the correct partition.
Using the blkid command you can view attributes of block device. Note the TYPE to see the formatting.
Mount the Windows partition to the newly created folder.
To unmount the local drive, use this command.
Add the mapped drives to the Linux startup.
CIFS/SMB Shares
Install the following prerequisite. It may already be installed, but just to make sure.
Create local mount points.
CIFS mount commands.
Unmount local share.
NFS Shares
Install the following prerequisite. It may already be installed, but just to make sure.
Create local mount points
NFS mount commands.
Unmount local share
File Copy Commands
MD5 Checksums
Commands to genorate MD5s for an entire directory.
rsync
Commands for rsync.
- -h : output numbers in a human-readable format
- -P : shows the progress of a transfer and also keeps partially copied files; same as --partial and --progress
- -r : copies data recursively (ignores timestamps and permissions)
- -v : increase verbosity
scp
Copy files between systems through SSH.
Find Commands
To find a file that has a specific name:
To find a file that has a specific extension: