Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
More information.. Trying to run the init program on the system and it's failing..
~ # ./init
./init
mount: mounting none on /sys failed: Device or resource busy
mount: mounting none on /proc failed: Device or resource busy
mount: mounting none on /dev failed: Device or resource busy
mount: mounting none on /dev/pts failed: Device or resource busy
Type 'c4' followed by [ENTER] within the next 2 seconds to stop boot and break into initramfs.
Terminated[*] Creating base directories for init fs ...
Set System Time From RTC
[ 56.268566] rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0
[ 56.275491] i2c i2c-0: new_device: Instantiated device ds1339 at 0x68
Date is now Sat Mar 20 23:18:01 UTC 2021[*] Executing Normal Boot Process![*] Checking ext4 filesystem /dev/mmcblk0p1...
/usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[*] Appears there was an error fscking the rootfs filesystem...[*] Checking ext4 filesystem /dev/mmcblk0p2...
/usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[*] Appears there was an error fscking the recovery filesystem...[*] Checking ext4 filesystem /dev/mmcblk0p3...
/usr/sbin/fsck.ext4: Superblock invalid, trying backup blocks...
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[*] Appears there was an error fscking the persistent logs filesystem...[*] Mounting /rootfs read-only...[*] Executing Mount Command: "mount -t ext4 -o rw,discard,noatime,data=ordered,nobarrier /dev/mmcblk0p1 /rootfs"
mount: mounting /dev/mmcblk0p1 on /rootfs failed: Invalid argument
/init failed: failed to mount /rootfs read-only
ERROR! Dropping to a shell
BusyBox v1.27.1 (2020-05-19 20:39:20 MDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
~ #
~ # ls
ls
bin etc proc tmp
check_input.sh init recovery_boot usr
common_initramfs lib root var
control4 mfg_prog rootfs
dev mnt sbin
dev_prog_boot normal_boot sys
Four? At least one has partition table, /dev/mmcblk0 has three partitions. Which one has the root filesystem? It seems to have some corruption. From your messages it is not clear, you cannot work on several disks at the same time, it only confuses the issue.
eMMC (for u-boot) are an entirely different animal to what we are used to in the real world. I did look into it a while back, but couldn't get it straight since I don't have such a system to play on.
Normally recreating a partition table is trivial, but I'm not prepared to suggest anything here.
No need to be sorry. I have no clue what we are facing here myself, no experience with such a device. What I would do is I'd try and mount these filesystems one by one to understand their purpose, looking at their contents. It always helps if you understand how the device works.
Is there a known reason for this failure, like blown power supply or ... ? Or it just started malfunctioning out of blue? In case some files are damaged and/or even lost, do you have a source where to get this OS from when you need to replace it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.