Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [root-filesystem]

The root filesystem (`/`) contains the kernel and utilities needed to boot a system.

0
votes
0answers
11 views

Boot on aufs layered root file system

I would like to have a root file system composed of several aufs branches mounted on /. My Linux is a custom one created using buildroot and deployed on a board with a SAMA5D2 processor. The mmc of ...
1
vote
0answers
22 views

Switch root filesystem after copy

I currently have a script that copy the content of a microSD card to the eMMC of a BeagleBone Black. Once the copy is done, I would like to switch root filesystem for the eMMC and finish installing ...
1
vote
2answers
82 views

How does linux know where the rootfs is?

I'm trying to understand how the linux kernel knows where the desired rootfs is on boot. I read this document: https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt One ...
56
votes
1answer
3k views

Change permisions of a file with my cat's help

I realize the question title probably sounds weird, theoretical, or just plain stupid. There's a long backstory to this! root@system:~# less myfile -bash: /bin/less: Input/output error The root ...
2
votes
1answer
55 views

How do you completely switch the root files system on Linux?

I am running my rootfs on a flash device (MTD device with UBIFS) - Note: it's a bitbake system so its not full-blown ubuntu or anything. I want to be able to format that device and write a new rootfs ...
2
votes
2answers
38 views

Replace LUKS partition with ext4 partition with same contents

I have a LUKS (Linux Unified Key Setup) partition that contains the rootfs. I wish to replace it with an unencrypted ext4 partition containing the same rootfs. Having searched far and wide I've seen ...
0
votes
0answers
68 views

Can't mount system partition to rw

mount -o rw,remount /system I tried mounting the system this command, not work. Downloaded the Total Commander app mount system this WORK but not fully. I get device resource or busy error message ...
0
votes
0answers
59 views

[dpkg: error: failed to open package info file /var/lib/dpkg/updates/0049 for reading: Input/output error]

I am trying to install qt4 dev. tools on bananapi. During installation half of the way, I got this error message: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'to correct the ...
0
votes
2answers
62 views

Where should I put my source code? [duplicate]

I am using multiple tools developed by the suckless people which are not configured via a config file but via their source code (in this case C) and then simply installed through make install. So I am ...
1
vote
0answers
93 views

can't build busybox with musl [closed]

I tried a lot of different configurations with musl and busybox but i can't get it to work. Starting out i though that busybox would build /bin /usr /sbin and musl would give me /lib and magically ...
1
vote
1answer
111 views

Adding ZFS to a Preseeded Debian Installer

I'm looking to create an (internal, for legal reasons) preseeded debian (stretch) installer that will automatically create a root zpool from all available HDs instead of going through (whether ...
0
votes
1answer
35 views

Is it possible/practical to use a Linux server to authenticate Windows devices?

I am from a small concern and we are currently looking into getting a server purely for authentication and saving user data's. I do not want to push software to the devices or anything like that. I ...
3
votes
2answers
124 views

Where does kernel define the SD card naming index?

I'm running an embedded board that is booted from an SDCard. The location of the rootfs gets passed to the kernel via kernel parameters: Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 ...
0
votes
1answer
56 views

What makes debian different from other variants given they have same kernel? [closed]

In the recent project we have been asked to create a debain based system for a SOC. Doing some gooogling I did find guides that point to ways to use yocto to create a debian system [1]. But then I ...
1
vote
0answers
54 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
1
vote
0answers
55 views

Kernel Panic unable to mount rootFS when booting without initrd [closed]

I am trying to boot a linux kernel(version 4.14.13+) without initrd support. I compiled most of the modules required for PCI, filesystem and chipset driver with the kernel. I still get the Kernel ...
2
votes
1answer
168 views

Diskless Ubuntu - manpages fail

I've set up diskless client, but man does not work: man: error while loading shared libraries: libmandb-2.8.3.so: cannot open shared object file: Permission denied Root is mounted like this (mount):...
0
votes
2answers
70 views

What are limitations chrooted system? [closed]

