Forums

Skip to content

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

/etc/fstab parse error in all lines during boot [SOLVED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
cornplayz256
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 107
Joined: Sun Jun 25, 2023 8:30 pm
Location: /dev/mmcblk0

/etc/fstab parse error in all lines during boot [SOLVED]

  • Quote

Post by cornplayz256 » Wed Jun 28, 2023 11:58 pm

i need help, when i finished install gentoo (i had to reinstall it because i want to start fresh) then booting it, it says dracut etc fstab parse error at line 1 2 3 blah blah blah. here is my fstab:

Code: Select all

# /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.

#LABEL=boot             /boot           ext4            noauto,noatime  1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494              /               ext4            noatime         0 1
#LABEL=swap             none            swap            sw              0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro       0 0

# Adjust any formatting difference and additional partitions created from the Preparing the disks step
/dev/mmcblk0p1   /boot        vfat    defaults,noatime     0 2
/dev/mmcblk0p2   none         swap    sw                   0 0
/dev/mmcblk0p3   /            ext4    noatime              0 #1
  
#/dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0
please tell me how to fix this. thank you,
Last edited by cornplayz256 on Thu Jun 29, 2023 1:30 am, edited 1 time in total.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Jun 29, 2023 12:17 am

Code: Select all

/dev/mmcblk0p3   /            ext4    noatime              0 #1
i assume the # should not be there

there's a little tool which can help to create fstab >>> sys-fs/genfstab

make a backup of your fstab before using !

or you can do, e.g.

Code: Select all

genfstab -U / >> /etc/fstab.new
to look into it before using.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Jun 29, 2023 1:03 am

mmc is unusual for a root device on a desktop or laptop. Is this some special embedded system? Lines 1, 2, and 3 all look like normal comments to me. Are you sure you transcribed the error message correctly, and that this is the file about which it complains? When you want us to diagnose an error message for you, you need to transcribe it exactly.
Top
cornplayz256
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 107
Joined: Sun Jun 25, 2023 8:30 pm
Location: /dev/mmcblk0

  • Quote

Post by cornplayz256 » Thu Jun 29, 2023 1:29 am

Hu wrote:mmc is unusual for a root device on a desktop or laptop. Is this some special embedded system? Lines 1, 2, and 3 all look like normal comments to me. Are you sure you transcribed the error message correctly, and that this is the file about which it complains? When you want us to diagnose an error message for you, you need to transcribe it exactly.
Fixed now i had to remove the # from the 1 in the mmcblk0p3 section
Top
cornplayz256
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 107
Joined: Sun Jun 25, 2023 8:30 pm
Location: /dev/mmcblk0

  • Quote

Post by cornplayz256 » Thu Jun 29, 2023 11:30 am

Hu wrote:mmc is unusual for a root device on a desktop or laptop. Is this some special embedded system? Lines 1, 2, and 3 all look like normal comments to me. Are you sure you transcribed the error message correctly, and that this is the file about which it complains? When you want us to diagnose an error message for you, you need to transcribe it exactly.
NOTE: im on chromebook with custom bios and my internal hardive says its mmcblk0pX so ita normal for me.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

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