reading sd card under linux

Moderators: Mug UK, Zorro 2, Greenious, spiny, Moderator Team

Posts: 19
Joined: Thu May 19, 2011 5:11 am

reading sd card under linux

Postby caver99 » Wed Jan 17, 2018 9:29 pm

I have a mist fpga with 32gb sd card with 3 partitions on it first on is my fat32 boot partition, second on is a 2gb ffs boot partition(DH0) and third is ffs 10gb partition(DH1) is there anyway to access the 2nd and trd partitions under linux so i can add my whdload files to the 10gb partition?

i can see them but cant mount them as there was meant to be AFFS file support but cant mount them or find any info to install i am using debian stretch.


Captain Atari
Captain Atari
Posts: 163
Joined: Thu Sep 17, 2015 11:39 pm

Re: reading sd card under linux

Postby kolla » Thu Jan 18, 2018 9:05 pm

You need a kernel with AFFS support, and that's not really something that is typically enabled by default.

To check if your kernel already support AFFS, you can look in the meta file /proc/filesystems, that have all supported filesystems listed up...

Code: Select all

# grep affs  /proc/filesystems

If your kernel was compiled with affs support, it most likely was built as a module, so to load the modules, you use...

Code: Select all

# modprobe affs

Once you have a kernel with affs support, you can manually mount the affs partition, for example on /mnt if the SD card is available as /dev/sdb ...

Code: Select all

# mount -t affs /dev/sdb2 /mnt
-- kolla

Return to “MiST”

Who is online

Users browsing this forum: No registered users and 4 guests