Chroot allows us to change the root directory, or rather root directory of specific process. Now obviously this does restrict the process to the specified tree (unless it doesn't relinquish the ...
0
votes
1answer
212 views

Read-only filesystem - Considerations and Loss of Functionality

I'm creating an embedded system using Buildroot. Currently, my Buildroot configuration ensures the rootfs is remounted as read/write during startup. However I would like to remove this feature and ...
4
votes
1answer
885 views

When can Linux boot with a Read-Only Root Filesystem

I am working on a embedded Linux with u-boot as bootloader and systemd init system. The tools are limited to standard busybox. While analyzing some problems, I figured out the root filesystem is read ...
0
votes
0answers
111 views

setcap settings do not reflect in getcap

root@localhost:~# setcap cap_net_raw+p /bin/ping root@localhost:~# getcap /bin/ping root@localhost:~# ls -l $(which ping) -rwsr-xr-x. 1 root root 34752 Nov 8 2014 /bin/ping root@localhost:~# ping ...
0
votes
0answers
29 views

How to change to the ROOT use in Cloudera Quickstart VM

I'm trying to copy the SQL Server sqljdbc_6.0.8112.200_enu.tar.gz to the /var/lib/sqoop/ directory and I'm receiving a Permission Denied error. I am using the Cloudera user. Thanks in advance for your ...
1
vote
2answers
64 views

Using a different directory than /usr as standard

Is there any possibility to use a different directory than /usr as the standard directory to install things? I am asking, since I got an Endless OS system where /usr is read-only, thus not being able ...
0
votes
1answer
131 views

I can't boot after add more space to /root ,

I think I do something wrong and made filesystem mess , please look that pic , I can't boot , it said emergency mode, please exit to the shell And after I check the logs It said my default.target ...
0
votes
1answer
2k views

root file system stays read-only

I am currently trying to start working with an embedded linux device (arm). When I am trying to install packages it fails saying that some /usr/... path points to a read-only filesystem. By looking ...
0
votes
1answer
46 views

Copy a file via drag and drop to `/usr/local` [closed]

I have a file mathpass (without a file ending .*) in /home/patrick/Documents and want to copy it via drag and drop to /usr/local. If I do so, a message Access denied. Could not write to. appears. ...
0
votes
1answer
23 views

Why is /boot empty on nfsboot nfs host, when files exist on booted client?

I am confused to say the least. Where are these files kept? So, isc-dhcp server, providing network boot and tftp server records. A tftp host providing an initrd and vmlinux image over pxelinux.0. An ...
1
vote
1answer
186 views

Updating root filesystem remotely in-place

Let's say one has only remote access (SSH) to an embedded Linux device and the goal is to upgrade the OS to a new version. The device has only one partition, but there's easily more than 50% unused ...
0
votes
1answer
45 views

How are Configuration Parameters 'written' on “Read Only” bootable Linux CD/USB, when plugged into any system?

I am trying to understand about the file system of bootable system on CD. For CDs which can only be written once, how exactly does system boot? Aren't there any configuration parameters which need to ...
0
votes
1answer
84 views

Permission automatically resets to root after using chown

I've got a samba shared directory which previously was setup normally but I noticed not being able to connect to it anymore. Turns out that permissions were reset to root and whenever I try to change ...
0
votes
0answers
812 views

rootfs partition in qemu and kernel command line argument

I have a yocto build for core-image-minimal where kernel image (Image) and rootfs (tar.gz) are separate file. On running qemu-system-aarch64, I just want to give 2 different partition where kernel ...
0
votes
0answers
137 views

ACPI Volume Control (not brightness)

For some reason, upon upgrading to Ubuntu 16.04, my volume and brightness media controls are no longer registering as XF86 keys. I created an acpi event and action script for my screen brightness in /...
2
votes
2answers
849 views

Which filesystem should I use in an SD card on a NAS?

My NAS can hold several 3.5" hard drives and an SD card. I'm planning to boot and run a custom Linux system (based on Debian, built by me) from an SD card, and the 3.5" hard drives will be used for ...
1
vote
0answers
285 views

root partition on AIX is full i.e 100%usage [closed]

I have an AIX server and its root partition says 100% space used. There was only 2 GB initially allocated. I want to increase its size using chfs. I want to know is this is safe to increase the size ...
2
votes
1answer
551 views

Pass root file system by label to linux kernel

How can I boot the linux rootfs from u-boot passing rootfs partition by label ? I'm using u-boot as bootloader and the card is a RedPitaya. The linux is a customized Linux based on the stable ubuntu ...
2
votes
2answers
1k views

Running QEMU with a root file system directory instead of disk image

In order to test the root file system i need to run QEMU with created disk image as root file system, the QEMU accepts -kernel which can be used for specifying kernel directly without deploying it ...
1
vote
1answer
874 views

Move mount or increase space in /var/log

I am using CloudLab to create an openstack setup, and the filesystem structure on the controller node looks like this: root@ctl:/users/Jasim9# df -h Filesystem ...
0
votes
1answer
11 views

nsroot, what directories need to be host-specific?

I'm playing with an nfsroot boot for multiple hosts; Ubuntu has some dated docs that recommend: #/etc/fstab none /tmp tmpfs defaults 0 0 none /var/run ...
0
votes
1answer
69 views

Why should the rootfs have root ownership

The question maybe odd but i didn´t find any explanation to it, so: Sevreral tools for generating rootfs use fakeroot in order to fake the permissions, create the rootfs and then archive it. After ...
0
votes
1answer
379 views

Buildroot generate rootfs with gcc

I wanted to build rootfs using buildroot with preinstalled gcc, but I can't find which config is responsible for building gcc package. What I want is just a rootfs for qemu x86_64. Is there a way in ...
0
votes
1answer
581 views

lvextend and resize2fs in root filesystem

My root filesystem is out of space; I checked with vgdisplay and I found there are 24.81GB free PEs in the root volumegroup: Free PE / Size 6351 / 24.81 GiB I have added extra space to other ...
1
vote
1answer
550 views

Kernel Boot over NFS

I'm trying to boot the 4.13.0-rc2 mainline kernel on the Beaglebone Black (rev C) with omap2plus_defconfig over NFS. I've enabled CONFIG_NFS_ROOT along with the following options: CONFIG_NFS_FS=y ...
1
vote
1answer
852 views

lsblk doesn't show anything about root file system

On openSUSE Leap 42.3, lsblk output is like below which doesn't show anything about / i.e. root. Now my question is what about root file system? > lsblk NAME MAJ:MIN RM SIZE RO TYPE ...
0
votes
1answer
75 views

Personal `usr` directory

I recently started to put all my dotfiles in a VCS, and just for complete organization, I thought of creating a personal "usr" folder, as in a folder within the home folder that gets "merged" with the ...
1
vote
0answers
245 views

Strange inode count with /dev/vzfs

I am using Plesk on an Ubuntu 14.04 server and experiencing some strange problems: I checked mount: /dev/vzfs on / type reiserfs (rw,usrquota,grpquota) Then stat /dev/vzfs: stat: cannot stat ‘/dev/...
1
vote
0answers
46 views

Making root being bind mounted

I have XUbuntu and Arch on a laptop, I'm sharing /boot partition between these distros mounting it on /mnt/boot and bind-mounting /mnt/boot/xubuntu or /mnt/boot/arch onto /boot; it works fine even ...
1
vote
2answers
667 views

Mounting same device on / as read-only, in subdirectory(/mnt/rootfs) as R/W

I have UBIFS device /dev/ubi0_1. The device is root for linux rootfs, mounted on kernel boot as Read-Only. So i have /dev/ubi0_1 mounted on / as RO. Later i want to mount /dev/ubi0_1 on /mnt/rootfs ...
3
votes
2answers
1k views

The different uses of folders in the / (root) directory

There are a lot of folders in the / directory what do they all do? I know a few like /dev has links to devices in the system but what about /lost+found or /proc I just am curious.
2
votes
0answers
144 views

Using an initrd/initramfs as the root filesystem

In Android, the initial RAM disk stays mounted throughout the entirety of the time the operating system is running. No switch_root/pivot_root takes place. Is this kind of setup easy to pull off with ...
0
votes
1answer
583 views

Mount new disk to existing root mountpoint using mhddfs (merging filesystems)

I have a new disk on server (sdb) and I want to mount it to existing root mountpoint (sda1 mounted on /) to merge it. There is an utility called mhddfs which is doing exactly what I want. But the ...