Post 2979174 by ente@chaos.social
(DIR) More posts by ente@chaos.social
(DIR) Post #2974005 by kragen@nerdculture.de
2019-01-14T19:30:56Z
0 likes, 0 repeats
BitTorrent is fantastic for Kiwix files like this replica of English Wikipedia with the pictures. You know what's not great for that? Fucking VFAT flash drives, that's what.
(DIR) Post #2975594 by kragen@nerdculture.de
2019-01-14T20:26:04Z
0 likes, 0 repeats
All right, I think this is going to work to store Wikipedia on a fucking VFAT flash drive:set -e: ${usb?} ${user?}b=$usb/wikipedia-zim.img.time truncate -s 2g "$b"{1..20}for i in {1..20}; do sudo losetup "/dev/loop$i" "$b$i"; donesudo time mdadm --create /dev/md0 --level 5 --force --raid-devices=20 /dev/loop{1..20}DANGER time sudo mkfs -t ext4 /dev/md0sudo tune2fs -r 0 /dev/md0sudo mkdir /wikipedia-zimsudo mount /dev/md0 /wikipedia-zim/sudo chown "$user"."$user" /wikipedia-zim/
(DIR) Post #2975675 by kragen@nerdculture.de
2019-01-14T20:29:30Z
0 likes, 0 repeats
By using Linux's software RAID we can span the 37-gigabyte file across 40 2-gigabyte files, thus circumventing VFAT's file size limitation. It's going to be a pain to mount again in the future, though, and I wouldn't trust its failure recovery any further than I could throw an RK05. But it does seem to be working at the moment.
(DIR) Post #2978299 by kragen@nerdculture.de
2019-01-14T21:57:16Z
0 likes, 0 repeats
For what it's worth, it wasn't irretrievably corrupted by shutting down and rebooting, but the unmount never did finish until I yanked out the USB key. Then the system failed to shut down.
(DIR) Post #2978793 by ente@chaos.social
2019-01-14T22:18:31Z
0 likes, 0 repeats
@kragen maybe zipsplit(1) would have been an option
(DIR) Post #2978958 by kragen@nerdculture.de
2019-01-14T22:25:18Z
0 likes, 0 repeats
@ente You have to get the file before you can split it; I don't have space on my disk.
(DIR) Post #2979174 by ente@chaos.social
2019-01-14T22:32:54Z
0 likes, 0 repeats
@kragen hm, right, I forgot that ZIP is much like VFAT and stores the hierarchy at the very end