Skip to main content

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
1 answer
76 views

LUKS - How can / be encrypted but /boot and /boot/efi are not?

This is more of a educational and curiosity question, rather than tying to fix a problem. I have an Ubuntu system using LUKS. lsblk shows this: Noteably, / is encrypted but /boot and /boot/efi are ...
SuperDialga's user avatar
1 vote
1 answer
58 views

How to overlay root (/) of a running server with my set of directories?

I would appreciate if you could help me with the following problem. I am developing a set of utilities with different configurations and thus I need to debug them. My own notebook serves as a base for ...
Mirimat's user avatar
  • 23
0 votes
2 answers
48 views

Persistent naming of root device when booting FreeBSD

Because devices can be plugged and unplugged frequently, referring to the block device that FreeBSD should use as the root device could easily become unreliable. Is there a way to specify the root ...
Melab's user avatar
  • 4,148
0 votes
0 answers
140 views

How do I fix a corrupted file system?

My NAS went offline today. I could not even boot up. I have extracted the OS drive (Debian Bookworm) and plugged it into my laptop via an adapter. I failed mounting it, with the error: unknown ...
Sandrew Cheru's user avatar
0 votes
0 answers
38 views

Linux Kernel cannot find USB Stick to use as root FS

I have a USB stick with a Basic Linux/Busybox distro from scratch. I use extlinux as my bootloader. In Qemu everything works fine and I can boot without problems by typing in the following command ...
pauljako's user avatar
1 vote
1 answer
48 views

What could be the source of drastically different disk usage reports between df, lsblk and baobab?

Disk Usage Analyzer (baobab) reports a size of 29.3 GB for the root partition, out of which 2.5 GB are available: However, when selecting that device for closer inspection, I am presented with only 7....
kuadrat's user avatar
  • 51
0 votes
0 answers
56 views

Unable to find which files are consuming disk space in root partition

When I try to display file usage on the root partition using an application like FileLight, it gives me this output: However, I see different total usage in the Dolphin File Manager. I got to see ...
lone wolf's user avatar
  • 188
8 votes
5 answers
1k views

How to programattically determine the device name/basename of the root partition?

Ref: The following question Drive name? What is the correct term for the "sda" part of "/dev/sda"? Given: I have a system, (in this case a Raspberry Pi, but this could be relevant ...
Jim JR Harris's user avatar
0 votes
1 answer
100 views

How to switch to boot device's root file system from initramfs

I've been working on an operating system using the Linux kernel. I've successfully compiled the kernel and can boot into my initramfs through it. The issue arises when I try to switch from initramfs ...
Juancarlos Kai Shiro's user avatar
0 votes
0 answers
100 views

Linux rootfs on iSCSI: Cannot remount read-write

I have a Linux server with an ext4 rootfs on iSCSI. The iSCSI server rebooted and this interrupted the communication, which is usually not a big deal because the server is quick to restart. However, ...
teapot's user avatar
  • 19
0 votes
0 answers
93 views

/var/run persistence in Docker

I have just been bitten by a PID file problem in a (Debian) Docker container that is configured as --restart always Trying to summarize the problem: I start the apache2 service in my container. The ...
rems4e's user avatar
  • 115
0 votes
1 answer
82 views

Ubuntu file system read-only after Windows system restore at previous point

I am running Ubuntu 18-04 via WSL on a Windows Virtual Machine in Azure. I needed to restore the machine to a previous point, and what happened was that the Ubuntu file system is now read-only.  When ...
Eliseo Di Folco's user avatar
0 votes
3 answers
430 views

When installing linux, why do we need to mount our "root partition" to "/", and what does it do?

I'm installing arch linux, and I've got my root partition in /dev/sda2. As I understand, this partition will now be my root, containing all the subdirectories /home, /usr, etc. What's confusing to me ...
vw1262's user avatar
  • 19
0 votes
0 answers
128 views

rootfs building using buildroot is failing

I want to boot beaglebone black board with kernel 6.5.4 image. So I took a SDCard(8GB), formatted and make it 2 paritions using gparted application in ubuntu. I have copied below boot files into BOOT ...
Waageesh's user avatar
0 votes
1 answer
80 views

Yocto - rootfs size is smaller on target than in workdir

I use Yocto to build an image for my development board and I noticed that the same command du -sh showed smaller value when I checked it on the running system than in the yocto work directory. The ...
user3333's user avatar
1 vote
0 answers
239 views

Best practice to mimic a linux rootfs without root permission on an existing system

I have access to a user account of a ubuntu server. However it's really inconvenient to work without root permission (which means that cannot install packages) and I am more familiar with archlinux ...
Yutsing's user avatar
  • 11
1 vote
3 answers
260 views

Write image to current root-partition

I'm currently playing with building disk images (based on Debian) for a raspberry-like computer. My current workflow looks like: create disk image (about 16GB uncompressed; or 3GB compressed) power-...
umläute's user avatar
  • 6,472
0 votes
0 answers
75 views

Install grub on ext2

Is it possible to install (and use) grub on the same ext2 partition as the linux root directory? (Should you want to discuss 'why': to try, to understand and master.)
Boole Gates's user avatar
0 votes
0 answers
905 views

How to free memory in root file system

I have a lap top that has had Arch Linux installed for approximately two years. Yesterday, when conducting a daily update via the command sudo pacman -Syu I recieved the warning the volume Filesystem ...
Jon's user avatar
  • 155
0 votes
0 answers
96 views

Unmount root from /boot partition? trying to fstransform /dev/mapper/VolGroup-lv_root

I am trying to transform /dev/mapper/VolGroup-lv_root from xfs to ext4 using fstransform on my CentOS 7 VM. This is needed for a migration from another Centos 7 VM. The issue I am facing is the root ...
Tristan Kosciuch's user avatar
0 votes
1 answer
70 views

Chagnes done to the rootfs do not redirect to the overlay set in fstab

The fstab is a link to the next fstab file: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 ro,noauto 0 1 proc ...
קובי עיני's user avatar
0 votes
1 answer
902 views

How to enable data=journal ext4 fs mode?

Preface (my 1st attempt ended badly): Fstab adding data=journal crashed my Linux' ext4 upon boot, how to fix? I can't find some reliable step-by-step instructions on How to enable data=journal ...
Vlastimil Burián's user avatar
0 votes
1 answer
183 views

what are the potential benefits of using YOCTO for generating custom distro and rootfs over using the ones supplied by vendor [closed]

I read about comparisons between buildroot and YOCTO project (google) regarding building rootfs and wanted to ask a more general question: What are the potential benefits of building my own rootfs ...
hutcruchi's user avatar
  • 349
0 votes
1 answer
1k views

How can I extend the root/filesystem to take unallocated space?

This is what my partitions look like. The first one is the /root partition that I need to extend, second one is the /home partition and the third is the unallocated space that I want to add to the /...
best_of_man's user avatar
7 votes
3 answers
2k views

How to change the casefold ext4 filesystem option of the root partition, if I only have ssh access

I need to enable the case insensitive filesystem feature (casefold) on ext4 of a Debian 11 server with a backported 6.1 linux kernel with the required options compiled in. The server has a swap ...
Daniel's user avatar
  • 788
0 votes
0 answers
100 views

I altered the partition table (resized the root and created a new partition and formatted it) but can't log into my arch system anymore

Yesterday, I had an idea of having two root partitions for my arch system, one which would contain packages and system files and another one to store my personal files (music, videos, etc). With that ...
Asmit Das Choudhury's user avatar
3 votes
1 answer
26k views

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)

I have created a image file with this commands: dd if=/dev/zero of=linux.img bs=16M count=1024 cfdisk linux.img mkfs.ext4 linux.img and installed a linux system following the instructions from the ...
Kleber Mota's user avatar
1 vote
1 answer
315 views

How do I Undo the mount command on Linux Ubuntu and get my data back?

I ran a mount command that mounted the rootfs into my home directory I've hence lost all my data in the home directory. Is there a way to get the data back?
brian's user avatar
  • 11
2 votes
0 answers
835 views

Linux root directory owned by 911:911

I run a Ubuntu 20.04 home server and, while doing something else entirely, happened to notice that my root "/" directory is apparently owned by the user:group 911:911. Checked passwd and ...
PlunderBunny's user avatar
2 votes
1 answer
95 views

How to set up a bunch of linux servers with shared file system without using job scheduler?

I am managing multiple GPU servers in our lab, which are mainly used for deep learning tasks. We would like these machines to share the same file system, so it is easier to switch between them. ...
x.y.z liu's user avatar
1 vote
2 answers
109 views

Can't start Linux after deleting core dumps

My root partition had no space to the point that couldn't login. So invoked Ctrl+Alt+F2 and ran to free disk space: find / -xdev -name core -ls -o -path "/lib*" -delete Now can't even ...
jck's user avatar
  • 11
0 votes
0 answers
455 views

ERROR: device '' not found. Skipping fsck and else

:: running early hook [udev] Starting systemd-udevd version 253.1-3-arch :: running hook [udev] :: Triggering uevents... ERROR: device '' not found. Skipping fsck. :: mounting '' on real root mount: /...
Sehaxe's user avatar
  • 1
3 votes
2 answers
3k views

Recommended scheme for partitioning root file system into subvolumes following the Filesystem Hierarchy Standard

The Filesystem Hierarchy Standard (FHS) is the formal codification for root file tree on Linux installations, as inherited from earlier iterations of Unix and POSIX, and subsequently adapted. It ...
brainchild's user avatar
1 vote
2 answers
1k views

how to duplicate rootfs to another partition (dd cause problems)

I've been using dd in order to duplicate my rootfs into another partition and boot the system using the new rootfs copy. sudo dd if=/dev/disk/by-partuuid/342853ea-cab9-4a4f-b935-1a704c1cc17f conv=sync,...
hutcruchi's user avatar
  • 349
0 votes
1 answer
210 views

unable to recover lost data after deleting mount points in ubunu

i have mounted two partitions on /media folder: so later, i could access them through GUI as a separated partitions like this by mistake, i have deleted the following mounting points of those ...
karim's user avatar
  • 1
1 vote
2 answers
1k views

Prevent SD card corruption / Create read-only root FS (overlayroot)

I'm looking to prevent sd card corruption on an OrangePI Zero 2 running Debian. I thought the best way is to have a readonly fs, so I tried following the instructions here, but it failed on the ...
nak's user avatar
  • 111
0 votes
1 answer
809 views

When/how does Linux create system users during startup?

I'm trying to bring up a circuit board from NFS mounted root filesystem (Debian 10). When booting it reported error through serial port: [FAILED] Failed to start Create System Users. See 'systemctl ...
fiedel's user avatar
  • 1
1 vote
1 answer
531 views

git show does not understand relative file names

I am using git to version control config files on my system. I have git root at the root of my filesystem /, and I control /etc and /root. When I am in /root and do: git log .zshrc, it shows me commit ...
Martin Vegter's user avatar
0 votes
0 answers
448 views

Getting "erase_size" related error when mounting a jffs2 rootfs into a block device

Trying to mount a jffs2 image into a virtual block device, following this guide The steps are as follows, summarized: sudo mknod /tmp/mtdblock0 b 31 0 sudo modprobe mtdblock sudo modprobe mtdram ...
DummyBeginner's user avatar
0 votes
1 answer
407 views

What things are not saved in a btrfs snapshot?

I'm using BTRFS for my root partition and manage its snapshots with Snapper. I decided to create subvolumes for /var/tmp, /var/cache and /var/log as these are constantly changing its data which is not ...
Megver83's user avatar
  • 301
0 votes
2 answers
733 views

Boot loop device as root file system

I created an ext4-filesystem on a loop device with all necessary files to boot with, e.g.: /bin /boot /dev /lib /mnt /etc ... Now I want to boot from the loop device as an image (let's say ...
User100700's user avatar
2 votes
0 answers
230 views

Should only / be mounted as Read-Only for security in case of power loss, or also /boot

I have an embedded system (specifically, Google Coral with Mendel Linux), which will be running some models. I expect it to get turned off in not a secure way (basically plugging it off) mostly every ...
M.K's user avatar
  • 143
1 vote
0 answers
290 views

Booting arm64 linux from PHRAM device on RAM failed on systemd processing

I'm trying to boot a busybox based ext4 Liunx image built by yocto, from the RAM, using PHRAM device(dev/mtdblock0) as rootfs. The machine is Intel FPGA board(Stratix 10). I have enabled PHRAM in ...
yoyozi's user avatar
  • 11
0 votes
2 answers
131 views

Accidently moved root partition by error

cb@coreboot-bm-4:~$ pwd /home/cb cb@coreboot-bm-4:~$ sudo mv /* ADL-P/ and now I can't do anything when I try something like: cb@coreboot-bm-4:~$ ls -bash: /bin/ls: No such file or directory
Saurabh Mishra's user avatar
0 votes
1 answer
104 views

Increase root disc space and gain access to existing hard drives

I have an issue on my CentOS machine with hard drive space on root. df -h returns Filesystem Size Used Avail Use% Mounted on devtmpfs 126G 0 126G 0% /dev tmpfs ...
Tom Waits's user avatar
  • 161
2 votes
1 answer
979 views

Why use relative symlinks in the root directory?

I have a question about symlinks in (or very close to) the root directory. My kernel version is 5.16.11-arch1-2 at the moment. When I run ls -l / it prints this: lrwxrwxrwx 1 root root 7 Dec 6 ...
maallaard's user avatar
0 votes
0 answers
732 views

root filesystem on usb drive

I am trying to move my linux partition (ext4) to usb drive and boot from this drive and not my hdd. I have slackware64-14.2 with kernel 5.15.25 and usb driver (xhci) built in kernel. I have made the ...
14f6A21's user avatar
  • 11
1 vote
1 answer
5k views

How to fix Debian 11 not booting after kernel upgrade?

My Debian 11 shipped with version 5.10 of the Linux kernel. I wanted a newer one, so I downloaded 5.15 from here, extracted the tar file, copied over the existing configuration, ran make menuconfig, ...
cocomac's user avatar
  • 525
2 votes
1 answer
1k views

How is /tmp linked to /var/tmp

I've already read up on the differences between /tmp and /var/tmp, so note that this is not what this question is about. When I create a file in /tmp, it shows up in /var/tmp; however, neither ...
JayRugMan's user avatar
  • 116
2 votes
1 answer
8k views

Creating a bootable iso image from my current installation

We have an old physical machine with Ubuntu distro 20.04 and that physical machine has a total of 103GB /root partition and 10GB as swap memory. We have currently utilized up to 45GB. We want to ...
BSivakumar's user avatar

1
2 3 4 5 6