How do I check the file system on media that is vfat format? Other Linux systems have fsck.vfat, but it does not appear to be on the Pi? I do prefer ext file systems but since my flash memory cards and sticks also need to be read by my PDA, I need to leave them as vfat since if the PDA crashes during read.write operations, ext2 and ext3 file systems seem to get corrupted much more seriously than the vfat.
The following is what I get when I try to mount and then fsck a 4 GB stick.
[root@alarmpi ~]# mount /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so
[root@alarmpi ~]# fsck
fsck fsck.ext4 fsck.reiserfs
fsck.cramfs fsck.ext4dev fsck.xfs
fsck.ext2 fsck.jfs
fsck.ext3 fsck.minix
[root@alarmpi ~]# fsck /dev/sda1
fsck from util-linux 2.21.2
fsck: fsck.vfat: not found
fsck: error 2 while executing fsck.vfat for /dev/sda1
[root@alarmpi ~]#
I really do not want to have to eject the media from the Pi and move it to another Linux system to do this, it is something that the Pi should be able to do. If I am having trouble mounting a device, I ought to be able to debug the situation directly on the Pi.
fsck for vfat media on Arch
3 posts
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
- Posts: 865
- Joined: Fri Mar 16, 2012 5:20 am
- Location: California
You want the package dosfstools
Save this file to your fat
http://us.mirror.archlinuxarm.org/armv6h/extra/dosfstools-3.0.12-1-armv6h.pkg.tar.xz
pacman -U /boot/dosfstools-3.0.12-1-armv6h.pkg.tar.xz
Will try to put this on next rootfs
Save this file to your fat
http://us.mirror.archlinuxarm.org/armv6h/extra/dosfstools-3.0.12-1-armv6h.pkg.tar.xz
pacman -U /boot/dosfstools-3.0.12-1-armv6h.pkg.tar.xz
Will try to put this on next rootfs
- Posts: 786
- Joined: Fri Oct 07, 2011 9:55 am
@pepedog: thanks, it does seem like something pretty standard I was shocked to see was not built in.
My trouble now is that I cannot mount the vfat media containing my local repository for Pacman to install anything...may have to put the essential things in /boot! I hope not, but I see now that is what you said to do. Okay.
My trouble now is that I cannot mount the vfat media containing my local repository for Pacman to install anything...may have to put the essential things in /boot! I hope not, but I see now that is what you said to do. Okay.
FORUM TIP: To view just one person's posting history, sign in, click on their user name, then click on "Search User's Posts." || This Pi owner is running Arch on 512MB Model B.
- Posts: 865
- Joined: Fri Mar 16, 2012 5:20 am
- Location: California