Author Topic: (Solved) How to remove the home partition  (Read 4341 times)

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
(Solved) How to remove the home partition
« on: July 07, 2010, 11:29:33 PM »
This is what i actually have when using Remasterme

[ordidoc@localhost ~]$ remasterme
This script tries to remaster your current install.
The iso will be created as pclinuxos-2010.iso
Can't remove /etc/rc.d/init.d/halt: Permission denied, skipping file.
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              49G  4.0G   42G   9% /
/dev/sda6             237G  8.1G  229G   4% /home
tmpfs                 1.9G     0  1.9G   0% /dev/shm
You try to remaster 11 Gigabyte install
You need at least 3 Gigabyte freespace
The free space avaialable for remaster 41 Gigabyte
mylivecd, version 0.9.3, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
DIE
FATAL: You have to be root to execute this program
[ordidoc@localhost ~]$

Obviously i'm going to change for root in order to make it work but the main question is that i want to keep only the "/" partition which is about 50 Gig but use at only 9%, and exclude the other ones and i'm a bit lost about the process. I've been reading what is posted but i think that i need a little bit of help :)
« Last Edit: July 13, 2010, 03:45:29 PM by OrdiDoc »

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #1 on: July 08, 2010, 08:17:00 AM »
Thanks ongoto :)

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #2 on: July 08, 2010, 04:34:51 PM »
I removed the /home partition, installed draklive from Symaptic, started Remasterme and i ended up with this message at the end:

Creating initrd:                                           [100.00% 00:00:07/00:00:07]
Setting filesystem parameters:                     [ 40.00% 00:00:14/00:00:35]
                ===============                [100.00% 00:00:49/00:00:49]
Creating compressed image:                         [100.00% 00:41:04/00:41:04]
Creating isolinux boot:                                  [100.00% 00:00:00/00:00:00]
Creating final iso:                                         [100.00% 00:00:00/00:00:00]
ls: cannot access pclinuxos-2010.iso: No such file or directory              
Embedding MD5 checksum:
[                                                                            ]Argument "" isn't numeric in division (/) at /usr/sbin/mylivecd line 273.                                        [  0.00% 00:00:00/00:00:00]Error - Unable to open file pclinuxos-2010.iso

Illegal division by zero at /usr/sbin/mylivecd line 291.

What is happening now ?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #4 on: July 08, 2010, 04:51:02 PM »
Sorry Neal i did read it and still don't know what went wrong, the only thing that i can see is that i didn't do the umount -a command, i used remasterme --nodir^/home/pclinuxbkp.iso as suggested by ongoto, it seems that i have a big folder taking space on / but cant find it also so i don't know if it was successful or not  ???

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12529
Re: How to remove the home partition
« Reply #5 on: July 08, 2010, 05:01:59 PM »
I removed the /home partition, installed draklive from Symaptic, started Remasterme and i ended up with this message at the end:

Creating initrd:                                           [100.00% 00:00:07/00:00:07]
Setting filesystem parameters:                     [ 40.00% 00:00:14/00:00:35]
                ===============                [100.00% 00:00:49/00:00:49]
Creating compressed image:                         [100.00% 00:41:04/00:41:04]
Creating isolinux boot:                                  [100.00% 00:00:00/00:00:00]
Creating final iso:                                         [100.00% 00:00:00/00:00:00]
ls: cannot access pclinuxos-2010.iso: No such file or directory              
Embedding MD5 checksum:
[                                                                            ]Argument "" isn't numeric in division (/) at /usr/sbin/mylivecd line 273.                                        [  0.00% 00:00:00/00:00:00]Error - Unable to open file pclinuxos-2010.iso

Illegal division by zero at /usr/sbin/mylivecd line 291.

What is happening now ?


It means your installation is too large to compress into a 4 gig squashfs file which is the maximum size of a squashfs file. A 2.5 gig installation will compress to about 700mb squashfs file.

Thanks to everyone who donates. You keep the servers running.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #6 on: July 08, 2010, 05:03:39 PM »
Run bleachbit and then run bleachbit-root. You have leftovers from previous attempts at remastering. After the clean up, as root (su) run
Code: [Select]
umount -a
then run
Code: [Select]
mylivecd --nodir=^/home/username the-name-you want-to use.iso
Note that --nodir=^/home/ does not specify a user, excludes all of /home and will not include any of the needed files for /home to exist. /home contains the users' directories; it is needed.
Specifying a user to exclude resolves this issue.

To have a user account on the liveCD/DVD, create a new user. Name it guest or whatever you like, but do not do any work in the account before remastering, unless you want something specific included in the liveCD/DVD.

Edit: Be sure to check your installed size before remastering. The command df will tell you this. Read the post I linked earlier. It is explained there.
« Last Edit: July 08, 2010, 05:08:07 PM by Neal »

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #7 on: July 08, 2010, 05:14:28 PM »
Thanks for your patience Neal, the command umount -a is giving me this:

[root@localhost ordidoc]# umount -a
umount: /home: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

Should i continue ?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #8 on: July 08, 2010, 05:29:02 PM »
Yes. Continue. That message is telling you that you can not unmount the partition(s) that are  active/needed for your system..

Did you run the df command? What were your results?

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #9 on: July 09, 2010, 12:22:05 AM »
Results from the df

[ordidoc@localhost ~]$ df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              49G  3.8G   42G   9% /
/dev/sda6             237G  4.7G  233G   2% /home
tmpfs                 1.9G     0  1.9G   0% /dev/shm
[ordidoc@localhost ~]$

I'm going to try again and see what it does this time  :)

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #10 on: July 13, 2010, 03:51:45 AM »
I finally had time to do it again and this is what i ended up with

Creating initrd:                                   [100.00% 00:00:06/00:00:06]
Setting filesystem parameters:                     [100.00% 00:00:49/00:00:49]
Creating compressed image:                         [100.00% 00:52:00/00:52:00]
Creating isolinux boot:                            [100.00% 00:00:00/00:00:00]
Creating final iso:                                [100.00% 00:00:00/00:00:00]
ls: cannot access pclinuxos-2010.iso: No such file or directory               
Embedding MD5 checksum:
[                                                                            ]Argument "" isn't numeric in division (/) at /usr/sbin/mylivecd line 273.                                        [  0.00% 00:00:00/00:00:00?

Illegal division by zero at /usr/sbin/mylivecd line 291.

I don't know if it was working and if yes where is the .iso file?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #11 on: July 13, 2010, 04:24:28 AM »
Look in /tmp. What do you see? Do you see a partially completed ISO?

Did you unmount (umount -a) any other partitions before starting?
Did you use df to check your sizes?
Did you run bleachbit and bleachbit-root before starting?

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #12 on: July 13, 2010, 05:46:43 AM »
In tmp i have a few things

kdecache-ordidoc
kdecache-root
mylivecd.4059 (empty)
mylivecd.10042( 3 folders and 3 files inside)
mylivecd.15260 (empty)
mylivecd.15695 (3 folders inside)
mylivecd.17596 (empty)
mylivecd.17782 (empty)
scroolkeeper-unknown (folder)
ddebug.log
OSL_PIPE_500 SingleOfficePc etc......

Yes i did umount -a 
I did check the size but i don't remember the info
And i did both bleachbit and bleachbit-root



Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #13 on: July 13, 2010, 06:18:08 AM »
Before another attempt, remove the mylivecd stuff from /tmp. (as root -- su) After running bleachbit and bleachbit-root, open your file manager in superuser mode (i.e. as root) and go to /var. In /var/cache/apt delete the 2 pkgcache files. Check /var/cache/apt/archives/partial to see if anything is there. If there is, post back here with the info.
Next open /var/lib/apt/lists and delete the lists files and the lock file. And then check /var/lib/apt/lists/partial to see if anything is there and post back here with the info, if there is.
Then open /root/.synaptic/logs and delete the log files. (If you want, you can back them up somewhere.)

After this, run df. Post your results here.

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #14 on: July 13, 2010, 06:46:50 AM »
wow, lots of things to do, do i have to remove all this from the root konsole or can i delete the folders manually? The reason why i'm asking is that i'm not too confortable with the konsole yet and i don't want to create problems.