Ubuntu: Mounting a USB hard drive at reboot

First, if you have an exFat drive, you will need to install the Ubuntu exFat utility or you will get a “unknown filesystem type ‘exfat’” mount error.
To avoid that, in a console type:
sudo apt-get install exfat-fuse exfat-utils

Before we update anything, we will need to find out what your hard drive is called in the system before we mount it.
Any of these commands will tell you the drive name.
lsblk
sudo blkid
sudo fdisk -l

Look for something like this: /dev/sdb

You will need to create a mount point for the system.
>sudo mkdir /media/usb
You can replace “usb” with any name you like.

Now you will need to update your “fstab” file so Ubuntu can mount the drive at startup.

Important: find the Device and Filesystem with this command:
>df -T
Look for “Filesystem” and “Type”.
Example:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda2 ext4 959862832 368219792 542814880 41% /
The “Filesystem” is /dev/sda2 and the “Type” is “ext4”.

Edit fstab:
sudo nano /etc/fstab

Copy this statement into the file, replacing the #Device (example: /dev/sdb1) and #fs-type (example: exfat or ext4)

#Device #Mountpoint #fs-type #options #dump #fsck
/dev/sdb1 /media/usb exfat defaults 0 0

^O to write out, ^X to exit.
Reboot your machine:
sudo reboot

Your computer should mount your USB hard drive to /media/usb

Advertisement

Update Subsonic on Ubuntu

To update Subsonic from the Ubuntu console, it’s best to log into a terminal window from Windows or Mac using Putty (or the Mac terminal).
Using your web browser from Windows/Mac, visit the download page.
Find the Ubuntu download link and copy the link location.
Example: http://www.subsonic.org/pages/download2.jsp?target=subsonic-6.1.5.deb

Log into your server using Putty/terminal. Download the new file.
wget http://www.subsonic.org/pages/download2.jsp?target=subsonic-6.1.5.deb

Now execute the update command:
>sudo dpkg -i subsonic-6.1.5.deb

Updated and back in business!

New WordPress Editor is the most horrific thing ever

If you updated WordPress like I did and found the most irritating, horrific editor you’ve ever seen or used, follow these instructions to get the old one back.

Go to your WordPress Dashboard.
Select Plugins.
Add New.
Search for “Classic Editor”. (Blue Square with three white lines).
Install and Active. Back to business.

GOOD GRIEF!
PS: If you are having trouble with these directions, here’s a video I found on YouTube.

Update Subsonic on Ubuntu; Mount USB drive at boot

Update Subsonic:

Download the subsonic package and execute this command:
sudo dpkg -i subsonic-6.1.5.deb
||||||||||||||||||||||||||||||||||||||
Mount a USB drive in Ubuntu Console:
Find the drive (three commands that will do it):
lsblk
sudo blkid
sudo fdisk -l

(example: /dev/sdb)

Create a mount point:
sudo mkdir /media/usb

Mount the drive:
sudo mount /dev/sdb1 /media/usb
||||||||||||||||||||||||||||||||||||||
Mount error: “unknown filesystem type ‘exfat’”

Install exfat filesystem utility for Ubuntu:
sudo apt-get install exfat-fuse exfat-utils
||||||||||||||||||||||||||||||||||||||
How to automatically mount usb flash drive at startup

List your drives:
sudo fdisk -l
(example: /dev/sdb1)

Edit /etc/fstab and place this info in the file, replacing the #Device and #fs-type with your own:

sudo nano /etc/fstab
add:
#Device #Mountpoint #fs-type #options #dump #fsck
/dev/sdb1 /media/usb exfat defaults 0 0
||||||||||||||||||||||||||||||||||||||