I have a USB drive that I want to use for testing linux distros and backing up data both for linux and FreeBSD. It is divided like this:-
The fat32 is for installing test linux distros and is flagged as boot, with the swap and 51G linux data to use with that.
Partition 4 ( 50G) I want to use with FreeBSD.
I tried :-
which seemed to work but then when I checked with:-
it tells me that it is ext2fs and also, I cannot mount /dev/ext2fs/FreebsdData from PLACES in the Desktop GUI.
However, I was able mount it as superuser and write a test.txt file to it, also there was a .snap directory created on it.
I have also tried deleting the partition then trying to create a new one with:-
but a parameter was incorrect, presumably the "freebsd-ufs" bit so I also tried:-
which seemed to work but I still couldn't mount the partition.
It's a but frustrating, as I think I have followed the Handbook correctly but can't see where I am going wrong. Is it simply a case that you can't mix linux and unix filesystems on a single device?
Code:
gpart show da0
=> 63 240353217 da0 MBR (115G)
63 1985 - free - (993K)
2048 16384000 1 fat32 [active] (7.8G)
16386048 12288000 2 linux-swap (5.9G)
28674048 106954752 3 linux-data (51G)
135628800 104724480 4 linux-data (50G)
The fat32 is for installing test linux distros and is flagged as boot, with the swap and 51G linux data to use with that.
Partition 4 ( 50G) I want to use with FreeBSD.
I tried :-
Code:
newfs -U /dev/da0s4
which seemed to work but then when I checked with:-
Code:
fstyp /dev/da0s4
it tells me that it is ext2fs and also, I cannot mount /dev/ext2fs/FreebsdData from PLACES in the Desktop GUI.
However, I was able mount it as superuser and write a test.txt file to it, also there was a .snap directory created on it.
I have also tried deleting the partition then trying to create a new one with:-
Code:
gpart add -t freebsd-ufs da0
Code:
gpart add -t freebsd da0
It's a but frustrating, as I think I have followed the Handbook correctly but can't see where I am going wrong. Is it simply a case that you can't mix linux and unix filesystems on a single device?