Hi everyone,
I'm kind of shocked because I can't understand what the heck is going on after partitioning and formatting an external USB drive.
I have a Raspberry Pi 3 running "FreeBSD redstar.local 13.0-RELEASE FreeBSD 13.0-RELEASE" (I trimmed the output of `uname`).
I plug the USB external drive to the Raspberry Pi and create a new partition scheme GPT and then create a single EXT4 partition for the whole available space. I mount it in the same system (no errors BUT I didn't test to write to it, after mounting it and checking the size with `df` I assumed everything was ok). Then I unmount it and replug it in a Linux machine. Gets automatically detected and mounted. Start copying files. Unmount it. Reconnect the drive in the Raspberry Pi try to mount it with: `mount -t ext2fs /dev/da0p1 /home/mpd/music` and to my dismay I'm getting the following error: `ext2fs: da0: wrong magic number 0 (expected 0xef53)`. What on earth is going on? Because I once again plug the drive to the Linux machine and yeap, seems absolutely fine, all files there! The thing is that I've formatted the drive in the Raspberry Pi with FreeBSD, so does a simply `cp` in Linux alters magic numbers or I'm screwing things up in a very stupid way?
I've been a bit frustrated so far with filesystems. Previously I've tried ZFS but is impossible to run in a Raspberry Pi with 1Gb of RAM behind a NFS (I would say that I don't know the tricks that I need to apply to both ZFS and NFS to make this constrained setup work). Launching `musicpd` from another computer and trying to read the files instantly kills the Pi (I see ARC skyrocketing and literally bringing the whole thing down, not giving me the slightlest chance to do a thing). So I said ok, given the fact that I need more RAM to run ZFS properly I decided to reformat the drive to EXT4 because I still want to be able to plug it to a Linux machine just in any case.
Any clues as why this happens?
Thanks in advance,
Lucas.
I'm kind of shocked because I can't understand what the heck is going on after partitioning and formatting an external USB drive.
I have a Raspberry Pi 3 running "FreeBSD redstar.local 13.0-RELEASE FreeBSD 13.0-RELEASE" (I trimmed the output of `uname`).
I plug the USB external drive to the Raspberry Pi and create a new partition scheme GPT and then create a single EXT4 partition for the whole available space. I mount it in the same system (no errors BUT I didn't test to write to it, after mounting it and checking the size with `df` I assumed everything was ok). Then I unmount it and replug it in a Linux machine. Gets automatically detected and mounted. Start copying files. Unmount it. Reconnect the drive in the Raspberry Pi try to mount it with: `mount -t ext2fs /dev/da0p1 /home/mpd/music` and to my dismay I'm getting the following error: `ext2fs: da0: wrong magic number 0 (expected 0xef53)`. What on earth is going on? Because I once again plug the drive to the Linux machine and yeap, seems absolutely fine, all files there! The thing is that I've formatted the drive in the Raspberry Pi with FreeBSD, so does a simply `cp` in Linux alters magic numbers or I'm screwing things up in a very stupid way?
I've been a bit frustrated so far with filesystems. Previously I've tried ZFS but is impossible to run in a Raspberry Pi with 1Gb of RAM behind a NFS (I would say that I don't know the tricks that I need to apply to both ZFS and NFS to make this constrained setup work). Launching `musicpd` from another computer and trying to read the files instantly kills the Pi (I see ARC skyrocketing and literally bringing the whole thing down, not giving me the slightlest chance to do a thing). So I said ok, given the fact that I need more RAM to run ZFS properly I decided to reformat the drive to EXT4 because I still want to be able to plug it to a Linux machine just in any case.
Any clues as why this happens?
Thanks in advance,
Lucas.