OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: spartan on April 24, 2005, 09:50:21 pm

Title: Freak "debian" File On Root
Post by: spartan on April 24, 2005, 09:50:21 pm
I have a 1566 kB file on the root named "debian".
Despite remounting the root filesystem as read-write, and switching to root mode, the file can't be removed:
Code: [Select]
# rm /debian
rm: unable to remove 'debian': no space left on device.
Any suggestions?
Title: Freak "debian" File On Root
Post by: gtJormungand on April 25, 2005, 09:48:03 am
Try checking 'mount' to see if it's being mounted somewhere.

It could be that the flash (where root is mounted from) is already full, too.  So try deleting something else on the flash.  Check the free space with 'df'.

It could be that something tried to extract debian to the root, which then failed because there wasn't enough space.

You might also try using 'rm -rf /debian' and see if that does something different.
Title: Freak "debian" File On Root
Post by: spartan on April 25, 2005, 09:18:44 pm
Thanks for the help.

It is already full:
rootfs (/) is 100% used
/dev/root (/) is 100% used
/dev/mtdblock3 (/home) is 58% used

I don't know where to find any files to delete to clear up the j2ffs /dev/root device. The "debian" file is 1.5 MBs large though, so there must be another 3.5 MBs located somewhere.

Does anyone know what I could delete to try to combat this error?

Anyway,
# rm -rf /debian
failed with the same error.
Title: Freak "debian" File On Root
Post by: Meanie on April 26, 2005, 09:12:09 am
try nulling it out

echo "" > /debian
Title: Freak "debian" File On Root
Post by: stilter on May 01, 2005, 05:24:40 pm
I ran into the same situation with my C3000 (overzealous mc :-)

Any attempt to null out a file returns:
"cannot create <filename> : file system full"

What else could I try?... avoiding t=f


Enzoy!


Quote
try nulling it out

echo "" > /debian
[div align=\"right\"][a href=\"index.php?act=findpost&pid=76904\"][{POST_SNAPBACK}][/a][/div]
Title: Freak "debian" File On Root
Post by: iamasmith on May 01, 2005, 07:16:37 pm
Try booting using D+B options then..

mkdir /mnt/test
mount /dev/mtdblock2 /mnt/test

You should find your root under /mnt/test now

Remove the debian file from here and reboot.

- Andy
Title: Freak "debian" File On Root
Post by: stilter on May 02, 2005, 03:49:04 pm
Andy,

thanks for the help.

unfortunately the Z answers exactly the same:
- rm returns: "unable to ...: No space left on device"
- nulling returns: "cannot create ...: file system full"

fwiw: my mistake started copying a large directory.
        the copy process aborted in the middle with the "No space left".

any other path to victory?

Quote
Try booting using D+B options then..

mkdir /mnt/test
mount /dev/mtdblock2 /mnt/test

You should find your root under /mnt/test now

Remove the debian file from here and reboot.

- Andy
[div align=\"right\"][a href=\"index.php?act=findpost&pid=77797\"][{POST_SNAPBACK}][/a][/div]
Title: Freak "debian" File On Root
Post by: iamasmith on May 02, 2005, 04:45:32 pm
One sure fire way would be a NAND restore of the flash if you don't have anything custom on the rootfs.

I would suggest taking a NAND backup first just to be sure. The 16Mb NAND flash image holds the Kernel, rootfs, Secondary Kernel, Secondary rootfs and Japanese menus used for upgrade etc.

Restoration of a virgin NAND image will certainly fix this issue.

- Andy