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

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #30 on: July 13, 2010, 11:38:14 AM »
Hum, ok, i'll redo everything, removing folders, umount, df and mylivecd  8)

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #31 on: July 13, 2010, 11:48:32 AM »
I removed the same folders than before, did bleachbit (both) and umount

The df:

[root@localhost ordidoc]# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              49G  3.8G   42G   9% /
/dev/sda6             237G  4.9G  232G   3% /home

Now let's try it again.............LOL

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: How to remove the home partition
« Reply #32 on: July 13, 2010, 11:52:23 AM »
I wonder... I always specify the full path to the ISO when I do this. Wonder if there's a change of current directory between writing the ISO and then looking for it to embed the checksum.

Try specifying as /home/ordidoc/linux.iso or whatever.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #33 on: July 13, 2010, 01:13:17 PM »
Result of the last session

[root@localhost ordidoc]# mylivecd ordidoc-2010.07.iso
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.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:07/00:00:07]
Setting filesystem parameters:                     [100.00% 00:00:52/00:00:52]
Creating compressed image:                         [100.00% 01:18:38/01:18:38]
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 ordidoc-2010.07.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 ordidoc-2010.07.iso

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

Look like the same to me...... :P

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #34 on: July 13, 2010, 01:55:54 PM »
I'm looking at it and with remasterme i was able to remove the /home folder with nodir=^/home, i'm wondering if the same command will work with mylivecd, both remasterme and mylivecd looks the same in the konsole for that process at least.

What would be the right command if i want to remove the home folder (pictures and other stuff) in ordidoc and still create my dvd and send the .iso file in the ordidoc folder so i can easily find it?

mylivecd --nodir=^/ordidoc/home ordidoc-pclinux2010.07.iso

mylivecd --nodir=^/ordidoc/home pclinux.iso

any other command that i can try?


Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: How to remove the home partition
« Reply #35 on: July 13, 2010, 03:12:47 PM »
mylivecd --nodir=^/home/ordidoc ordidoc-pclinux2010.07.iso

or

mylivecd --nodir=^/home/ordidoc /home/ordidoc/ordidoc-pclinux2010.07.iso
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #36 on: July 13, 2010, 03:14:45 PM »
kjpetrie thanks,  the first one is simple but the second one makes my head turn  ;D

I'll have to try them so i'm hoping that it is going to work.....this time 8)
« Last Edit: July 13, 2010, 03:16:59 PM by OrdiDoc »

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #37 on: July 13, 2010, 03:45:00 PM »
Finally success

[root@localhost archives]# mylivecd --nodir=^/home/ordidoc ordidoc-pclinux2010.07.iso
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.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:07/00:00:07]
Setting filesystem parameters:                     [100.00% 00:00:47/00:00:47]
Creating compressed image:                         [100.00% 00:17:57/00:17:57]
Creating isolinux boot:                            [100.00% 00:00:00/00:00:00]
Creating final iso:                                [100.00% 00:00:31/00:00:31]
Embedding MD5 checksum:                            [100.00% 00:00:16/00:00:16]
                                                                             
Restoring Services on the installed system


Created 'ordidoc-pclinux2010.07.iso' (1116,794,880 bytes) in 00:19:41

I don't know why it wasn't working before but for now it's working.

Thanks Neal and kjpetrie  8)

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: (Solved) How to remove the home partition
« Reply #38 on: July 13, 2010, 05:27:24 PM »
Glad it worked. The only thing you have to check now are the services (in PCC -> System -> Manage System Services...) which were turned off and not restored by the crashed remastering process.

It disables some of the services which start at boot so they won't be set that way on the livecd, and then re-enables what it turned off afterwards. However, as the script crashed it never turned them on again the first time, so they have stayed disabled ever since. You might to check things you want on at boot are still on, or you might find other things are not working on your system.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: (Solved) How to remove the home partition
« Reply #39 on: July 14, 2010, 05:00:30 AM »
At the end of the process there is info about that: Restoring Services on the installed system but if i reinstall i will check for that on the new installation  8)

I'm not planning to reinstall my system for now, i wanted to learn the process in order to have it the way i want it and like it is recommanded here somewhere i already have backups of my files on an external drive (using Lucky Backup) but it is time consuming after reinstalling to put everything back the way it was so i'm hoping that it's what i need  :) and i can do it once a month (read that somewhere on this forum also :) )

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3982
Re: (Solved) How to remove the home partition
« Reply #40 on: July 14, 2010, 05:07:20 AM »
Yes, but it didn't restore any because none were set to run when it started. The first attempt disabled them at boot and then crashed, so by the time you got to run the successful remaster there was nothing to disable and therefore nothing to restore. It lists the services as it shuts them down and lists them again as it restores them. I know because I wrote that bit (and there is room for improvement if the script doesn't complete...)

-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: (Solved) How to remove the home partition
« Reply #41 on: July 14, 2010, 05:21:00 AM »
Oh, cool, i'll see when i reinstall what happen with it, maybe i should do it on my other hard drive, i always have a spare one laying around.....hum... ;D