What Is Android's File System? [closed] - Stack Overflow
Có thể bạn quan tâm
-
- Home
- Questions
- Tags
- Users
- Companies
- Labs
- Jobs
- Discussions
- Collectives
-
Communities for your favorite technologies. Explore all Collectives
- Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams - Teams
-
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsGet early access and see previews of new features.
Learn more about Labs What is Android's file system? [closed] Ask Question Asked 14 years, 9 months ago Modified 2 years, 2 months ago Viewed 169k times Part of Mobile Development Collective 58 Closed. This question needs to be more focused. It is not currently accepting answers.Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this questionWhat is Android's file system?
Share Improve this question Follow edited Sep 9, 2018 at 17:07 Matthias Braun 34.1k27 gold badges152 silver badges176 bronze badges asked Mar 11, 2010 at 0:53 GuimoGuimo 6131 gold badge5 silver badges3 bronze badges Add a comment |9 Answers
Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 39It depends on what filesystem, for example /system and /data are yaffs2 while /sdcard is vfat.
This is the output of mount:
rootfs / rootfs ro 0 0 tmpfs /dev tmpfs rw,mode=755 0 0 devpts /dev/pts devpts rw,mode=600 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 none /dev/cpuctl cgroup rw,cpu 0 0 /dev/block/mtdblock0 /system yaffs2 ro 0 0 /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 /dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0 /dev/block//vold/179:0 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0And with respect to other filesystems supported, this is the list:
nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev binfmt_misc nodev sockfs nodev pipefs nodev anon_inodefs nodev tmpfs nodev inotifyfs nodev devpts nodev ramfs vfat msdos nodev nfsd nodev smbfs yaffs yaffs2 nodev rpc_pipefs Share Improve this answer Follow edited Oct 10, 2022 at 16:10 Matthias Braun 34.1k27 gold badges152 silver badges176 bronze badges answered Mar 12, 2010 at 0:22 Diego Torres MilanoDiego Torres Milano 69.1k9 gold badges115 silver badges143 bronze badges Add a comment | 15By default, it uses YAFFS - Yet Another Flash File System.
Share Improve this answer Follow answered Mar 11, 2010 at 0:58 FooleFoole 4,8501 gold badge27 silver badges25 bronze badges 6- Hmm Is there any other file Systems Android supports ? – Guimo Commented Mar 11, 2010 at 1:05
- 4 Android 2.3 will use ext4. – Paul Lammertsma Commented Mar 7, 2011 at 9:43
- @PaulLammertsma Is it true that manufacturers are required to follow this? – Pacerier Commented Mar 5, 2012 at 16:42
- 1 @Pacerier I don't know the policies around what manufacturers are or aren't required to do, but a quick check on a few pre- and post-Gingerbread devices (adb shell mount) confirms that from Gingerbread the filesystem is ext4, and Froyo and older are YAFFS. – Paul Lammertsma Commented Mar 5, 2012 at 17:18
- @PaulLammertsma btw do you happen to know how to get the name of the filesystem using code? – Pacerier Commented Mar 5, 2012 at 17:39
Most answers here are pretty old.
In the past when un managed nand was the most popular storage technology, yaffs2 was the most common file system. This days there are few devices using un-managed nand, and those still in use are slowly migrating to ubifs.
Today most common storage is emmc (managed nand), for such devices ext4 is far more popular, but, this file system is slowly clears its way for f2fs (flash friendly fs).
Edit: f2fs will probably won't make it as the common fs for flash devices (including android)
Share Improve this answer Follow edited Sep 28, 2015 at 13:38 answered Mar 19, 2014 at 17:58 dolbidolbi 2,2301 gold badge20 silver badges25 bronze badges Add a comment | 8Johan is close - it depends on the hardware manufacturer. For example, Samsung Galaxy S phones uses Samsung RFS (proprietary). However, the Nexus S (also made by Samsung) with Android 2.3 uses Ext4 (presumably because Google told them to - the Nexus S is the current Google experience phone). Many community developers have also started moving to Ext4 because of this shift.
Share Improve this answer Follow edited Mar 10, 2013 at 19:57 slybloty 6,4966 gold badges52 silver badges72 bronze badges answered Mar 2, 2011 at 17:36 BrianBrian 811 silver badge1 bronze badge 1- Your link is broken and I couldn't find an alternative. – slybloty Commented Mar 10, 2013 at 19:39
since most of the devices use eMMC,the file system android uses is ext4,except for the firmware.refer-http://android-developers.blogspot.com/2010/12/saving-data-safely.html
Here is the filesystem on galaxy s4:
/system ext4
/data ext4
/cache ext4
/firmware vfat
/data/media /mnt/shell/emulated sdcardfs
The detailed output is as follows:
Share Improve this answer Follow edited Sep 9, 2014 at 20:17 answered Sep 8, 2014 at 0:59 rupesh jainrupesh jain 3,4301 gold badge15 silver badges22 bronze badges 1/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime, data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,no dev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=o rdered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,node v,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ord ered 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,seclabel,nosuid,nodev,no atime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic ,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persdata /persdata/absolute ext4 rw,secla bel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,context=u:objec t_r:firmware:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437, iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/mdm /firmware-mdm vfat ro,context=u:objec t_r:firmware:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437, iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/data/media /mnt/shell/emulated sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1 023 0 0
- I have just had a corrupted file system on both cache and system partitions. Shall I just reformat them as f2f? – Elysium Commented Jan 12, 2016 at 14:46
Depends on what hardware/platform you use.
Since Android uses the Linux-kernel at this level, it is more or less possible to use whatever filesystem the Linux-kernel supports.
But since most phones use some kind of nand flash, it is safe to assume that they use YAFFS.
But please note that if some vendor wants to sell a Android netbook (with a harddrive), they could use ext3 or something like that.
Share Improve this answer Follow answered Mar 11, 2010 at 13:40 JohanJohan 20.7k28 gold badges95 silver badges110 bronze badges 1- 1 not ext3. its not good embedded devices – Droidme Commented Oct 29, 2012 at 6:46
When analysing a Galaxy Ace 2.2 in a hex editor. The hex seemed to point to the device using FAT16 as its file system. I thought this unusual. However Fat 16 is compatible with the Linux kernel.
Share Improve this answer Follow answered Nov 9, 2012 at 10:16 MichaelMichael 211 bronze badge Add a comment | 0Similar to Linux:
/boot
/system
/recovery
/data
/cache
/misc
Android supports all filesystems supported by the Linux kernel, except for a few ported ones like NTFS.
The SD card is formatted as ext3, for example.
Share Improve this answer Follow edited Oct 11, 2020 at 13:31 CommunityBot 11 silver badge answered Mar 11, 2010 at 17:30 Peter vdLPeter vdL 4,99310 gold badges42 silver badges61 bronze badges 3- 15 No, the sd card is using a fat-based filesystem, else it wouldn't be mountable by Windows. Most sd cards are formatted as fat32, although you might stumble upon small sd cards (<1GB) that can get away with using fat16. – Robert Commented Feb 26, 2011 at 8:42
- 1 You're right Robert - sorry for the goof. – Peter vdL Commented Feb 26, 2011 at 23:40
- You also didn't answer the question that was asked: "What is Android's file system?" The original poster wasn't asking what filesystems Android supports but what filesystem(s) it is installed on. – FlexMcMurphy Commented Dec 27, 2021 at 21:01
Not the answer you're looking for? Browse other questions tagged
or ask your own question. Mobile Development Collective Join the discussion This question is in a collective: a subcommunity defined by tags with relevant content and experts.- The Overflow Blog
- Legal advice from an AI is illegal
- Why do developers love clean code but hate writing documentation?
- Featured on Meta
- The December 2024 Community Asks Sprint has been moved to March 2025 (and...
- Stack Overflow Jobs is expanding to more countries
Linked
15 Is there a way to mount Android .img to access the AVD (Android Virtual Device) contents? 2 Is there a file size limit on Android Honeycomb? 3 Android file system 0 Reading specific String from text file using non-activity Java Class 0 Common storage path for all Android devices 0 Impact of writing to multiple opened files 0 forensic tool for AndroidRelated
6411 What is the difference between px, dip, dp, and sp? 3881 How to copy files 2267 What is 'Context' on Android? 1119 Exploring Docker container's file system 3109 Is there a unique Android device ID? 1634 How can I open a URL in Android's web browser from my application? 618 Quickly create a large file on a Linux system 1252 Is quitting an application frowned upon? 1469 What is the difference between gravity and layout_gravity in Android? 1497 Is there a way to get the source code from an APK file?Hot Network Questions
- Dehn-twist on punctured 3-manifold
- How to teach high school students to analyze diagrams in a proof?
- is it necessary to use `\fp_eval:n`?
- Error evaluating the area inside an epicycloid, spot my mistake?
- A guess about sudoku-like game, proof or a counterexample
- What are these circles called and how big are they?
- How can I secure a magnetic door catch with a stripped screw?
- Copyright on photographic reproductions of old paintings
- Was Basilides's claim about crucifixion ever refuted?
- Should parameter names describe their object type?
- Is it normal to connect the positive to a fuse and the negative to the chassis
- Step by step explanation of Grover diffusion operator quantum circuit for 2 qubits
- Writing ESRI File Geodatabase text fields with fixed length using Python
- Why are there different schematics symbols for one electronic component?
- PSE Advent Calendar 2024 (Day 18): A sweet & short expected chemistry Christmas puzzle
- If you are working remotely as a contractor, can you be allowed to applying as a business vistor to Australia?
- Why is the spectrum of the Laplacian on the torus discrete?
- Determine dropout spacing for vintage bike frame online
- How to Mitigate Risks Before Delivering a Project with Limited Testing?
- Open Source and offline software for image upscaling
- What would be the legal status of Jean Valjean and Cosette in the present day?
- What are "rent and waistline parties"?
- How to filter an aggregation query properly
- What's an Unethical Drug to Limit Anger in a Dystopic Setting
Từ khóa » File Hệ Thống Android
-
Cách Quản Lý File Và Sử Dụng File Hệ Thống Trên Android - Tiện ích
-
Quản Lý File Cho Android, Cái Nào 'xài OK' Nhất?
-
Cách Xem Và Quản Lý File Trên Android 10 - Thủ Thuật
-
Cách Quản Lý Tệp Và Sử Dụng Hệ Thống Tệp Trên Android - TheFastCode
-
Android Kernel File System Support
-
Data And File Storage Overview - Android Developers
-
Top 10 ứng Dụng Quản Lý File Tốt Trên Android
-
Xin Giup Chép File Vô System Hệ Thống
-
Cách Sử Dụng Es File Explorer để Chỉnh Sửa Và Sửa đổi Các Tệp Hệ ...
-
Các File Hệ Thống Khi Cài đặt ứng Dụng được đặt ở đâu?
-
Xóa File Hệ Thống Android Không Cần Root
-
How To Manage Files And Use The File System On Android