Switching drive from NTFS to ext4 (or something else)

Message
Author
User avatar
entropyfoe
Posts: 615
Joined: Thu Apr 19, 2007 11:42 am

Re: Switching drive from NTFS to ext4 (or something else)

#11 Post by entropyfoe »

You said it brother ! For linux ext4 is true and tested.
Agree with all your comments. MX just takes care of that fstrim, there is a log. [hmmm, haven't checked mine lately?]
Even with unexpected power failures, the fs seems to recover with no errors.
kc1di
Re: Switching drive from NTFS to ext4 (or something else)
#4 Post by kc1di » Wed Oct 23, 2024 6:08 am
Not too often hardly ever find an error. As I said ext4 is very stable. Of course drives can wear out. Especially spinners.(0ld ones) All my drives are now SSD's .They give me very little trouble. They also all have auto trim enabled also so that keeps them somewhat in line also.
MX 23.5 on Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23.5, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

User avatar
tobyo
Posts: 34
Joined: Tue Oct 08, 2024 4:21 pm

Re: Switching drive from NTFS to ext4 (or something else)

#12 Post by tobyo »

Thank you DukeComposed; I wondered why the drive was only accessible via root access, that is very interesting.

I am still in the process of moving the files to ext4, I have several terabytes to go!
I will try connecting an ext4 drive to another computer once the backup transfers are complete and see how it works.

Also, kc1di, I ran 'sudo fstrim -av' - my internal NVME reported 250MB and a 2TB USB-connected SSD reported 390GB trimmed! I think this was long overdue!

User avatar
tobyo
Posts: 34
Joined: Tue Oct 08, 2024 4:21 pm

Re: Switching drive from NTFS to ext4 (or something else)

#13 Post by tobyo »

entropyfoe wrote: Wed Oct 23, 2024 1:37 pm You said it brother ! For linux ext4 is true and tested.
Agree with all your comments. MX just takes care of that fstrim, there is a log. [hmmm, haven't checked mine lately?]
Even with unexpected power failures, the fs seems to recover with no errors.
Hi entropyfoe, do you know where that log would be, or how I could view it?

I found this article https://mxlinux.org/wiki/hardware/trim/
and ran the command:

Code: Select all

$ tail /var/log/trim.log 
But I received: command not found

Edit: I answered my own question, I just opened the .log file in a text editor: /var/log/trim.log

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Switching drive from NTFS to ext4 (or something else)

#14 Post by artytux »

try
sudo tail /var/log/trim.log
or goto
Root then var > log >trim.log
" Outside the square , inside the cube "

User avatar
tobyo
Posts: 34
Joined: Tue Oct 08, 2024 4:21 pm

Re: Switching drive from NTFS to ext4 (or something else)

#15 Post by tobyo »

Thank you artytux; I realised how simple it was 😅

I recently had an SSD fail on a Windows machine.

I have used CrystalDiskInfo in Windows and gsmartcontrol in Linux to view the SMART info details in the past, which is useful.

But I would also check Event Viewer in Windows for any hard drive errors in the admin log; this would often log a bad block or read error etc.
I don't know if that was an NTFS specific log, but does anyone know if there is something similar for ext4 (or in general), for Linux? Something that might log a disk read error or hardware failure?

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Switching drive from NTFS to ext4 (or something else)

#16 Post by artytux »

If you are booting into systemd it has enough tools for what you want
on systemV Ive not had to go down that road yet,
Seems it's time for you and DDG quality time, unless some-one here can chip in with an answer.
" Outside the square , inside the cube "


User avatar
entropyfoe
Posts: 615
Joined: Thu Apr 19, 2007 11:42 am

Re: Switching drive from NTFS to ext4 (or something else)

#18 Post by entropyfoe »

artytux,

Yes, that is the log.
/var/log/trim.log

And mine is working wonderfully. The last trim was yesterday.

Code: Select all

*** Wed, 09 Oct 2024 07:59:08 -0500 ***
/home: 81.8 GiB (87858819072 bytes) trimmed on /dev/nvme0n1p3
/media/Data: 307.4 GiB (330021101568 bytes) trimmed on /dev/sda1
/: 3.2 GiB (3432132608 bytes) trimmed on /dev/nvme0n1p1
*** Wed, 16 Oct 2024 13:57:45 -0500 ***
/home: 0 B (0 bytes) trimmed on /dev/nvme0n1p3
/media/Data: 0 B (0 bytes) trimmed on /dev/sda1
/: 0 B (0 bytes) trimmed on /dev/nvme0n1p1
*** Wed, 23 Oct 2024 08:20:14 -0500 ***
/home: 0 B (0 bytes) trimmed on /dev/nvme0n1p3
/media/Data: 27.5 MiB (28880896 bytes) trimmed on /dev/sda1
/: 0 B (0 bytes) trimmed on /dev/nvme0n1p1
MX 23.5 on Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23.5, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

User avatar
tobyo
Posts: 34
Joined: Tue Oct 08, 2024 4:21 pm

Re: Switching drive from NTFS to ext4 (or something else)

#19 Post by tobyo »

Hi all, I am still moving various drives from NTFS to ext4; since I have switched some of the drives to ext4 I have noticed they no longer have the eject icon in the Devices menu of Thunar (on the side).

All the drives are connected via USB.

I can right-click to Unmount a drive and this greys the icon out; if I then right-click the unmounted drive I have two options: Mount or Safely Remove.
Safely remove is greyed out, but as the drive is unmounted I would assume it is ok to unplug the USB cable?

User avatar
davidy
Posts: 818
Joined: Sat Jul 03, 2021 1:59 pm

Re: Switching drive from NTFS to ext4 (or something else)

#20 Post by davidy »

Yes. Just like when you create a bootable flash drive with the built-in tool, when it's done it leaves it unmounted and ready to unplug. But if an external usb nvme is exfat will the fstrim cmds work? I tried the ones suggested (sudo fstrim -v /media/lapiz/65FC-5999/) and it just gives me "the discard command is not supported". I'm assuming this is an exfat thing and trim cmds only apply to journaled file systems?
F2FS sounds great but unfortunately most devices such as phones and tv's require fat32.
I used exfat on my ext nvme only because of my single windows pc or I would have used ext4.
Sys76 LemurPro-mx-23.4, EliteMinis HM90-mx-21.3, Deskmini UM350-phoenixLite win10, Qnap 12tb nas, Protectli FW4C-opnsense(=゜ω゜)

zero privacy = zero security . All MX'd Up
UAP = up above people

Post Reply

Return to “General”