H hruodr Nov 3, 2023 #1 Doing fsck on USB flash memory, I get: ** Last Mounted on /mnt Where is this information stored? On the flash memory?
Doing fsck on USB flash memory, I get: ** Last Mounted on /mnt Where is this information stored? On the flash memory?
C Charlie_ Nov 3, 2023 #3 It is located in a super block. grep Last\ Mounted /usr/src/sbin/fsck_ffs/main.c printf("** Last Mounted on %s\n", sblock.fs_fsmnt); grep name\ mounted /usr/src/sys/ufs/ffs/fs.h uint8_t fs_fsmnt[MAXMNTLEN]; /* name mounted on */
It is located in a super block. grep Last\ Mounted /usr/src/sbin/fsck_ffs/main.c printf("** Last Mounted on %s\n", sblock.fs_fsmnt); grep name\ mounted /usr/src/sys/ufs/ffs/fs.h uint8_t fs_fsmnt[MAXMNTLEN]; /* name mounted on */
OP H hruodr Nov 4, 2023 Thread Starter #4 No way to avoid writing in the medium? To make a read only ffs?
covacat Nov 4, 2023 #5 if you mount it ro it won't write anything on it after all it works on readonly media