LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-18-2023, 10:12 AM   #1
chapolin
LQ Newbie
 
Registered: Mar 2023
Posts: 3

Rep: Reputation: 0
Busybox switch_root not changing root to /dev/sda1


Hello, my problem is.
I'm trying to make a simple linux distro from scratch and when try change to /dev/sda1 not go saying no such file or directory, redirecting to busybox shell

dmseg:
Code:

Code:
[    0.000000] Command line: console=ttyS0
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] signal: max sigframe size: 1440
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000007fdffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000007fe0000-0x0000000007ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] BIOS-e820: [mem 0x000000fd00000000-0x000000ffffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] e820: update [mem 0x00ba81c0-0x00ba81ef] usable ==> usable
[    0.000000] e820: update [mem 0x00ba81c0-0x00ba81ef] usable ==> usable
[    0.000000] extended physical RAM map:
[    0.000000] reserve setup_data: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] reserve setup_data: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] reserve setup_data: [mem 0x0000000000100000-0x0000000000ba81bf] usable
[    0.000000] reserve setup_data: [mem 0x0000000000ba81c0-0x0000000000ba81ef] usable
[    0.000000] reserve setup_data: [mem 0x0000000000ba81f0-0x0000000007fdffff] usable
[    0.000000] reserve setup_data: [mem 0x0000000007fe0000-0x0000000007ffffff] reserved
[    0.000000] reserve setup_data: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[    0.000000] reserve setup_data: [mem 0x000000fd00000000-0x000000ffffffffff] reserved
[    0.000000] SMBIOS 2.8 present.
[    0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-20220807_005459-localhost 04/01/2014
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] last_pfn = 0x7fe0 max_arch_pfn = 0x400000000
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.000000] found SMP MP-table at [mem 0x000f5ba0-0x000f5baf]
[    0.000000] RAMDISK: [mem 0x07da5000-0x07fdffff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000F59D0 000014 (v00 BOCHS )
[    0.000000] ACPI: RSDT 0x0000000007FE1AC6 000034 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: FACP 0x0000000007FE197A 000074 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 0x0000000007FE0040 00193A (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: FACS 0x0000000007FE0000 000040
[    0.000000] ACPI: APIC 0x0000000007FE19EE 000078 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: HPET 0x0000000007FE1A66 000038 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: WAET 0x0000000007FE1A9E 000028 (v01 BOCHS  BXPC     00000001 BXPC 00000001)
[    0.000000] ACPI: Reserving FACP table memory at [mem 0x7fe197a-0x7fe19ed]
[    0.000000] ACPI: Reserving DSDT table memory at [mem 0x7fe0040-0x7fe1979]
[    0.000000] ACPI: Reserving FACS table memory at [mem 0x7fe0000-0x7fe003f]
[    0.000000] ACPI: Reserving APIC table memory at [mem 0x7fe19ee-0x7fe1a65]
[    0.000000] ACPI: Reserving HPET table memory at [mem 0x7fe1a66-0x7fe1a9d]
[    0.000000] ACPI: Reserving WAET table memory at [mem 0x7fe1a9e-0x7fe1ac5]
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x0000000007fdffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x07da1000-0x07da4fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x0000000007fdffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x0000000007fdffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x0000000007fdffff]
[    0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[    0.000000] On node 0, zone DMA: 97 pages in unavailable ranges
[    0.000000] On node 0, zone DMA32: 32 pages in unavailable ranges
[    0.000000] ACPI: PM-Timer IO Port: 0x608
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[    0.000000] ACPI: Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff]
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x00ba8000-0x00ba8fff]
[    0.000000] PM: hibernation: Registered nosave memory: [mem 0x00ba8000-0x00ba8fff]
[    0.000000] [mem 0x08000000-0xfffbffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] percpu: Embedded 52 pages/cpu s176040 r8192 d28760 u2097152
[    0.000000] pcpu-alloc: s176040 r8192 d28760 u2097152 alloc=1*2097152
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Fallback order for Node 0: 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31967
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttyS0
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 89976K/130552K available (16396K kernel code, 2657K rwdata, 5180K rodata, 1524K init, 944K bss, 40316K reserved,)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Dynamic Preempt: voluntary
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 4352, nr_irqs: 256, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] printk: console [ttyS0] enabled
[    0.000000] ACPI: Core revision 20220331
[    0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[    0.003000] APIC: Switch to symmetric I/O mode setup
[    0.011000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.020000] tsc: Unable to calibrate against PIT
[    0.020000] tsc: using HPET reference calibration
[    0.021000] tsc: Detected 2394.568 MHz processor
[    0.002550] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x22842c157b2, max_idle_ns: 440795207221 ns
[    0.004669] Calibrating delay loop (skipped), value calculated using timer frequency.. 4789.13 BogoMIPS (lpj=2394568)
[    0.005499] pid_max: default: 32768 minimum: 301
[    0.007556] LSM: Security Framework initializing
[    0.009442] SELinux:  Initializing.
[    0.015025] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.015965] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.056247] process: using AMD E400 aware idle routine
[    0.057103] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[    0.057441] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0
[    0.059373] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.060407] Spectre V2 : Mitigation: Retpolines
[    0.060778] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.061554] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT
[    0.829407] Freeing SMP alternatives memory: 44K
[    0.955289] smpboot: CPU0: AMD QEMU Virtual CPU version 2.5+ (family: 0xf, model: 0x6b, stepping: 0x1)
[    0.973142] cblist_init_generic: Setting adjustable number of callback queues.
[    0.973600] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.976798] Performance Events: PMU not available due to virtualization, using software events only.
[    0.981500] rcu: Hierarchical SRCU implementation.
[    0.981922] rcu: 	Max phase no-delay instances is 400.
[    0.995120] smp: Bringing up secondary CPUs ...
[    0.995492] smp: Brought up 1 node, 1 CPU
[    0.996333] smpboot: Max logical packages: 1
[    0.996799] smpboot: Total of 1 processors activated (4789.13 BogoMIPS)
[    1.024359] devtmpfs: initialized
[    1.041647] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    1.042720] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    1.049507] PM: RTC time: 20:20:22, date: 2023-03-17
[    1.059197] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    1.065869] audit: initializing netlink subsys (disabled)
[    1.071074] audit: type=2000 audit(1679084422.090:1): state=initialized audit_enabled=0 res=1
[    1.082333] thermal_sys: Registered thermal governor 'step_wise'
[    1.082464] thermal_sys: Registered thermal governor 'user_space'
[    1.083252] cpuidle: using governor menu
[    1.092917] PCI: Using configuration type 1 for base access
[    1.166018] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    2.737037] HugeTLB: can optimize 7 vmemmap pages for hugepages-2048kB
[    2.738647] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    2.752491] ACPI: Added _OSI(Module Device)
[    2.752936] ACPI: Added _OSI(Processor Device)
[    2.753334] ACPI: Added _OSI(3.0 _SCP Extensions)
[    2.753702] ACPI: Added _OSI(Processor Aggregator Device)
[    2.754225] ACPI: Added _OSI(Linux-Dell-Video)
[    2.754674] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    2.755066] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    2.790033] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    2.822815] ACPI: Interpreter enabled
[    2.825610] ACPI: PM: (supports S0 S3 S4 S5)
[    2.826059] ACPI: Using IOAPIC for interrupt routing
[    2.828684] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    2.829424] PCI: Using E820 reservations for host bridge windows
[    2.833987] ACPI: Enabled 2 GPEs in block 00 to 0F
[    2.912872] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    2.914822] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI HPX-Type3]
[    2.915514] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI]
[    2.918090] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[    2.924336] PCI host bridge to bus 0000:00
[    2.925619] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    2.926965] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    2.927358] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    2.928366] pci_bus 0000:00: root bus resource [mem 0x08000000-0xfebfffff window]
[    2.929454] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
[    2.930663] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.933853] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[    2.953825] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[    2.970595] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[    2.976811] pci 0000:00:01.1: reg 0x20: [io  0xc040-0xc04f]
[    2.979534] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    2.980393] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    2.980935] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    2.981377] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    2.983959] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[    2.985025] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI
[    2.985405] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
[    2.987529] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
[    2.988755] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
[    2.991018] pci 0000:00:02.0: reg 0x18: [mem 0xfebf0000-0xfebf0fff]
[    2.995359] pci 0000:00:02.0: reg 0x30: [mem 0xfebe0000-0xfebeffff pref]
[    2.996767] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    3.010640] pci 0000:00:03.0: [8086:100e] type 00 class 0x020000
[    3.011760] pci 0000:00:03.0: reg 0x10: [mem 0xfebc0000-0xfebdffff]
[    3.013365] pci 0000:00:03.0: reg 0x14: [io  0xc000-0xc03f]
[    3.016312] pci 0000:00:03.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
[    3.035649] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[    3.037644] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[    3.040548] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[    3.043612] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[    3.044999] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[    3.052210] iommu: Default domain type: Translated
[    3.052751] iommu: DMA domain TLB invalidation policy: lazy mode
[    3.056546] SCSI subsystem initialized
[    3.058960] libata version 3.00 loaded.
[    3.060739] ACPI: bus type USB registered
[    3.061928] usbcore: registered new interface driver usbfs
[    3.062816] usbcore: registered new interface driver hub
[    3.063642] usbcore: registered new device driver usb
[    3.064888] pps_core: LinuxPPS API ver. 1 registered
[    3.065332] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.066104] PTP clock support registered
[    3.069882] Advanced Linux Sound Architecture Driver Initialized.
[    3.090487] NetLabel: Initializing
[    3.090827] NetLabel:  domain hash size = 128
[    3.091165] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    3.093541] NetLabel:  unlabeled traffic allowed by default
[    3.101078] PCI: Using ACPI for IRQ routing
[    3.101563] PCI: pci_cache_line_size set to 64 bytes
[    3.102602] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    3.102883] e820: reserve RAM buffer [mem 0x00ba81c0-0x00bfffff]
[    3.102934] e820: reserve RAM buffer [mem 0x07fe0000-0x07ffffff]
[    3.104312] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[    3.104312] pci 0000:00:02.0: vgaarb: bridge control possible
[    3.104312] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[    3.104450] vgaarb: loaded
[    3.106434] hpet: 3 channels of 0 reserved for per-cpu timers
[    3.107751] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    3.108332] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[    3.113838] clocksource: Switched to clocksource tsc-early
[    3.127840] VFS: Disk quotas dquot_6.6.0
[    3.128556] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    3.132620] pnp: PnP ACPI init
[    3.139326] pnp 00:02: [dma 2]
[    3.144557] pnp: PnP ACPI: found 6 devices
[    3.188366] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    3.191676] NET: Registered PF_INET protocol family
[    3.194262] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    3.206881] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.207805] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    3.208564] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    3.209516] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    3.210222] TCP: Hash tables configured (established 1024 bind 1024)
[    3.212669] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.213584] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.216703] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    3.224060] RPC: Registered named UNIX socket transport module.
[    3.224744] RPC: Registered udp transport module.
[    3.225110] RPC: Registered tcp transport module.
[    3.225590] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.230535] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7 window]
[    3.231086] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff window]
[    3.231709] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    3.232221] pci_bus 0000:00: resource 7 [mem 0x08000000-0xfebfffff window]
[    3.232965] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[    3.234768] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    3.235324] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    3.236153] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    3.237075] PCI: CLS 0 bytes, default 64
[    3.259089] Unpacking initramfs...
[    3.297809] Freeing initrd memory: 2284K
[    3.581698] Initialise system trusted keyrings
[    3.589659] workingset: timestamp_bits=56 max_order=15 bucket_order=0
[    3.630086] NFS: Registering the id_resolver key type
[    3.631432] Key type id_resolver registered
[    3.631973] Key type id_legacy registered
[    3.633920] 9p: Installing v9fs 9p2000 file system support
[    3.704455] Key type asymmetric registered
[    3.704954] Asymmetric key parser 'x509' registered
[    3.706183] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    3.707653] io scheduler mq-deadline registered
[    3.708128] io scheduler kyber registered
[    3.715016] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    3.722314] ACPI: button: Power Button [PWRF]
[    3.729234] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    3.733517] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    3.749951] Non-volatile memory driver v1.3
[    3.750451] Linux agpgart interface v0.103
[    3.758860] ACPI: bus type drm_connector registered
[    3.808290] loop: module loaded
[    3.812085] ata_piix 0000:00:01.1: version 2.13
[    3.831505] scsi host0: ata_piix
[    3.836280] scsi host1: ata_piix
[    3.837628] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc040 irq 14
[    3.839752] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc048 irq 15
[    3.853590] e100: Intel(R) PRO/100 Network Driver
[    3.854099] e100: Copyright(c) 1999-2006 Intel Corporation
[    3.855841] e1000: Intel(R) PRO/1000 Network Driver
[    3.856343] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    4.003294] ata2: found unknown device (class 0)
[    4.007396] ata1: found unknown device (class 0)
[    4.012085] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[    4.012731] ata1.00: 2097152 sectors, multi 16: LBA48
[    4.018002] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    4.055053] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    4.074667] sd 0:0:0:0: [sda] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
[    4.077624] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    4.083740] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    4.092796] sd 0:0:0:0: [sda] Write Protect is off
[    4.093290] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    4.094267] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.100176] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    4.128160] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    4.129262] cdrom: Uniform CD-ROM driver Revision: 3.20
[    4.160666] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    4.163410]  sda: sda1
[    4.165283] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    4.182728] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.298805] tsc: Refined TSC clocksource calibration: 2394.552 MHz
[    4.299831] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x22841cf589e, max_idle_ns: 440795228873 ns
[    4.301038] clocksource: Switched to clocksource tsc
[    4.475021] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[    4.784697] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
[    4.785993] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[    4.788016] e1000e: Intel(R) PRO/1000 Network Driver
[    4.788621] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    4.789408] sky2: driver version 1.30
[    4.794009] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.795164] ehci-pci: EHCI PCI platform driver
[    4.796112] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.796799] ohci-pci: OHCI PCI platform driver
[    4.797529] uhci_hcd: USB Universal Host Controller Interface driver
[    4.799047] usbcore: registered new interface driver usblp
[    4.799891] usbcore: registered new interface driver usb-storage
[    4.801677] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    4.807074] serio: i8042 KBD port at 0x60,0x64 irq 1
[    4.809954] serio: i8042 AUX port at 0x60,0x64 irq 12
[    4.819130] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    4.822477] rtc_cmos 00:05: RTC can wake from S4
[    4.836737] rtc_cmos 00:05: registered as rtc0
[    4.838409] rtc_cmos 00:05: alarms up to one day, y3k, 242 bytes nvram, hpet irqs
[    4.843621] fail to initialize ptp_kvm
[    4.846220] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    4.848810] hid: raw HID events driver (C) Jiri Kosina
[    4.852957] usbcore: registered new interface driver usbhid
[    4.853574] usbhid: USB HID core driver
[    4.871132] Initializing XFRM netlink socket
[    4.874205] NET: Registered PF_INET6 protocol family
[    4.892131] Segment Routing with IPv6
[    4.893271] In-situ OAM (IOAM) with IPv6
[    4.896675] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.902120] NET: Registered PF_PACKET protocol family
[    4.904802] 9pnet: Installing 9P2000 support
[    4.905733] Key type dns_resolver registered
[    4.910097] IPI shorthand broadcast: enabled
[    4.911862] sched_clock: Marking stable (4933094328, -21687321)->(4963629012, -52222005)
[    4.915751] registered taskstats version 1
[    4.916129] Loading compiled-in X.509 certificates
[    4.929935] cryptomgr_test (43) used greatest stack depth: 15528 bytes left
[    4.950525] PM:   Magic number: 15:651:346
[    4.951245] tty tty63: hash matches
[    4.952544] printk: console [netcon0] enabled
[    4.952980] netconsole: network logging started
[    4.959460] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.983630] kworker/u2:2 (65) used greatest stack depth: 14752 bytes left
[    5.002190] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.005883] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.008742] cfg80211: failed to load regulatory.db
[    5.011880] ALSA device list:
[    5.012463]   No soundcards found.
[    5.124986] Freeing unused kernel image (initmem) memory: 1524K
[    5.128975] Write protecting the kernel read-only data: 24576k
[    5.134960] Freeing unused kernel image (text/rodata gap) memory: 2032K
[    5.137134] Freeing unused kernel image (rodata/data gap) memory: 964K
[    5.138281] Run /init as init process
[    5.138775]   with arguments:
[    5.138846]     /init
[    5.138922]   with environment:
[    5.138978]     HOME=/
[    5.139020]     TERM=linux
[    5.140045] Failed to execute /init (error -13)
[    5.140675] Run /sbin/init as init process
[    5.141003]   with arguments:
[    5.141023]     /sbin/init
[    5.141043]   with environment:
[    5.141060]     HOME=/
[    5.141080]     TERM=linux
[    5.143317] Run /etc/init as init process
[    5.143879]   with arguments:
[    5.143906]     /etc/init
[    5.143930]   with environment:
[    5.143951]     HOME=/
[    5.143975]     TERM=linux
[    5.145796] Starting init: /etc/init exists but couldn't execute it (error -13)
[    5.146702] Run /bin/init as init process
[    5.147065]   with arguments:
[    5.147082]     /bin/init
[    5.147097]   with environment:
[    5.147108]     HOME=/
[    5.147121]     TERM=linux
[    5.148030] Run /bin/sh as init process
[    5.148503]   with arguments:
[    5.148520]     /bin/sh
[    5.148534]   with environment:
[    5.148545]     HOME=/
[    5.148558]     TERM=linux
[    5.269418] busybox (69) used greatest stack depth: 14576 bytes left
[    5.359314] busybox (74) used greatest stack depth: 14544 bytes left
[    5.545054] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
initramfs:

