how do i delete my home on root partition?

Sushil Mantri sushilmantri at gmail.com
Fri Dec 16 04:53:10 UTC 2011


Actually there's a cooler solution http://www.tuxradar.com/answers/340

mkdir /mnt/tmp
mount --bind / /mnt/tmp
rm -fr /mnt/tmp/home/*

On Thu, Dec 15, 2011 at 11:07 PM, Basil Chupin <blchupin at iinet.net.au> wrote:
> On 16/12/11 14:52, Sushil Mantri wrote:
>>
>> Ofcourse i couldn't delete my home directly, it would have deleted my
>> new partition. I changed my fstab to remove the new partition as home,
>> and rebooted. So i was back with a home on my root partition. I tried
>> what Ric suggested ;) . My /opt didnot have any data. I moved my home
>> to opt
>> mv /home /opt
>> I wasn't sure it would let me move my home folder but it does. so my
>> home was in /opt/sushil . I then deleted this folder. Added the entry
>> back in fstab
>>
>> On Thu, Dec 15, 2011 at 10:24 PM, Basil Chupin<blchupin at iinet.net.au>
>>  wrote:
>>>
>>> On 16/12/11 14:13, Rashkae wrote:
>>>>
>>>> On 12/15/2011 09:28 PM, NoOp wrote:
>>>>>
>>>>> On 12/15/2011 06:16 PM, Rashkae wrote:
>>>>>>
>>>>>> On 12/15/2011 05:29 PM, Sushil Mantri wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am using a new disk for my home, but i am not able to reclaim the
>>>>>>> space my old home has on the root partition.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sushil
>>>>>>>
>>>>>> I'm just another random stranger on the Internets, but first thing to
>>>>>> say, completely ignore the previous two replies to this query.  (What
>>>>>> are people smoking?)
>>>>>>
>>>>>> The easiest way to do this will be to boot from a Live CD (the Ubuntu
>>>>>> Desktop install cd should work fine), use the file manager to find and
>>>>>> open your root partition and delete the contents of home from here.
>>>>>> (Don't delete the home folder itself,  you still need the /home on the
>>>>>> root partition as a mount point.)
>>>>>
>>>>> Which is exactly what this does without booting to a liveCD:
>>>>> $ sudo rm -R /home/<oldhome>
>>>>>
>>>> Somehow, we are reading the question very differently.
>>>>
>>>> To me, it sounds like he added a new disk or partition to his system and
>>>> is now mounting that as /home, wheras it used to be on his root
>>>> partition.
>>>>  He won't be able to delete the old home (and free up the disk space)
>>>> until
>>>> /home is unmounted.
>>>
>>>
>>> <SIGH :-(>    Kids.....
>>>
>>> I provided the answer. Why not use it and save all the crap?
>>>
>>>
>>> BC
>
>
> <SIGH>
>
> I give up.....
>
>
> BC
>
> --
> Diapers and politicians should be changed often; both for the same reason.
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list