Questions tagged [filesystem]

The file system is the way an operating system organises its data on the storage (usually non-volatile, like an SD card) available to it.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 views

Plugging in a things crashes this Pi

Recently I find that with one of my Pi 3b+, sometimes plugging in ethernet or unplugging it causes it to crash and display "error reading inode #xxxxxxx", "aborted journal detected", and the like on ...
0
votes
1answer
26 views

How can I read files from my LibreELEC formatted SD card?

I've installed LibreELEC 9.2.1 on my Raspberry Pi 4's SD card. For technical reasons, I need to remove the card from the Pi and read a log file using my laptop. I've tried mounting the SD card from ...
1
vote
2answers
27 views

More space used than it adds up to

So I have a raspberry pi 4 4GB with a 32GB running raspbian desktop (without extra apps). Its used for plex and transmission. df -h output : /dev/root 30G 28G 212M 100% / devtmpfs 1....
0
votes
1answer
35 views

Can't see files on external drive

I'm using an external drive for my cloud storage. Everything was working fine and then I installed airsonic. I added the tomcat8 user to the www-data group so that airsonic could see the music ...
2
votes
4answers
552 views

How do i expand file system on raspberry pi 4 manually

I have just flashed an image of my original 16 GB SD card (the one that comes in the raspberry pi kit) to an new 128 GB card. It booted up fine but when i tried to expand the filesystem using raspi-...
1
vote
1answer
39 views

Consistent filesystem corrruption

