Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

zsh does not recognize mkfs.fat command...

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
mikefot
l33t
l33t
Posts: 709
Joined: Wed Nov 19, 2014 5:34 pm

zsh does not recognize mkfs.fat command...

  • Quote

Post by mikefot » Sun Oct 18, 2020 3:23 pm

Dear All,

I am running gentoo stable on an FX 8350 box.

I am using

Code: Select all

zsh
.

I tried running the following command:

Code: Select all

➜  /boot mkfs.fat -F 32 -n efi-boot /dev/sda1

Code: Select all

zsh: command not found: mkfs.fat
➜  /boot
How do I get

Code: Select all

zsh
to run the

Code: Select all

mkfs 
command?

Regards

Michael Fothergill
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Oct 18, 2020 3:45 pm

/usr/sbin/mkfs.fat <whatever>

Edit to add: I assume that you have already emerged dosfstools
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
mikefot
l33t
l33t
Posts: 709
Joined: Wed Nov 19, 2014 5:34 pm

  • Quote

Post by mikefot » Sun Oct 18, 2020 3:52 pm

Many thanks for your advice.

I ran

Code: Select all

emerge dosfstools
.

Code: Select all

mkfs.fat
worked after that.

Cheers

MF

PS

Code: Select all

root@bucketlist $ grub-install --efi-directory=/boot/efi         
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.
root@bucketlist $
I can neither mount the

Code: Select all

/boot/efi
directory nor install

Code: Select all

grub
into it:

Code: Select all

root@bucketlist $ mount /boot/efi                                
mount: /boot/efi: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper prog
ram, or other error.
root@bucketlist $

Code: Select all

root@bucketlist $ ls -l
total 101996
-rw-r--r-- 1 root root  2090043 May 23 21:45 System.map-5.4.38-gentoo
-rw-r--r-- 1 root root  5174965 Aug 18 12:40 System.map-5.7.13
-rw-r--r-- 1 root root  5356126 Oct 14 15:30 System.map-5.8.14
-rw-r--r-- 1 root root  2525093 Oct 18 14:18 System.map-5.9.0-gentoo
-rw-r--r-- 1 root root    73078 May 23 21:45 config-5.4.38-gentoo
-rw-r--r-- 1 root root   221044 Aug 18 12:40 config-5.7.13
-rw-r--r-- 1 root root   224954 Oct 14 15:30 config-5.8.14
-rw-r--r-- 1 root root    74865 Oct 18 14:18 config-5.9.0-gentoo
drwxr-xr-x 2 root root     4096 Oct 18 16:43 efi
drwxr-xr-x 2 root root     4096 Oct 18 15:24 grub
-rw-r--r-- 1 root root 30769543 Aug 18 12:40 initramfs-5.7.13.img
-rw-r--r-- 1 root root 30091785 Oct 14 15:30 initramfs-5.8.14.img
-rw-r--r-- 1 root root  4022832 May 23 21:45 vmlinuz-5.4.38-gentoo
-rw-r--r-- 1 root root  9629984 Aug 18 12:40 vmlinuz-5.7.13
-rw-r--r-- 1 root root 10152064 Oct 14 15:30 vmlinuz-5.8.14
-rw-r--r-- 1 root root  3998208 Oct 18 14:18 vmlinuz-5.9.0-gentoo
root@bucketlist $
Comments appreciated
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Sun Oct 18, 2020 7:48 pm

mikefot, it is not clear from your last post: did you also update the entry for /boot/efi in /etc/fstab? How does it look like?
Top
mikefot
l33t
l33t
Posts: 709
Joined: Wed Nov 19, 2014 5:34 pm

  • Quote

Post by mikefot » Thu Oct 22, 2020 10:35 am

Many thanks for your reply.


My fstab file is here:

Code: Select all

➜  /etc more fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed); notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
#       filesystems.  This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
#       more reliable to use filesystem labels or UUIDs. See your filesystem
#       documentation for details on setting a label. To obtain the UUID, use
#       the blkid(8) command.

/dev/sda1               /boot/efi       vfat            noauto,noaatime 1 2
/dev/sda4               /               ext4            noatime         0 1
/dev/sda3               none            swap            sw              0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro       0 0
➜  /etc 
PS I have managed to mount /boot/efi:

Code: Select all

➜  /etc mount /dev/sda1 /boot/efi
➜  /etc 
I think things are starting to behave a bit better:

Code: Select all

➜  /etc fdisk -l
Disk /dev/sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: WDC WD2500AAJS-6
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x94e26dd6

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048  17326079  17324032   8.3G ef EFI (FAT-12/16/32)
/dev/sda2        17326080 198555647 181229568  86.4G 83 Linux
/dev/sda3       198555648 208795647  10240000   4.9G 82 Linux swap / Solaris
/dev/sda4       208795648 488396799 279601152 133.3G 83 Linux
➜  /etc 

Code: Select all

/dev/sda2
contains the root partition for an ubuntu installation I have on this machine.

Code: Select all

/dev/sda3 
is a communal swap partition

Code: Select all

/dev/sda4
contains the root partition for gentoo.

Cheers

MF
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic