Questions tagged [root-filesystem]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
890 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
887 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
828 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
1k 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
81 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
347 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
70 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
1k 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
3k 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
173 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
969 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 ...
0
votes
1answer
727 views

How to build a readonly root filesystem in Arch-ARM

I have the following set-up: hw: RPi 3 Model B os: 4.4.37-1-ARCH #1 SMP armv7l GNU/Linux file system: /boot(vfat), /(ext4), /var(ext4) partitions: three; mounted: /boot, /, /var storage: mlc nand ...
6
votes
1answer
693 views

How to Run Tunefs on Root Filesystem in FreeBSD?

I want to enable ACLs for a FreeBSD 11 system. According to the FreeBSD Handbook this can be done in two ways: By using a mount option -- mount -o acls By modifying a superblock -- tunefs -a enable ...
2
votes
2answers
623 views

Export (via NFS) root (/) FS

I have 3 embedded CPU system running Linux 2.6.37, which are connected via Ethernet. Each CPU has its own NAND flash memory. One of them is "main" CPU number 0, while 2 others are his companions. I ...
0
votes
0answers
308 views

/proc not mounted as expected inside chroot?

I set chroot for my project folder ~/workspace/apollo.0 to create a security JAIL. After running chroot command, fake root filesystem is created in my project folder to make it as security JAIL. To ...
1
vote
0answers
581 views

ARM system booting from SD card with uboot - how to put everything in one FAT partition?

I am working on an ARM system running linux, which has an eMMC and an SD card slot. I've been booting from the SD card during development, with just the first stage bootloader of uboot in the eMMC and ...
0
votes
1answer
1k views

How do I replace Root Drive on Debian? [closed]

How do I replace the root drive on Debian? What is a comprehensive set of steps starting from old drive with a new empty drive ready to go to the new drive with a fully bootable install with grub and ...
2
votes
1answer
2k views

How to increase size of root?

Here is information regarding my disk space consumption. Command (m for help): p Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (...
3
votes
2answers
712 views

Weird files in root directory, is secure to delete them?

What the following files means on the root directory of my Linux (Fedora 25): $ ls -la total 70 ... -rw-r--r--. 1 root root 0 Nov 22 09:28 1 -rw-r--r-- 1 root root 0 Sep 27 09:53 ....
1
vote
1answer
278 views

How to specify an alternative root file system at boot time

I had some problem with the default rootfs and always writing out kernel panic. I want to fixed it in the kernel, so I tried many ways to solve this problem. I had base idea to fix , that is before ...
1
vote
0answers
247 views

/dev/console missing when mounting nfs

I'm trying to boot linux on a remote device. I load a uImage of the kernel via tftp: boot -uboot -tftp TFTP_SERVER:uImage and tell him where to find the root fs: console=ttyS0,9600 ip= {IPs here} ...
1
vote
1answer
138 views

/root as bind mount?

I am migrating my system from Debian 32 bit to Debian 64 bit. It is installed on /dev/sda2, so I created /dev/sda3, installed the new system there, synched installed packages and configuration files ...
6
votes
3answers
5k views

Unable to find root device ''

ERROR: device '' not found. Skipping fsck. ERROR: Unable to find root device ''. You are being dropped to recovery shell I've been trying to install Arch Linux for some time, and keep running into ...
0
votes
1answer
823 views

How to populate a root filesystem from scratch?

my situation is this : I have a freshly compiled kernel, all the applications and libraries compiled for the new platform, I know how to boot using my bootloader of choice, but I don't have a root ...
5
votes
1answer
962 views

Can I use a read-write root filesystem disk image as an OverlayFS upperdir?

Is it possible to union-mount an existing disk image containing a root filesystem to the upperdir of an overlayfs mount for read-write access? I'm trying to union-mount some old disk images to a /tmp/...
2
votes
1answer
93 views

Linux Mint is installing programs to / and not /home, how do I resolve this?

I have an issue with Linux Mint saving things to root and not the home directory. I need assistance with this, a friend is being rather persistent about it. Every time a package is installed it ...
2
votes
2answers
5k views

sudo rm -rf --no-preserve-root / vs sudo rm -rf /*

As everyone knows, these are two deadly unix commands that both tell a machine to commit suicide. But what is the difference between the two? The first one deletes the root directory, while the second ...
2
votes
0answers
2k views

btrfs error unknown - root fs will not mount

I am running Arch Linux on a system with full disk encryption and the storage is a Samsung 950 Pro NVMe drive (512 GB). The computer is a couple months old. No bad behavior until now. (I'm only using ...
1
vote
2answers
983 views

Is the root filesystem unmounted during a Linux shutdown?

If the root filesystem is unmounted, then how can init be accessed to run the last few steps that occur afterwards?
11
votes
4answers
1k views

Does POSIX limit the number of directories in the os root?

I'm trying to learn the POSIX standard. When using Unix, I have /bin, /etc, /dev, /media, and usually /opt, but is that standardized or up to your spec implementation? Could there be many directories ...
6
votes
2answers
11k views

What is zImage, rootfs

I am very much new to Embedded Linux. We use poky build system. We just use bitbake linux-imx command to build the kernel. It generates some files zImage, rootfs, uboot and also a sdcard image. We ...
10
votes
3answers
10k views

Why on some Linux systems, does the root filesystem appear as /dev/root instead of /dev/<real device node>in mtab?

I've seen on various Linux systems where instead of the real device node (for example: /dev/sda1), the root device appears as /dev/root, or instead of the real filesystem, mtab says it is a filesystem ...
2
votes
2answers
517 views

What's the Debian equivalent of Ubuntu Core/Base images?

For Ubuntu I use the Core/Base images as available here: http://cdimage.ubuntu.com/ubuntu-base/releases/ These 'images' are just base rootfs tarballs which can be used with for example rkt. More ...
3
votes
2answers
9k views

How to reduce LVM for root partition?

I am trying to reduce the space dedicated to root LVM since I don't really need it and I am having a few doubts. Below is the output for lvdisplay: # lvdisplay --- Logical volume --- LV Path ...
15
votes
4answers
25k views

Mount root filesystem from initramfs

It's a common scenario. For whatever reason, the initramfs (OpenSUSE, in case it matters) has failed to find the root filesystem, so it drops you into a rescue shell. I know perfectly well what device ...
2
votes
1answer
2k views

Patching the kernel to allow booting without initrd

The first answer of 'Why does Linux use an Initial Ram Disk at boot?' states that the initrd/initial ram filesystem is used to provide drivers to mount the real root filesystem. It also says that it ...
1
vote
1answer
207 views

Add parameters to NFS mount

I try to start Android on device via NFS and TFTP. Everything goes good until Android system starts booting. Something happens with network parameters and connection falls and boot freezes [ 60....
2
votes
1answer
767 views

kernel init without 'root=' parameter

From systemd/fstab-generator.c it follows that systemd treats root= as required kernel parameter, the only configuration source for /sysroot mount. However from kernel/init/main.c and kernel/init/...
1
vote
0answers
341 views

Different mount output with and without initramfs

I need to create an initramfs to load a driver to access EMMC which contains the root filesystem. In my current kernel build, the EMMC driver is modular (sorry, can't change this). After the kernel ...
2
votes
2answers
1k views

Effects of mounting / (filesystem root) with nodev option

I'm wondering about the effects of setting the nodev option for / mount in /etc/fstab. As I understand it, nodev prevents the interpretation of special nodes, so you can prevent rogue users or ...
1
vote
1answer
601 views

How to encrypt a live root fs remotely and unlock it via ssh

I have a Linux Arch system running on a VPS. The rootfs is installed on a LVM partition. I would like to overlay an encrypted container on this partition, then reinstall the rootfs on it and enable ...
1
vote
0answers
56 views

Why could I need to fsck check the root file system?

This could sound like a rather obvious question, but we all know that soft-checking of any partition is sometimes a need, and we perform it in cases like unstabilities found, lost files or (...
1
vote
1answer
1k views

qemu: boot from cdrom

I'm trying to install xubuntu on a usb flash drive following this quide. The command I'm running is qemu-system-x86_64 -drive file=/dev/sdc,media=disk,index=0,format=raw -cdrom ./xubuntu-15.10-...
0
votes
3answers
981 views

how do I copy an .iso file to root in Ubuntu

How can i copy an .iso file to the root directory in Ubuntu? Unetbootin cannot detect my ubuntu.iso unless it will be moved to the root. When I attempt to move it, into the root, the system tells me ...
2
votes
1answer
754 views

Install Linux on RAID system or outside in separate partition?

I have a Linux box with 4 HDDs which I will configure as RAID5. Should I install Linux rootfs on a partition ontop of the RAID or should I first build a partition on one of the bare disks and then ...
1
vote
1answer
682 views

No space left to free up on rootfs partition to upgrade kernel

I want to upgrade Linux kernel from 3.16 to 4.3. Unfortunately when I run aptitude install linux-image-4.3.0-1-amd64 installation fails due to no space on rootfs partition. 117MB left, 174MB needed. ...
0
votes
1answer
104 views

How does JetBrains PyCarm IDE put files into directories outside of ~/ despite being run without sudo?

PyCharm is a lovely Python IDE by JetBrains that can be downloaded here. I have downloaded the free community edition, extracted (with sudo) it into /opt/jetbrains/pycharm and run (without sudo) /opt/...
0
votes
1answer
4k views

Remount linux filesystem from ro to rw [duplicate]

I need to remount my linux filesystem from ro to rw. But nothing gonna work. I will be very grateful if someone help me. # mount /dev/mtdblock3 on / type squashfs (ro) proc on /proc type proc (rw) ...
6
votes
1answer
403 views

Can I install GNU/Linux on a FAT drive?

Out of curiosity, is this possible nowadays? I remember some old Slackware versions did support FAT root partition but I am not sure if this is possible with modern kernels and if there are any ...
5
votes
1answer
381 views

What is the proper way to unlock a root filesystem spanning two LUKS devices by only entering the password once, using systemd?

I have been having a lot of issues getting an encrypted multi-disk root filesystem to boot up reliably under systemd on Debian Jessie while only having to enter the password once. Previously I've ...