It seems that recently my SSD began to get corrupted almost every time I shut my Pi 3B+ down, and on boot I get: [ 4.503731] sda: sda1 sda2 [ 4.511049] sd 0:0:0:0: [sda] Attached SCSI disk [ ...
16
votes
3answers
4k views

Where is Raspberry Pi “wastebasket” located in the file system?

I am trying to understand the Raspbian file system better. I opened properties on the Raspberry Pi's "Wastebasket" hoping to find out where it is located in the file system and I found trash:///. ...
3
votes
1answer
64 views

Gracefully handle power loss Raspbian on a Pi Zero

I recently installed a Pi Zero running Pi-hole for my folks. They live in a rural area and only have a 4G Modem with a limited data plan. The issue, is that every now and then there are power outages ...
0
votes
1answer
35 views

Delete all empty folder recursively via the command line

I have a mono app and it delete all empty folders in a folder tree. Is there a way to do this via the command line? The idea is that I would call it as an external process. I had tried this: sudo ...
0
votes
0answers
18 views

Auto launch program when I plug raspi into computer?

As the title says, is it possible to launch an exe or run a command when I plug my raspberry pi into my computer so that the program launches ON THE PC/MAC. I know you can auto boot something when you ...
1
vote
1answer
81 views

Why are some file move operations as slow as copy operations? [closed]

I believe I understand how file copy/move operations work (or appear to work). My general understanding being that as long as files and directories are on the same device and filesystem, moving a file ...
0
votes
1answer
75 views

Can't open mounted USB stick - Permission denied

I followed this guide to automount a USB stick to my Raspberry Pi 2. I'm using Raspbian Lite. https://www.raspberrypi.org/documentation/configuration/external-storage.md The USB stick is a Sandisk ...
4
votes
1answer
77 views

One volume does a *full* fsck every boot, even though it's clean

As the subject says, I have a Raspbian system (Buster, and this happened with the prior Raspbian version too) that runs a full fsck on one particular volume every time it boots. And this only happens ...
1
vote
4answers
74 views

Is it safe to reuse a crashed SD card?

I have the following set-up: RPi 3 8GB MLC microSD partition 1: root and the rest (read-only) partition 2: /var filesystem (rw) continuous writes to /var/logs system will experience unexpected sudden ...
2
votes
2answers
38 views

is the Raspbian NTFS implementation journaled?

I read somewhere that Raspbian NTFS implementation is not journaled, but I didn't find confirmation that it is true. If it is true there is a way to have it journaled? I'm using it on a USB stick ...
3
votes
1answer
292 views

Pi 2: External HDD Randomly goes into Read Only File System Mode

I've a raspberry pi 2bplus and I've installed the latest Raspbian strectch on it. I've connected External HardDrive to the pi. I'm running into a really weird problem that doesn't make sense to me ...
0
votes
1answer
531 views

Unknown filesystem type 'hfsplus' when mounting HFS+ volume on Raspbian Stretch

I am looking to mount an HFS+ volume on my Raspberry Pi running Raspbian Stretch. I have just installed the packages hfsplus hfsutils and hfsprogs. When I run cat /proc/filesystems it looks like ...
0
votes
1answer
181 views

Error executing ifdown and ifup command

I'm running a python script to configure the wifi interface, but I'm having a problem with the ifdown and ifup command. It looks like this command has been replaced by: sudo ip link set wlan0 down ...
2
votes
1answer
201 views

Why is there unallocated space at the beginning of Raspbian image file?

I always wondered why there is unallocated space at the beginning of any medium written with a Raspbian image file. I usually use dd to do so, whatever medium I use (flash drive, SD card or USB drive)...
2
votes
2answers
281 views

Not enough space for 105M archives when 869M is left

The command sudo apt-get upgrade says [...] Need to download 105 MB in archives. After this operation, 2.108 kB disk space will be used E: Not enough space in /var/cache/apt/...
0
votes
0answers
15 views

creation of filesystem image in another image

I am creating Ubuntu raspberry pi os from scratch using this https://a-delacruz.github.io/ubuntu/rpi3-setup-filesystem Iam struck here please provide full procedure 1. full filesystem creation as ...
0
votes
1answer
66 views

Does formatting 120gb SSD with FAT damages raspbian filesystem at expansion?

I have recently bought a new ssd of 120 GB, and I ended up format it to FAT filesystem, then later I flashed raspbian jessie onto it. Everything went well and is booted from SSD until I hit expand ...
1
vote
2answers
2k views

sda2 is not on SD card. Don't know how to expand

I created image of raspbian jessie on 32GB memory card using dd command. sudo dd if=/dev/disk3 of=~/os_images/raspbian_jessie.img bs=1m then I used etcher tool to flash that image to the 120GB SSD, ...
1
vote
1answer
260 views

Pi won't boot after memory swap

When turning on my Raspberry Pi, the boot fails after an error. It says: -bash: /usr/local/virtualenvwrapper.sh: No such file or directory This happened after I changed the /etc/init.d/dphys-...
0
votes
1answer
165 views

Netboot raspbeery pi with nfs server different filesystem

I'm trying to netboot some Rpi 3B+'s, I have it working if I put the nfs server on another rpi, but if I use the same configuration, just put the nfs server on a Centos machine with xfs file system, I ...
1
vote
1answer
731 views

How does any file system REALLY work on a Raspberry Pi SD card?

I am surprised by the large amount of data I'm writing to the root partition in a Raspberry Pi. My applications and system logs are not writing that much. I use the usual tricks to reduce it. What's ...
2
votes
1answer
575 views

Detect an SD card that became read-only

Recently my SD card died, becoming permanently locked in a read-only state. I realized it a few weeks after the fact, when I saw that files I would create disappeared after a reboot. Of course, all ...
1
vote
1answer
275 views

Naming images from camera with time so that they don't overwrite

I'm working on a project which will use a PIR motion sensor to take a photo of the room, also triggered by the PIR sensor. I'm using the PIR sensor for something else at the same time, so I'd rather ...
1
vote
0answers
61 views

My Pi seems to be duplicating my USB stick in the file manager

I formatted my USB stick and called it STORE-1 But after some time, File Manager showed me this: Before it was SETTINGS and STORE-1. Now access is denied to STORE-11 and STORE-1 and I can only use ...
1
vote
1answer
186 views

Why is there unpartitioned space on my SD card?

First off, I'm running Rasbian with NOOBS. I was following a tutorial on creating a new partition here: How do I create and mount a partition using the remainder of my SD card? And I started ...
1
vote
1answer
556 views

Files not saving even with flush

I have a program that is intended to log the incoming data from a sensor. The sensor is reporting at 200 hz and needs to be logged at least that fast so there are no lapses in data. It is important ...
1
vote
3answers
160 views

RPi 3 kernel without VFAT support

I am building a very compact Linux kernel for my RPi 3. I have stripped a lot of features from the kernel. The current kernel size is around 4 MB. Currently I only have ext4 and vfat FS enabled. I ...
1
vote
1answer
660 views

What encryption to choose for secure directory on USB Storage? [closed]

I need to choose encryption tool to secure my USB stored files, and I'm stuck with tools like VeraCrypt, ecryptfs or dm-crypt. The task is to encrypt folder or virtual disk that could be mounted as ...
1
vote
0answers
62 views

My Raspberry PI hangs after searching for files on the SD card

Strange issue here: when performing simple file search under "/" or issuing du command on large folders, my RPi's OS dies and needs hard restart. For example: * find / -name "index.html" * du -s /usr ...
0
votes
2answers
2k views

overlay filesystem

I am trying to install a overlay filesystem, in order to make the sd-card read-only. I've used this script: https://github.com/janztec/empc-arpi-linux-readonly It ran without errors, and it has ...
1
vote
1answer
168 views

Syncing to SD Card is too slow

I'm writing some bytes to the filesystem. Afterward I'm calling sync to ensure the buffered data is flushed to the SD card. This command takes several seconds! I'm working with raspbian. My SD Card ...
0
votes
0answers
23 views

Is it normal that sync() from unistd.h takes multiple seconds

When a user performs some setup via a Web GUI, I'm calling sync() to ensure the setup changement is immediately saved to the SD Card. (I'm doing this because the user sometimes switches off the power ...
0
votes
2answers
135 views

Should I change the installation directory for apt?

I was recently attempting to update some files using apt-get and was given an out space error. I then realized everything was being installed to the boot partition which is only 40mb (on a 32gb card). ...
0
votes
0answers
56 views

Help recovering files on Raspbian from a former WD MyBook World Edition II (Linux file system)

With my Mac I used to backup .jpg and .NEF (Nikon raw files) on a WD MyBook World Edition II network drive. After a few months I was not using it, I discovered it was not working anymore. On the WD ...
0
votes
1answer
1k views

Dependency failed for File System Check on /dev/disk/by-partuuid/5cxxxx

I'm trying to move my root partition onto a SSD. It is a PI1. I know the Pi(1 and 2, at least) cannot boot directly from USB (and I'm not interested in doing that anyway, I would only load the ...
0
votes
1answer
821 views

Copying files to usr/local in Raspbian

I have been trying to install Opencv following the instructions given in this link [https://github.com/manashmndl/FabLabRpiWorkshop2017/wiki/Painless-OpenCV-in-Raspbian-Stretch] I need to copy files ...
0
votes
2answers
2k views

Extend Root Partition Failure (Kali + RPi 3b+)

I have recently built a Raspberry Pi 3b+ with Kali Linux for the Pi (https://images.offensive-security.com/arm-images/kali-linux-2018.2-rpi3-nexmon.img.xz). I have unpacked and dd the image onto my ...
0
votes
2answers
132 views

modified files on boot partition being reset after first boot

I am trying to perform a headless setup of a raspberry pi zero W, which involves creating some new files in the boot partition of the SD card before putting it into the pi (wpa_supplicant.conf and ssh)...
0
votes
1answer
42 views

What can Cause Duplicate File Names?

As you can see below, I somehow have duplicate file names. I'm not sure if the files themselves are duplicate. Any idea how this can happen? The PI is running Raspbian Jessie.
0
votes
0answers
102 views

apt-get upgrade not working anymore

I'm trying to reinstall Raspbian Stretch Lite version to make a fresh install on my Rpi 2 B. I use to follow the every same steps everytime I do this; sudo raspi-config //to expand file system ...
1
vote
1answer
660 views

/tmp has been reported to be read-only filesystem

Environment: Up to dated rasbian. pi@raspberrypi:/etc $ cat os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=...
-1
votes
1answer
167 views

How to export a Linux instance from VirtualBox to a plain text filesystem?

For example, Raspberry Pi images can be "burned" to an SD card from an image file that contains a simple plain-text file tree that is the Raspbian (a Debian sub-flavor) filesystem (e.g., as discussed ...
1
vote
4answers
4k views

how to create a bootable image for Raspberry Pi

I need to create a bootable image like ***.img for a SD card. At the moment I am doing something like this: dd if=/dev/zero bs=512 count=1 seek=SD_CARD_SECTORS of=boot.img sfdisk --force --no-reread -...
1
vote
1answer
330 views

Why does Rasbian start the boot partition at 8192?

It seems the boot partition can start at 2048 based on reading, although I haven't validated it (yet) and wonder if its related regarding compatibility? Taken from the export-image/prerun.sh fdisk -...
2
votes
1answer
1k views

Why are the /boot partition from Raspberry Pi and a EFI system partition (ESP) both formatted as a FAT32 partition? [closed]

I understand that each processor has its own specific way of starting. Fact is that both of them (RPi and UEFI boot) need a small FAT partition to boot, both around 100MB. Is there any reason for ...