#5719 BLOC Never A: Deleting a large file from a USB stick copies it into NAND (often filling NAND)
Zarro Boogs per Child
bugtracker at laptop.org
Thu Dec 27 00:07:11 EST 2007
#5719: Deleting a large file from a USB stick copies it into NAND (often filling
NAND)
------------------------+---------------------------------------------------
Reporter: gnu | Owner: tomeu
Type: defect | Status: new
Priority: blocker | Milestone: Never Assigned
Component: datastore | Version: Build 650
Resolution: | Keywords:
Verified: 1 | Blocking:
Blockedby: |
------------------------+---------------------------------------------------
Comment(by cscott):
I have a patched copy of olpcrd which will let you recover the system as
follows:
* First, get a developer key for the machine.
* Go to the OFW prompt.
* Type: (the 'ok' is the prompt, don't type that)
{{{
ok " nand:\boot\vmlinuz" to boot-device
ok " disk:\olpcrd" to ramdisk
ok boot
}}}
* Now you will boot into linux. Sugar won't start, because the
filesystem is full, but after about 30s it will give up and you will be at
a console.
* Log in as root (or 'olpc' on joyride/update.1 builds).
* Type:
{{{
cd ~olpc/.sugar/default/data
ls -s | sort -n
}}}
* The last file listed is the biggest file in your journal, and likely
the culprit. Remove it:
{{{
rm FILENAME
sync
}}}
* Power off and reboot normally.
In addition to now being idiotic and copying files to NAND before trying
to delete them, the datastore *should* be careful to always clean up after
failed operations and delete orphaned files. In theory, there should be a
datastore-fsck which removes orphans.
--
Ticket URL: <http://dev.laptop.org/ticket/5719#comment:1>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list