How can I shred this folder?

Discussion in 'all things UNIX' started by lurningcerv, Dec 7, 2014.

  1. lurningcerv

    lurningcerv Registered Member

    Joined:
    Dec 27, 2011
    Posts:
    87
    I used the shred command to wipe a partition. Everything is gone in that partition now except a folder called "lost+found". It is owned by root, and if I look for files by the dir command as root, there is nothing in the folder. But gparted shows that there is 2.91 GB of used space in this partition, which I am assuming must be in this lost+found folder. How can I see what these files are and securely delete them?
     
  2. zapjb

    zapjb Registered Member

    Joined:
    Nov 15, 2005
    Posts:
    5,556
    Location:
    USA still the best. But barely.
    Afaik it's reserved space not used space.
     
  3. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,223
  4. lotuseclat79

    lotuseclat79 Registered Member

    Joined:
    Jun 16, 2005
    Posts:
    5,390
    Hi lurningcerv,

    Given that you have shredded the partition (i.e. the shred command can do everything the wipe command can do) and gparted shows 2.91GB of used space (which Mrk states is not used but reserved), you might just want to consider launching Disk Utility and reformatting the partition to its original state - if that is what you are aiming to do.

    -- Tom
     
  5. J_L

    J_L Registered Member

    Joined:
    Nov 6, 2009
    Posts:
    8,738
    If you want to recover the space try (note that 0 can be any % and sda can be any drive):
    sudo tune2fs -m 0 /dev/sda
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.