Skip to main content
Share Your Experience: Take the 2024 Developer Survey
25 votes
Accepted

Where is Raspberry Pi "wastebasket" located in the file system?

The folder trash can is in /home/pi/.local/share/Trash/. In this folder, there are two folders, files and info. /home/pi/.local/share/Trash/files/ /home/pi/.local/share/Trash/info/ Source
M. Rostami's user avatar
  • 4,333
14 votes

Is there a way to remove old files without relying on internet time service?

Since you don't have Internet NTP, the file timestamps are meaningless, being reset to the Pi's "/etc/fake-hwclock.data" time whenever the system is booted. If the daily data file(s) have a ...
dave58's user avatar
  • 345
11 votes

Disable auto file system expansion in new Jessie image 2016-05-10

Looks like this is going to be part of the newest updates; Desktop & Lite versions: https://www.raspberrypi.org/blog/another-update-raspbian/ When flashing a new Raspbian image, the file ...
Joe's user avatar
  • 111
11 votes

Where is Raspberry Pi "wastebasket" located in the file system?

You can find it at: /home/pi/.local/share/Trash/. The trash:// prefix comes from gvfs (GNOME Virtual File System) / the XDG Spec. It does map to an actual filesystem path, but the idea is that ...
modeset's user avatar
  • 337
10 votes

What does raspi-config's Expand Filesystem option do?

raspi-config is POSIX shell script and fairly easy to read if you understand shell scripting; on Raspbian it's in /usr/bin, and runs via an init service the first time you boot, but is kept updated ...
goldilocks's user avatar
  • 59.1k
9 votes

Can I view/copy the contents of an img file from Windows?

It also turns out that 7zip can extract a .img file just like any other archive file: 7z x raspian.img
Mike Young's user avatar
9 votes
Accepted

What is Wolfram engine and can I delete it?

Wolfram is the programming language of mathematica. Don't just delete the files. This may confuse and break your installation system. If you don't need wolfram just deinstall it with: rpi ~$ sudo apt ...
Ingo's user avatar
  • 42.2k
8 votes

Can I view/copy the contents of an img file from Windows?

Alternatively, use DiskInternals' Freeware Linux Reader for Windows (as I was unable to figure out how to mount .img files with Paragon's ExtFS for Windows).
sschuberth's user avatar
8 votes

Where is Raspberry Pi "wastebasket" located in the file system?

It has one, but it also does not... On one hand there is not concept of a trash bin/wastebasket on Linux, especially when dealing with the shell. rm deletes (more or less) for good. But on the other ...
zettymaster's user avatar
7 votes

Is there a way to remove old files without relying on internet time service?

On a system where the time resets on boot, you can't know what time it is when the system starts, and similarly can't know how long it was when the system was down. But you can count reboots, and you ...
ilkkachu's user avatar
  • 213
6 votes
Accepted

Why is it necessary to "expand the file system"?

People are commonly confused by the difference between three distinct things: A random access block storage device such as an SD card (or HDD). A storage partition which is a section of a device; ...
goldilocks's user avatar
  • 59.1k
6 votes
Accepted

What does raspi-config's Expand Filesystem option do?

The base image is sized so that it will take as little as possible of the SD card space as practical. That's probably 4GB for Raspbian (full). Many people will use larger capacity cards. Unless the ...
joan's user avatar
  • 71.1k
6 votes
Accepted

What is the purpose of group "staff"?

According to the Debian Wiki: staff: Allows users to add local modifications to the system (/usr/local) without needing root privileges (note that executables in /usr/local/bin are in the PATH ...
Darth Vader's user avatar
  • 4,196
6 votes
Accepted

Is there a way to remove old files without relying on internet time service?

Raspbian includes fake-hwclock, which saves the clock to the SD card on shutdown and restores it on boot. However, if you're just cutting the power to restart it, this is fairly useless; it will never ...
wizzwizz4's user avatar
  • 186
5 votes

What is the purpose of group "staff"?

This isn't peculiar to Raspbian or even GNU/Linux; evidently it's used on OSX too, although perhaps not the same way. Both operating systems are a form of unix -- I found that OSX question by ...
goldilocks's user avatar
  • 59.1k
5 votes

Detect an SD card that became read-only

You could do a simple write/read test with a test pattern. A good test pattern is a byte with binary '01010101' = 0x55 hex and a byte '10101010' = 0xaa. Writing both will toggle every bit. As I had ...
Ingo's user avatar
  • 42.2k
5 votes

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

I found what I believe was the cause, and it now appears to be fixed. Since this machine has a battery-backed RTC on it, fake-hwclock had been uninstalled long ago. When looking at the dump from '...
Gary Dobbins's user avatar
4 votes

Where has all my free space gone?

I've worked it out now, partially due to @Jacobm001's answer - thanks! I have /mnt/video mounted to an NFS share on my NAS. I have a cron job which automatically downloads (large) videos and places ...
GainfulShrimp's user avatar
4 votes
Accepted

Where has all my free space gone?

df does a decent job of giving you an overview of the entire filesystem, but it isn't very helpful for finding folders that are becoming space hogs. du would be much more helpful in this case. sudo ...
Jacobm001's user avatar
  • 11.9k
4 votes

Why does raspbian use ext4 for its rootfs with journaling enabled?

Even if EXT4 with journaling is not infallible, it goes a long way towards protecting your data. Without a journal, you'd have to repair the partition with fsck essentially after every crash / hard ...
Dmitry Grigoryev's user avatar
4 votes
Accepted

How to use external flash drive as raspberry pi 3 root storage?

You can put your filesystem on an external drive, there are instructions to use an external drive to boot your Pi. See https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md ...
Milliways's user avatar
  • 60.3k
4 votes
Accepted

Why does Rasbian start the boot partition at 8192?

It's all about the erase block boundaries of the flash media. Filesystems should be aligned to those boundaries so changes will only ever need to erase one block for a change instead of two adjacent ...
Janka's user avatar
  • 1,718
4 votes

how to create a bootable image for Raspberry Pi

How can I create an image so it can be written to any SD card size without losing any space? You can't, or at least, you can't use a static image. You could write a script to resize it dynamically ...
goldilocks's user avatar
  • 59.1k
4 votes
Accepted

how to create a bootable image for Raspberry Pi

The Raspbian Approach is as follows, I would duplicate this approach. raspi-config provides a resize script that uses parted (a command line utility) to resize the filesystem on boot. This script is ...
crasic's user avatar
  • 3,003
4 votes

Should I change the installation directory for apt?

In addition to the answer from @flakeshake there is no way to tell apt and apt-get where to install packets. This is coded in the packets itself. They all will install into directories from the root ...
Ingo's user avatar
  • 42.2k
4 votes

Is there a way to remove old files without relying on internet time service?

You could name your files sequentially and delete the oldest when there’s not much free space left use a larger SD card get the time by other means, for example GPS, DCF77 or RDS
Martin's user avatar
  • 143
4 votes

Unable to change config.txt or cmdline.txt permanently

A SD Card has a limited lifetime with writing cycles to it. When this limit is reached it goes into read only mode to be able to backup the data before the card completely fails. So I strongly ...
Ingo's user avatar
  • 42.2k
4 votes

Why is my Raspberry Pi file system read only?

The answer is in the output of mount: errors=remount-ro. If there are errors on /dev/mmcblk0p1, the /boot becomes read-only, and only that part. So, what to do next? fsck.vfat might be able to correct ...
Ljm Dullaart's user avatar
  • 2,521
3 votes
Accepted

Root filesystem usage at 100%, but I can't see why

sudo du -h / --exclude /home | grep -P "^[\d\.]+M|G\s+" > du-rootfs.txt That will take a few minutes, but give you more details about what's taking up all the space. You'll find a list of ...
goldilocks's user avatar
  • 59.1k

Only top scored, non community-wiki answers of a minimum length are eligible