Git Product home page Git Product logo

Comments (12)

rudybroersma avatar rudybroersma commented on August 22, 2024 1

Tesla's officially docs say it must be FAT32 but this is not true, the car will mount and happily write to
ext4 tested on my model 3 software version 2019.20.4.2).

Actually, it doesn't. It says ext3/ext4 is fine as well. See:

https://scontent-ams4-1.xx.fbcdn.net/v/t1.0-9/65303970_957692474568953_5781248575686049792_o.jpg?_nc_cat=103&_nc_ht=scontent-ams4-1.xx&oh=ca3b804e2b8f855934a61ed7bc871d48&oe=5D8C007A

So I agree with you, I believe we should go with ext4.

from teslacam.

wurmr avatar wurmr commented on August 22, 2024

I got a little excited, we cannot mount it at the same time. But the car will handle ext4 well as far as I can tell. The journal alone might help with FS recovery and corrupted file system that FAT is plagued with.

from teslacam.

milesburton avatar milesburton commented on August 22, 2024

from teslacam.

wurmr avatar wurmr commented on August 22, 2024

Tested and working with ext4. Both with Teslacam and by formating just a normal usb stick.

from teslacam.

milesburton avatar milesburton commented on August 22, 2024

from teslacam.

wurmr avatar wurmr commented on August 22, 2024

Yes, type 83.

execSync(`echo "type=83" | /sbin/sfdisk ${IMAGE_DIR}/cam${imageNum}`, { bubbleError: true });

from teslacam.

rudybroersma avatar rudybroersma commented on August 22, 2024

Do you still need to setup a partition table?

While I don't know for sure (but I can try it out sometime), I don't think that is required. When you plug in a non-partitioned (but formatted) ext3/ext4 drive in a Linux system it works fine. You can mount is using something like mount /dev/sdb /mnt

I don't see why this would be different in Tesla (which is just Linux).

Of course the only exception would be the separate cam and music disks, which would require partitioning.

from teslacam.

wurmr avatar wurmr commented on August 22, 2024

Do you still need to setup a partition table?

While I don't know for sure (but I can try it out sometime), I don't think that is required. When you plug in a non-partitioned (but formatted) ext3/ext4 drive in a Linux system it works fine. You can mount is using something like mount /dev/sdb /mnt

I don't see why this would be different in Tesla (which is just Linux).

Of course the only exception would be the separate cam and music disks, which would require partitioning.

In my testing I was unable to get the Tesla to see the drive w/o setting up the table. Anything else I tried I ended up with the grey X on the camera. Maybe I was doing something wrong.

from teslacam.

milesburton avatar milesburton commented on August 22, 2024

I'm addressing this issue on branch https://github.com/milesburton/teslacam/tree/add-ext4-filesystem

It's not quite as straightforward as fat32 as it requires you to modify the kernel params. I suspect @wurmr may have a clever solution to get around this in docker

from teslacam.

milesburton avatar milesburton commented on August 22, 2024

ext4 appears to work in my MS on the latest update via a USB flash card. The branch above needs to be updated to include @wurmr's optimisations

from teslacam.

milesburton avatar milesburton commented on August 22, 2024

On this branch @wurmr, how much work would it be to merge this into your docker setup? Any chance you would test it with your setup?

from teslacam.

wurmr avatar wurmr commented on August 22, 2024

@milesburton I'd say make a PR and let's take a peek and work through it.

from teslacam.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.