Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Mounting a M.2 disk in the new Argon M.2 case
#3
(09-15-2021, 08:09 PM)vinnn Wrote: There's not much sense in formatting the disk with a Windows filesystem, if it's to reside on a Linux computer format with a native filesystem such as ext4.
The most convenient way to see available disks and their filesystems is to use lsblk.
Run lsblk, assuming the partition you've created on /dev/sda shows up as /dev/sda1 you can format this partition as ext4 with...

Code:
sudo mkfs.ext4 /dev/sda1


To have the OS mount the filesystem at boot time the most common method is to add an entry to the /etc/fstab file.
Assuming the filesystem is /dev/sda1 you're probably best mounting it to /mnt/SDCARD.
In fstab this'd look like;

Code:
/dev/sda1    /mnt/SDCARD     ext4     defaults     0 0

You can edit fstab with a text editor such as nano..

Code:
sudo nano /etc/fstab

When finished in nano save is [Ctrl]+[o] and exit is [Ctrl]+[x]
Reboot and you should see /mnt/SDCARD as a mounted filesystem when running df -h.

Moode shares this path as a network share so you should be able to connect to it from your PC and transfer your music library to the M.2 disk's filesystem over the network.

Thanks Vinn,

I fully agree with you, on the question, why would you use NTFS in a Linux environment?? The reason I'm even considering it, is that I can than pick up the case & plug it in my PC as a USB disk. That is a bit easier, because I have multiple "disks" on my NAS that I need to access. Otherwise I would have to mount all these on the Pi in order to copy from there to the Pi.

Apart from that, it makes no sense whatsoever. Thanks for the pointers. I'm going to try it!

I have not found a way to write to EXT4 from Win10. I have a Linux VM on my PC and that has access to the USB ports. Don't know if a VM in Win could write to an EXT4 formatted drive. But going to try it anyway. Little hope, but one never knows.

Regards,

W.
Reply


Messages In This Thread
RE: Mounting a M.2 disk in the new Argon M.2 case - by Woodroww - 09-15-2021, 08:47 PM

Forum Jump: