Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: yimding on July 23, 2024, 05:52:02 AM

Title: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: yimding on July 23, 2024, 05:52:02 AM
i have installed dosfstools in corepure14, and i can see mkfs.vfat command in /usr/local/bin, but when i exec mkfs.vfat command
below is the command output, i don't know why?
# mkfs.vfat
-sh: mkfs.vfat: not found

the dosfstools.tcz i download from http://tinycorelinux.net/14.x/x86/tcz/

maybe i need to install some others tcz depends
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: gadget42 on July 23, 2024, 11:15:10 AM
were you using "sudo"?
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: Rich on July 23, 2024, 12:38:33 PM
Hi yimding
Welcome to the forum.

Sometimes after installing an extension, a terminal that was already open
doesn't know new commands are available. When that happens, enter
this command to make the terminal aware of the update:
Code: [Select]
hash -rOr if you can't remember that command, just open a new terminal.
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: yimding on July 23, 2024, 09:42:27 PM
Hi yimding
Welcome to the forum.

Sometimes after installing an extension, a terminal that was already open
doesn't know new commands are available. When that happens, enter
this command to make the terminal aware of the update:
Code: [Select]
hash -rOr if you can't remember that command, just open a new terminal.

hello Rich
i had exec hash -r in my system, but problem still exist
(https://forum.tinycorelinux.net/index.php?action=dlattach;topic=27170.0;attach=6829)
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: yimding on July 23, 2024, 10:01:47 PM
Hello Rich
i check the package dosfstools.tcz,md5sum :b6153a469d1d56e1e6895c6812a344cd
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: Rich on July 23, 2024, 10:14:29 PM
Hi yimding
i have installed dosfstools in corepure14, ...
That's a 64 bit operating system.

Quote
... the dosfstools.tcz i download from http://tinycorelinux.net/14.x/x86/tcz/ ...
That's a 32 bit extension.

64 bit extensions are here:
http://tinycorelinux.net/14.x/x86_64/tcz/

You should be using  tce-load  to install extensions.

My Corepure 14 shows this:
Code: [Select]
tc@box:~$ ls -al /tmp/tcloop/dosfstools/usr/local/sbin/
total 141
drwxr-xr-x 2 root root   181 May 26  2021 ./
drwxr-xr-x 3 root root    27 May 26  2021 ../
lrwxrwxrwx 1 root root     8 May 26  2021 dosfsck -> fsck.fat
lrwxrwxrwx 1 root root     8 May 26  2021 dosfslabel -> fatlabel
-rwxr-xr-x 1 root root 31016 May 26  2021 fatlabel
-rwxr-xr-x 1 root root 67992 May 26  2021 fsck.fat
lrwxrwxrwx 1 root root     8 May 26  2021 fsck.msdos -> fsck.fat
lrwxrwxrwx 1 root root     8 May 26  2021 fsck.vfat -> fsck.fat
lrwxrwxrwx 1 root root     8 May 26  2021 mkdosfs -> mkfs.fat
-rwxr-xr-x 1 root root 44064 May 26  2021 mkfs.fat
lrwxrwxrwx 1 root root     8 May 26  2021 mkfs.msdos -> mkfs.fat
lrwxrwxrwx 1 root root     8 May 26  2021 mkfs.vfat -> mkfs.fat
tc@box:~$
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: yimding on July 23, 2024, 11:02:29 PM
Hi Rich
i change to install dosfstools x86_64 version has fix  my problem, thank you very much!! ;D ;D
Title: Re: CorePure14 installed dosfstools but mkfs.vfat command can not use
Post by: Rich on July 23, 2024, 11:06:22 PM
Hi yimding
You are welcome.