1

Topic: format a whole disk using ext4 format,just read only?

If I just format the whole disk using ext4 format, I find the partition is read only(except for root),such as:

[nisy@nisy nisy]$ ls -al
总计 4
drwxr-x---+ 3 root root  60 8月23日 23:31 .
drwxr-xr-x 3 root root  60 8月23日 23:24 ..
drwxr-xr-x 3 root root 4096 8月23日 23:30 05b2c363-dd71-4478-bd25-2da59a516031

But If I format as FAT,it can both read and write:

[nisy@nisy nisy]$ ls -al
总计 4
drwxr-x---+ 3 root root  60 8月23日 23:27 .
drwxr-xr-x 3 root root  60 8月23日 23:24 ..
drwxrwxrwx 1 nisy nisy 4096 8月23日 23:27 0B3770F07ADC8623

So why linux type partition only read only?

If I  "chmod 777" the folder of disk ,then I can read/write.

2

Re: format a whole disk using ext4 format,just read only?

Ext4 is a Linux native file system so has Unix / POSIX file permissions.
https://en.wikipedia.org/wiki/File-syst … ermissions

FAT is a Windows native file system so has DOS / Windows file permissions.
https://en.wikipedia.org/wiki/File_attribute

Linux is interpreting FAT file permissions on the disk into Unix / POSIX ones for displaying and working with.