Code:
#!/bin/busybox sh

/bin/busybox mount -t proc none /proc
/bin/busybox mount -t sysfs none /sys

/bin/busybox umount /proc
/bin/busybox umount /sys

/bin/busybox mknod /dev/sda block 8 0
/bin/busybox mknod /dev/sda1 block 8 1

rescue(){
  /bin/busybox echo "ERROR"
  /bin/busybox ash
}

/bin/busybox clear

/bin/busybox mount -o ro /dev/sda1 /mnt/root || rescue
/bin/busybox switch_root /mnt/root /sbin/init
/proc/partitions:
Code:
major minor  #blocks  name
   8        0    8000 sda
   8        1    8000 sda1
since now thanks
 
Old 03-20-2023, 07:23 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
It's saying it can't find init. Why do you think there is a problem with sda1?
 
Old 03-20-2023, 03:32 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
In fact, the pertinent error is
Code:
[    5.145796] Starting init: /etc/init exists but couldn't execute it (error -13)
which tells you the file exists but probably does not have execute permissions (or is malformed and not excutable).
 
Old 03-21-2023, 05:34 AM   #4
DarrenDrapkin
Member
 
Registered: Aug 2014
Location: Leeds, England
Distribution: Slackware x86 64 version 15.0
Posts: 127
Blog Entries: 3

Rep: Reputation: 27
why are you doing this :-

Code:
/bin/busybox mount -t proc none /proc
/bin/busybox mount -t sysfs none /sys
then doing this:-

Code:
/bin/busybox umount /proc
/bin/busybox umount /sys
which counteracts it?
You only need to do one of them. Ask yourself which of the two you need to do, mount or unmount.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
switch_root in busybox chesschi Linux - Kernel 0 03-20-2013 06:44 PM
Technical question: /dev/sda1 vs /mnt/sda1 macnab Linux - Newbie 5 01-03-2012 04:58 AM
Does chown user /mnt/sda1 make sda1 writeable over network? macnab Linux - Newbie 7 12-30-2011 02:25 AM
Need to resize sda1 but sda2 & sda3 is between sda1 and unallocated space. tony128 Linux - Newbie 6 09-13-2010 12:15 AM
Grub boot Hard disk- make 'root=' option a variable (/dev/sda1 keeps changing), carl0ski Linux - General 4 02-03-2007 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration