Results 1 to 14 of 14

Thread: USB - Disk free space: 0 bytes

  1. #1

    Thumbs up Partial Recover of ext3 partition

    I have a problem :

    I'm connected via samba to my USB external disk (connected to the router)
    And both in windows and the ssh session tells me that the disk is full (no empty space)

    Code:
    > df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2880      2880         0 100% /
    /dev/discs/disc0/part1 240292420 240292420         0 100% /opt

    This is strange because i've deleted alot os stuff, but there not seems to be any space free

    Please help

    Partial solution:
    http://wl500g.info/showpost.php?p=62594&postcount=13
    Last edited by zzzpt; 20-09-2007 at 13:05.

  2. #2
    is it normal that the /share/terminfo takes 12GB ?

    I think is too much...
    I've deleted now :P
    Code:
    rm * -rf
    but still:
    Code:
    df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2880      2880         0 100% /
    /dev/discs/disc0/part1 240292420 240286124         0 100% /opt

  3. #3
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi and sorry my english.

    Perhaps, mount type is ro (read-only)?
    Check this: mount
    The end of line you look the mount type (ro, rw, noatime, etc).

    George

  4. #4


    Unfortunaly no:

    Code:
     mount
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part1 on /opt type ext3 (rw)
    /dev/discs/disc0/part1 on /tmp/harddisk type ext3 (rw)
    Code:
     df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2880      2880         0 100% /
    /dev/discs/disc0/part1 240292420 240286228         0 100% /opt
    /dev/discs/disc0/part1 240292420 240286228         0 100% /tmp/harddisk
    What i dont understand is big space that some folders take "/share" +1GB (because ive deleted a folder with 12 GB )

    Another problem is that i cant delete anything in my laptop (via wireless) with Vista. " Says i dont have permission...


    EDIT:
    Just deleted another 4.5GB
    Code:
     df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2880      2880         0 100% /
    /dev/discs/disc0/part1 240292420 234965844         0 100% /opt
    /dev/discs/disc0/part1 240292420 234965844         0 100% /tmp/harddisk

    Going to try
    Code:
    fsck.ext3
    ...
    Code:
    fsck -v /dev/discs/disc0/part1 
    fsck 1.40 (29-Jun-2007)
    WARNING: couldn't open /etc/fstab: No such file or directory
    e2fsck 1.38 (30-Jun-2005)
    /dev/discs/disc0/part1 is mounted.  
    
    WARNING!!!  Running e2fsck on a mounted filesystem may cause
    SEVERE filesystem damage.
    
    Do you really want to continue (y/n)? y
    yes
    
    MyBook: recovering journal
    Backing up journal inode block information.
    
    MyBook has been mounted 113 times without being checked, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    
    MyBook: ***** FILE SYSTEM WAS MODIFIED *****
    
        7883 inodes used (0%)
        3658 non-contiguous inodes (46.4%)
             # of inodes with ind/dind/tind blocks: 4751/3281/8
    59699304 blocks used (97%)
           0 bad blocks
          10 large files
    
        7176 regular files
         593 directories
           0 character device files
           0 block device files
           0 fifos
           7 links
         105 symbolic links (105 fast symbolic links)
           0 sockets--------
    
        7881 files
    but still the same
    Last edited by zzzpt; 10-08-2007 at 13:06.

  5. #5
    Well.... I'm geting a bit crazy with this ....

    Now i've unmounted the disk
    Code:
    umount -l /opt
    and runned
    Code:
     > fsck.ext3 /dev/discs/disc0/part1 
    e2fsck 1.38 (30-Jun-2005)
    MyBook: recovering journal
    MyBook: clean, 7883/30523392 files, 59699307/61030927 blocks
    rebooted, but the same result ...

  6. #6
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Code:
    /dev/discs/disc0/part1 240292420 240286228         0 100% /opt
    /dev/discs/disc0/part1 240292420 240286228         0 100% /tmp/harddisk
    Why do you have the same disk partition mounted on 2 different locations ?

    Max

  7. #7
    Quote Originally Posted by QMax View Post
    Why do you have the same disk partition mounted on 2 different locations ?

    Max
    I dont know :P
    Only happened once, now is only mounted once.

    Code:
     df
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/root                 2880      2880         0 100% /
    /dev/discs/disc0/part1 240292420 234965764         0 100% /opt
    What happen if i delete all the folders exept the /home (were i have all my files) ?
    I'm thinking off delete, and if necessary to run to make a fresh start :P

  8. #8

    HDD error

    Hi zzzpt,

    Are you still having issue? Can you share us how to fix it ? I have the same issue this morning, I ran the same fix command and now, I am not able to mount the HD, it tells me Invalid Argument.

  9. #9
    i went in vacation....
    But now im at home and the problem persists :P

    Going to delete all the folders in the Disk, except the /home folder(with all my data)

    Maybe will reset the router, make the tutorial all again ....

  10. #10
    .....
    Deleted all the folders except the /home

    Now i cant mount the partition "Invalid argument"

    tryed:
    Code:
    e2fsck -n /dev/discs/disc0/part1
    Code:
    e2fsck: e2fsck_read_bitmaps: illegal bitmap block(s) for MyBook

  11. #11

    HD error

    HI zzzpt,

    Same here, after the e2fsck , all my files inside the HD gone and only lost + found directory there, I have to reformate the entire HD and starts again. It is just like a nightmare, I am now not dare to save files into my 320g HD. Just don't want to loss all my stuff again.....

  12. #12
    i dont even have the lost+found folder

    i'm still hoping to recover...
    What kind of files do you want to recover? Here's my process for general purpose recovery:

    1) make an image with dd_rescue
    2) run testdisk on the image
    3) run foremost on the image
    4) run photorec on the image

    Photorec and Testdisk are both by the same author. Foremost is a data recovery tool developed by the US Airforce (I think). Typically I'm just recovering jpegs, movies, documents, etc.
    https://help.ubuntu.com/community/DataRecovery
    Last edited by zzzpt; 01-09-2007 at 15:53.

  13. #13
    WEEEEEE

    SUCCESS


    Solution (make backups if you can )
    mke2fs -S /dev/ida/c0d0p7

    fsck ...

    mount




    Some more info
    Somebody with the same problem resolved this way:

    http://shon.org/blog/?p=25
    [root@adrock init.d]# dd if=/dev/ida/c0d0p7 of=/big/var.bak.dd
    530368+0 records in

    Still hosed, but now I have a backup of the burnination. And now for the FIX!!!

    mke2fs -S /dev/ida/c0d0p7
    mke2fs 1.27 (8-Mar-2002)
    Filesystem label=
    OS type: Linux
    Block size=1024 (log=0)
    Fragment size=1024 (log=0)
    66528 inodes, 265184 blocks
    13259 blocks (5.00%) reserved for the super user
    First data block=1
    33 block groups
    8192 blocks per group, 8192 fragments per group
    2016 inodes per group
    Superblock backups stored on blocks:
    8193, 24577, 40961, 57345, 73729, 204801, 221185

    Writing superblocks and filesystem accounting information: done

    That did it! mke2fs re-wrote all of the superblocks and group descriptors and I was able to mount in RO mode and copy off the data. After that I was able to fsck and remount the original parition with no problems!

    other case:
    http://user-mode-linux.sourceforge.net/old/sdotm.html

  14. #14

    Nice !~~

    Wow,,, nice that you can recover your data.. i just wonder how it become so easy to crash the data. i am still not dare to put important data in it.

Similar Threads

  1. linuxrc bug? - WL-500g not booting from usb drive with hub
    By daniel632 in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-03-2012, 15:28
  2. Unstable boot from USB
    By Tamadite in forum WL-500g Q&A
    Replies: 6
    Last Post: 20-08-2008, 15:19
  3. Strange packet loss
    By DjKlax in forum WL-500g Q&A
    Replies: 2
    Last Post: 25-12-2006, 09:41
  4. Wl500g > 2 USB and 1 LPT Printer
    By Trebron in forum WL-500g Q&A
    Replies: 0
    Last Post: 27-01-2006, 22:17
  5. LAN devices lose connectivity?
    By tomilius in forum WL-500g Q&A
    Replies: 11
    Last Post: 26-03-2005, 22:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •