Interested to talk about brtfs file system

Hello Brothers. I am here to ask to clear myself about the BRTFS filesystem. Although this is a meaningless topic to discuss about. Actually i have lost two of my hard disk which is not working right now. Because this is happened when i am started BRTFS filesystem on my lost hard disk. I formatted my hard disk 500GB for cache storage for pacman. I keep getting confused is BTRFS file system break my hard disk or not ( Although this is a funny and useless so forgive me. ). One of my hard disk had 100% health, brought 4 years ago And other one is 14 years age and had 40% health.

  1. So my question is BRTFS filesystem is better than ext4 or not?
  2. Is there any rules that i should follow for using BRTFS file system?
  3. Can i use NTFS file system for cache storage for Pacman?

I just want to clearfy myself. Because i am new to linux. Hope you all help me out. Thanks.

It isn’t better or worse. It is just different. btrfs offers many more features than ext4 at the cost of a small amount of performance. At the same time, btrfs is more reliable in some ways and less reliable in others.

There is one rule you should follow with every filesystem. Back up any data you don’t want to lose.

You shouldn’t. ntfs doesn’t support posix file permissions so it shouldn’t be used for anything except media storage in most cases.(Technically, you can make ntfs support posix but that is separate and advanced topic)

You should replace this drive if you can. If you can’t, be sure not to store any data on it you don’t want to lose.

8 Likes

What about My 1 Tb storage which have 100% health. And i lost it around 2 month before?

Does posix file permission possible to brake or corrupt the disk with NTFS file system.

And My most wanted question is, can i used different filesystem in different partition in Same Hard disk?

Yes you can.

1 Like

A posix filessystem relates to how it tracks permissions. non-posix filesystems don’t support the way Linux stores permissions. It won’t cause corruption but you will not have proper permissions which may cause certain applications to not work.

Yes, of course.

1 Like

So if i wanted to use NTFS file system as a cache storage for pacman with posix file permission. How can i do that? And if i done this is it make package corruption when my garuda system going for install. ( I used BRTFS filesystem for my Garuda Dragonized.) My Garuda Linux system Installed as dual boot with windows 10 in my NVME SSD. And i wanted to use my external Hard disk for cache storage by editing pacman.conf file under cachedir flag

Why are you trying to make your life harder by using NTFS for data that's only useful on a linux system?
Create a separate partition on the drive for that purpose.

Because i cant delete and recreate another filesystem. And Gparted gives me this error again and again

As I stated above, this is an advanced concept and something not commonly done. If you want to attempt that, you need to be able to research and solve that on your own.

Here is an article on how to do that.
https://jp-andre.pagesperso-orange.fr/permissions.html

Just know that if you choose to go down that path, you are on your own. Very few people will be able to help you troubleshoot it.

1 Like

Brother do you know why gparted gives me this error while creating another partition.

If you are OK with erasing everything on the disk you can try writing a new partition table to it.

First make sure no partitions on that disk are mounted. Then use this command:

sudo parted /dev/sda -- mklabel gpt

Again, this will make all the data on the disk sda permanently inaccessible so make sure that disk has no useful data on it.

After you do that. Then open gparted and see if you can create the partition.

1 Like

You missed the space after --

Yeah my bad sorry for that. Now?

Thanks Brother i created the partition. Here is the output

3 Likes

Hello.

  1. Yes. Btrfs reliable than ext4. It is easier to recover the data with it (in the event of a drive failure and other problems). Also supports subvolumes, raid and transparent compression. The speed of work is also higher. One minus. Fragmentation, because of this, you have to defragment the file system every few weeks.
  2. If you have an HDD, then defragment every few weeks and enable the mount option autodefrag. If SSD, enable mount option -o ssd
  3. I do not get the point of it. BTRFS in all parameters is better than NTFS.
1 Like

Are you saying here that Btrfs is more reliable or as reliable?
That’s a tough claim to make given ext4 is very mature and Btrfs is still maturing. It’s only just starting to become standard for most OSes this year as it’s only now becoming sufficiently reliable, which means it still lags behind.

Are you saying it’s a faster FS than ext4, because that’s still not particularly true despite years of improvements in this area: Linux 5.14 SSD Benchmarks With Btrfs vs. EXT4 vs. F2FS vs. XFS - Phoronix

I prefer it over ext4 because it’s “good enough” on reliability and speed, with the feature set pushing it beyond ext4 for my use case, but it seems inaccurate to claim it’s as/more reliable or faster than ext4 (if they are your claims, the language was ambiguous, I assume because English isn’t native?!?)

4 Likes

btrfs reliability is a complicated topic. It has many features which make it more reliable than ext4. However, when corruption does occur, it can often be unrecoverable. Conversely, corruption is more likely to occur in ext4 but it can more often be fixed with a simple fsck.

I am not confident btrfs will get significantly more reliable than it is today. There haven’t been any serious reliability improvements in years.

btrfs has been in widely available for 12 years and was in development from longer ago than that.

btrfs has been standard in many places for much longer than this year. It has been default in suse for several years. It has been the default in Synology NAS devices for a very long time now.

I think the only major distro to make it default in the last year is Fedora.

This is just my opinion but Phoronix storage benchmarks shouldn’t be taken seriously in most cases. He doesn’t do any tuning or setup things in a meaningful way. He just installs and runs benchmarks.

For example, you shouldn’t run database benchmarks without doing the basic things any database admin would do…

5 Likes

Thank you for the somewhat (relatively speaking) nuanced responses.
In summation, we agree... it's complicated. Pros and cons, cons and pros.

Regarding the "this year", I mean it's been gaining adoption. Fedora (and .. some others I don't recall because it's of so little importance) bring it to nicely into the realm of "most".
I was used btrfs on OpenSUSE years ago. I did have some issues, but I always had issues back then as I was far more gungho and reckless. :smiley:

1 Like

I guess garuda enable SSD fstrim by default. Is it similar doing mount option -o and fstrim. And how do i do defragment. Should i use autodefrag flag using gnome-disk-utility so that i do not edit fstab manually?

1 Like

Do not enable autodefrag, if you use SSD. The file system itself detects which drive. But not always right. For example, I have BTRFS counted Raid from SAS drives on the Adaptec controller for SSD.