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

#2
Thank's for this howto!
 Snakeoil works fine now. [Image: smile.png]
(but the command blkid does not return anything on my machine... I used another command for listing all the drives).
Pierre
Reply

#3
(09-Aug-2016, 05:15 AM)Pierre Wrote: Thank's for this howto!
 Snakeoil works fine now. [Image: smile.png]
(but the command blkid does not return anything on my machine... I used another command for listing all the drives).
Pierre
What command is that? I can improve the howto above. thanks  [Image: thumbs.png]
Snakeoil Operating System - Music, your way!
Reply

#4
(09-Aug-2016, 07:20 AM)agent_kith Wrote:
(09-Aug-2016, 05:15 AM)Pierre Wrote: Thank's for this howto!
 Snakeoil works fine now. [Image: smile.png]
(but the command blkid does not return anything on my machine... I used another command for listing all the drives).
Pierre
What command is that? I can improve the howto above. thanks  [Image: thumbs.png]

This is the command:
"ls -l /dev/disk/by-uuid"

Pierre
[-] The following 1 user Likes Pierre's post:
  • agent_kith
Reply

#5
I installed Snakeoil for intel NUC SATA ssd  Recentely i got a m.2 sata ssd 2tb. Installed it on intel NUC motherboard m.2 sata slot. It is not being detected by snakeoil. how can i mount the disk?
Reply

#6
I have been using a M.2 SSD on my Intel NUCs for a few years now with no problems. SnakeOil will always mount a disk that Ubuntu recognises. Have you tried checking whether the SSD is working just with standard Ubuntu?

And please provide more details of the hardware that you are using. And make sure the SSD is the SATA version
Reply

#7
(08-May-2023, 11:47 AM)Snoopy8 Wrote:
(08-May-2023, 11:47 AM)Snoopy8 Wrote: I have been using a M.2 SSD on my Intel NUCs for a few years now with no problems. SnakeOil will always mount a disk that Ubuntu recognises. Have you tried checking whether the SSD is working just with standard Ubuntu?

And please provide more details of the hardware that you are using. And make sure the SSD is the SATA version



It is set to sata in bios.
I installed snakeoil on seperate normal SSD and  kept my music files in m.2 sata 2tb.
I also used to have snakeoil on m.2 sata 120gb earlier. It worked fine.
It is working in windows copied 1tb data.

(08-May-2023, 11:47 AM)Snoopy8 Wrote:
(08-May-2023, 11:47 AM)Snoopy8 Wrote: I have been using a M.2 SSD on my Intel NUCs for a few years now with no problems. SnakeOil will always mount a disk that Ubuntu recognises. Have you tried checking whether the SSD is working just with standard Ubuntu?

And please provide more details of the hardware that you are using. And make sure the SSD is the SATA version



It is set to sata in bios.
I installed snakeoil on seperate normal SSD and  kept my music files in m.2 sata 2tb.
I also used to have snakeoil on m.2 sata 120gb earlier. It worked fine.
It is working in windows copied 1tb data.
Reply

#8
(08-May-2023, 11:47 AM)Snoopy8 Wrote: I have been using a M.2 SSD on my Intel NUCs for a few years now with no problems. SnakeOil will always mount a disk that Ubuntu recognises. Have you tried checking whether the SSD is working just with standard Ubuntu?

And please provide more details of the hardware that you are using. And make sure the SSD is the SATA version
What kernel are you using? If you're using the old Snakeoil custom kernels, you'll need to pick the one with nvme support.

Otherwise, you'll need to modify /etc/fstab directly to mount your nvme partition.
Snakeoil Operating System - Music, your way!
Reply

#9
I installed Snakeoil on Ubuntu server 22.4.2lts later installed low latency kernel. what should I do in etc/fstab[Image: 16841577431908923515050870787314.jpg]
Reply

#10
(15-May-2023, 09:40 PM)vinaymoturi Wrote: I installed Snakeoil on Ubuntu server 22.4.2lts later installed low latency kernel. what should I do in etc/fstab
Sorry, been away for a long time as busy with work. You'll need to find the blockid of your partition, then add it in the file. You can follow the instructions here: Link

The reason to use uuid is for SATA devices as the drive letterings can change between reboot. Using uuid will fix those issues. I don't believe nvme has the same problem so you can just use /dev/nvmeXnYpZ format in your /etc/fstab file.
Snakeoil Operating System - Music, your way!
[-] The following 2 users Like agent_kith's post:
  • patricia1066, vinaymoturi
Reply



Bookmarks



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Dropping Measurements, Hello High-End.
Last Post: agent_kith
26-Oct-2024 09:02 AM
» Replies: 12
» Views: 404
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1640
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 86
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 85
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 304
A network protocol designed for CAS
Last Post: hkphantomgtr
10-Oct-2024 09:48 PM
» Replies: 0
» Views: 68
CAS with "Single Core"
Last Post: hkphantomgtr
06-Oct-2024 08:32 AM
» Replies: 2
» Views: 101
MPD player not working
Last Post: Snoopy8
27-Sep-2024 11:54 AM
» Replies: 7
» Views: 199
LMS playing DFF files sampling rate
Last Post: Snoopy8
16-Sep-2024 07:45 PM
» Replies: 5
» Views: 128
OLED display for Snakeoil Raspberry Pi a...
Last Post: vinaymoturi
13-Sep-2024 01:12 PM
» Replies: 8
» Views: 4426

[-]
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.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.