We are moving! New user registrations to this forum is now closed. Posting here will be disabled eventually. Please go to the new community for your Snakeoil OS support and other discussions. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


Mount Partitions Via /etc/fstab
#1
Introduction
The Snakeoil Web app allows you to easily mount partitions, but there are occasions where this system will not work well, e.g. if you are using USB storage and the device names are different for every boot. To overcome this issue, you'd need to mount the partitions the old Linux way.

Step One
Remove all mount points in the web app. Go to the music tab, and look under the section Mount Points. If you see any entries, note the media paths (e.g. /dev/sdb1, /dev/sdc1).  Once noted, click the associated remove button and remove all entries.

[Image: tab_music_formatted.png]

Click Save Changes. The partitions would be unmounted.

Step Two
Login to your Snakeoil via SSH. Refer to the Logging in/SSH section of the manual if you havn't done this before. Once logged in, you will see something like this:
[Image: ssh_logged_in.png]

Step Three
Now comes the more difficult part. You'd need to find the UUID of the storage in question, use the blkid command. To find the UUID of /dev/sdb1, run this command:
Code:
blkid /dev/sdb1

And you would see something like this:
Code:
/dev/sdb1: UUID="7FAEFE6123DEFABE" TYPE="ntfs"

Note the fields UUID and TYPE. The UUID field above is an example only, your storage device will be unique and is different. 

Step Three
Make a backup of this file /etc/fstab by running the following command:
Code:
cp /etc/fstab ~/fstab.orig

Step Four
Modify /etc/fstab file by running the following command:
Code:
sudo nano /etc/fstab
Enter your login password when prompted to do so.

Step Five
Now start adding the partitions. Go to the last line, and add your entry based on output from blkid, as the example from above, the entry would look like so:
Code:
UUID=7FAEFE6123DEFABE /media/music/sdb ntfs defaults 0 0

If the partition is using EXT4, it will look something like so: 
Code:
UUID=7FAEFE6123DEFABE /media/music/sdb ext4 defaults 0 0

Repeat Step 3 to add all your other block devices, and make sure they are mounted under different sub-folders under /media/music.

Once you have entered all the entries, save the file by pressing CTRL-X, and when prompted, press for Yes.

Step Six
Make sure you have created all the mount points you specified in Step Five are present, as an example:
Code:
sudo mkdir /media/music/sdb

and if you add more than one storage devices, make sure you created the folders too, e.g.
Code:
sudo mkdir /media/music/sdc

and so on.

Step Seven
Reboot the Snakeoil machine. Then load the Snakeoil Web app, click the music tab and look at the File System table, you should see your storage devices mounted under /media/music now. And the mappings will be fixed now because you are using UUID.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • hkphantomgtr
Reply


Bookmarks

Messages In This Thread
Mount Partitions Via /etc/fstab - by agent_kith - 08-Aug-2016, 08:17 PM
RE: Mount Partitions Via /etc/fstab - by Pierre - 09-Aug-2016, 05:15 AM
RE: Mount Partitions Via /etc/fstab - by agent_kith - 09-Aug-2016, 07:20 AM
RE: Mount Partitions Via /etc/fstab - by Pierre - 09-Aug-2016, 09:41 PM
RE: Mount Partitions Via /etc/fstab - by Snoopy8 - 08-May-2023, 11:47 AM
RE: Mount Partitions Via /etc/fstab - by agent_kith - 15-May-2023, 05:01 PM
RE: Mount Partitions Via /etc/fstab - by agent_kith - 03-Jun-2023, 09:59 AM



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 1891
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1402
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 8414
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 846
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 612
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 4695
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5083
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 14192
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4124
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1097

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.