-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rmdir: failed to remove '..../stage0/rootfs/debootstrap': Directory not empty #338
Comments
Also ran into this today on a 3b+. I attempted on master as well as the latest tagged release both with the host-side build and the docker build scripts. |
when I rerun the docker script to continue, eg.
|
Could you give this a go?
|
The spice is flowing now (at least on docker). Haven't checked the host-based script. |
Sorry guys. I'm just too new at this. What should I do with this code snippet? It doesn't look like regular commands I could execute via SSH in a bash shell? |
It's a patch. If you're not familiar with patches, the simplest thing to do would be this:
|
@XECDesign ... Thanks for the guidance about 'patches'. I learned something new today. It's a good day. The change you suggested worked well. No longer aborting at the point all the packages are retrieving/validating. I let it run. I had to go out. 4 hours later, came back and the raspi was completely dead. No SSH, no VNC. Connected to a screen while booting to diagnose issue. Saw the usual initial scrolling messages appear on the screen during the boot sequence, but then as it's about to launch the desktop, blank black screen with flashing cursor top-left corner ... and nothing else. Mounted the microSD on a different working pi and looked around. Found /rootfs is 100% full with no free space. I'm using a 32Gb microSD for the build. I guess that's too small. What size would work? Thanks again, Dave |
I don't know off the top of my head, but pi-gen eats a lot more space than it should. A 64GB card will be enough, but I'd recommend using a USB HDD mount or at least a flash drive for such tasks. |
Thanks for the advice to move to a SSD. The build ran end-to-end this time. Total size used is just short of 58GB, so a 64GB microSD might have worked, but I'd be worried about the write wear-and-tear on the SD. However, the resulting images created by the build are not working normally. I tried only the Buster-Full image, and it's broken in many ways. Eg:
So basically, I can't do anything with this build. Am I right in assuming I can simply unzip images in 'deploy' folder (once build finished) and burn them to a SD card and then boot in raspi without any other steps/setup/config being needed? Or am I missing something? Also, is there a full log of the build process anywhere? I could run I guess we can go-ahead and close this issue 338 since the error/behavior I reported initially is fixed. The other stuff I'm facing is probably better addressed under its own issue number. Agree? Best, Dave |
Yes, that sounds like a separate issue. Please include what filesystem type you have on the ssd. |
@XECDesign - filesys on SSD = NTFS. Any clues about my earlier request?
Best, Dave |
I'm surprised it worked with NTFS at all. You have to use a fileystem like ext4 or at least something that supports unix permissions. There's no log, but you can run something like |
This fixes RPi-Distro#338 and fixes RPi-Distro#294
This fixes RPi-Distro#338 and fixes RPi-Distro#294
This fixes RPi-Distro#338 and fixes RPi-Distro#294
This fixes RPi-Distro#338 and fixes RPi-Distro#294
Hi guys,
First try today with pi-gen. Didn't go well, but I'm real new to this so guessing I'm just doing something silly.
When running
sudo ./build.sh
, it spends about 6 minutes in the loop of 'Retrieving ...' followed by 'Validating ...' various files/packages, and then it dies with the errorrmdir: failed to remove '/home/pi/pi-gen/pi-gen/work/2019-10-26-Raspbian/stage0/rootfs/debootstrap': Directory not empty
MY SETUP:
--- Brand new RasPi 4 (4G version)
--- 32GB microSD
--- Latest Buster 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019
--- No other packages installed other than the prerequisites for pi-gen as per GIT home page
STEPS TO REPRODUCE:
---
SSH
into raspi (default pi user, so defaultpwd
)---
git clone https://github.com/RPi-Distro/pi-gen.git
--- That creates a 'pi-gen' folder, so I
cd
to it---
sudo ./build.sh
--- roughly 6 minutes retrieving/validating, then error
The ONLY line I have in my 'config' file is:
IMG_NAME='Raspbian'
Any advice on how I can troubleshoot this, or next step, much appreciated!!!
Dave
[EDIT] Reading further, I think this might be related to #294 The retrieving/validating steps in the screenshot there are idenical to mine, but my script quits immediately after displaying the rmdir error after the last retrieving/validating message ... wheras the script in that screenshot continues to run. WTF???
The text was updated successfully, but these errors were encountered: