NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

david171971's avatar
david171971
Aspirant
Apr 03, 2015

ReadyNAS RN102 Inode Limit

Hello,

I noticed the inode limit on my RN102's root partition is very low (it is 65536 now) and it is already being used 91%. A few days ago I didn't even have enough inodes to do an apt-get upgrade..
Does someone know a solution to this low inode limit? Maybe I can make a separate partition for /usr/ ?

Here's the output of df -i:

Filesystem     Inodes IUsed IFree IUse% Mounted on
rootfs 65536 59500 6036 91% /
tmpfs 63398 280 63118 1% /dev
/dev/md0 65536 59500 6036 91% /
tmpfs 63398 2 63396 1% /dev/shm
tmpfs 63398 379 63019 1% /run
tmpfs 63398 4 63394 1% /sys/fs/cgroup
tmpfs 63398 1 63397 1% /media
/dev/md126 0 0 0 - /data2
/dev/md127 0 0 0 - /data
/dev/md127 0 0 0 - /home
/dev/md127 0 0 0 - /apps
/dev/md127 0 0 0 - /var/ftp/Backup
/dev/md126 0 0 0 - /var/ftp/bunders
/dev/md127 0 0 0 - /var/ftp/darvit
/dev/md127 0 0 0 - /var/ftp/Documents
/dev/md127 0 0 0 - /var/ftp/index
/dev/md127 0 0 0 - /var/ftp/Milan_Backup
/dev/md127 0 0 0 - /var/ftp/Music
/dev/md127 0 0 0 - /var/ftp/Pictures
/dev/md127 0 0 0 - /var/ftp/Qbittorrent
/dev/md127 0 0 0 - /var/ftp/s
/dev/md127 0 0 0 - /var/ftp/school
/dev/md127 0 0 0 - /var/ftp/threes
/dev/md127 0 0 0 - /var/ftp/Videos
/dev/md126 0 0 0 - /var/ftp/webs2
/dev/md127 0 0 0 - /var/ftp/wur
/dev/md127 0 0 0 - /var/ftp/WUR_Opnamen
/dev/md126 0 0 0 - /var/ftp/www2


And here's the output of df -h:

Filesystem      Size  Used Avail Use% Mounted on
rootfs 4.0G 2.4G 1.4G 64% /
tmpfs 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 2.4G 1.4G 64% /
tmpfs 248M 44K 248M 1% /dev/shm
tmpfs 248M 440K 248M 1% /run
tmpfs 248M 0 248M 0% /sys/fs/cgroup
tmpfs 248M 0 248M 0% /media
/dev/md126 1.9T 155M 1.9T 1% /data2
/dev/md127 2.8T 1.5T 1.3T 54% /data
/dev/md127 2.8T 1.5T 1.3T 54% /home
/dev/md127 2.8T 1.5T 1.3T 54% /apps
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Backup
/dev/md126 1.9T 155M 1.9T 1% /var/ftp/bunders
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/darvit
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Documents
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/index
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Milan_Backup
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Music
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Pictures
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Qbittorrent
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/s
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/school
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/threes
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/Videos
/dev/md126 1.9T 155M 1.9T 1% /var/ftp/webs2
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/wur
/dev/md127 2.8T 1.5T 1.3T 54% /var/ftp/WUR_Opnamen
/dev/md126 1.9T 155M 1.9T 1% /var/ftp/www2


Thanks in advance,
david171971

15 Replies

  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    david171971 wrote:
    I had some packages that were not default, and I wanted everything to be up-to-date for security reasons.

    We have some security patches in our beta firmware. Updating to the beta firmware would have been a better option.
  • mdgm wrote:
    david171971 wrote:
    I had some packages that were not default, and I wanted everything to be up-to-date for security reasons.

    We have some security patches in our beta firmware. Updating to the beta firmware would have been a better option.

    I had a bruteforce attack on my SSH which filled up the entire root partition because of the logs; which caused other programs to lock up. For example MySQL couldn't make its .lock file anymore so the program would hang. I thought package updates would at least fix this. How do I install the beta firmware?

    mdgm wrote:
    Sounds like you may have deleted your data volume(s)?

    I don't think I deleted anything.. I only did what I said in this thread.
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    http://www.readynas.com/forum/viewforum.php?f=154

    A strong password is also vital if you forward ports

    You should see more than two partitions on the disk. The data partition being missing does complicate things.

    It sound like you have no backup?

    You may wish to clone the disk before making further attempts to recover your data.
  • I had a 23+ characters long password so I'm sure they didn't get to it before I noticed the attack. It would of course be nicer if ReadyOS blocks bruteforce attacks by default (and I first thought it did, that's why I didn't install such protection myself).

    I only have a partial backup across multiple computers, and I've certainly learned my lesson about making multiple backups..

    How do I clone the disk? Do you have any programs or tools that you would recommend?
    The disk has a capacity of 3TB (but only 1.5TB used), if I clone it, does the new disk need to be 3TB as well?
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    The space used is irrelevant. You would need another 3TB disk:
    readysecure1985 wrote:

    Here is a simple guide to quickly recover a failed drive using dd_rescue.

    I often have to deal with pesky failed drives, so here is a quick simple guide how to achieve this with a free Linux Live CD and a PC with two SATA connections.
    I will be using a Knoppix 6.2 Live CD for this guide. Can be found at http://www.knoppix.net
    Using dd_rescue command allows you to copy data from one drive to another block for block. This is especially useful for recovering a failed drive. Often when a drive fails, the drive is still accessible, it has just surpassed the S.M.A.R.T. error threshold. dd_rescue allows you to ignore the bad sectors and continue cloning the bad drive to a new healthy drive.

    1) Connect your old drive and new drive to your PC
    2) Boot up using your Linux live CD
    3) Launch a terminal window.
    4) Run fdisk -l to make sure the system sees both of the hard drives.
    5) Run hdparm -i /dev/sdx on both of the drives to find which drive is your source drive and which drive is your destination drive
    6) Once you know which drive is which you can start the clone process.

    dd_rescue /dev/sdx(source disk) /dev/sdx(destination drive)
    7) You will see the process start, just keep an eye on it, it might take a few hours for the clone job to finish, depending on the size of the drive.

    Once the process is complete, there will be no notification, the transfer will just stop and you will see the terminal prompt again.

    If you see a lot of errors or see that there is no more data being shown as succxfer: it means the drive got marked faulty by the kernel. At this point reboot the system and make sure you know which drive is which again, as it is possible they lettering might switch. Run the dd-rescue command again but this time with -r option. This will start the cloning again but this time will start from the back of the drive and will make sure to get the data that has not been cloned yet.


    Once the disk is cloned you could try repairing the partition table etc. if you know what you're doing. If you do attempt to recover it yourself it is at your own risk.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More