Author Topic: Freak "debian" File On Root  (Read 3511 times)

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Freak "debian" File On Root
« 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?
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

gtJormungand

  • Newbie
  • *
  • Posts: 38
    • View Profile
Freak "debian" File On Root
« Reply #1 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.

spartan

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
Freak "debian" File On Root
« Reply #2 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.
C3000 with Tetsu v18d Special Kernel and Sharp 1.11JP ROM
1GB Lexmark SD, 2GB Mini SD, Socket Revision H Bluetooth, Ambicom Wi-Fi

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Freak "debian" File On Root
« Reply #3 on: April 26, 2005, 09:12:09 am »
try nulling it out

echo "" > /debian
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

stilter

  • Newbie
  • *
  • Posts: 5
    • View Profile
Freak "debian" File On Root
« Reply #4 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]

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Freak "debian" File On Root
« Reply #5 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
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

stilter

  • Newbie
  • *
  • Posts: 5
    • View Profile
Freak "debian" File On Root
« Reply #6 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]

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Freak "debian" File On Root
« Reply #7 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
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card