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

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #15 on: July 13, 2010, 06:52:18 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?

You can do it from the file manager > right click on any file > delete.

For LXDE > lxdecc > system tab > file manager superuser mode.

For KDE, look in the menu for konqueror-root. I'm not sure about the other other DEs, but they all have such a feature.

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #16 on: July 13, 2010, 06:56:09 AM »
I'm trying to use konsole and i'm not sure if the commands are the right one

root@localhost tmp]# rm mylivecd.10042
rm: cannot remove `mylivecd.10042': No such file or directory
[root@localhost tmp]# rm mylivecd.10042
rm: cannot remove `mylivecd.10042': No such file or directory
[root@localhost tmp]# rm mylivecd.15260
rm: cannot remove `mylivecd.15260': No such file or directory

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #17 on: July 13, 2010, 07:04:48 AM »
I'm trying to use konsole and i'm not sure if the commands are the right one

root@localhost tmp]# rm mylivecd.10042
rm: cannot remove `mylivecd.10042': No such file or directory
[root@localhost tmp]# rm mylivecd.10042
rm: cannot remove `mylivecd.10042': No such file or directory
[root@localhost tmp]# rm mylivecd.15260
rm: cannot remove `mylivecd.15260': No such file or directory

While logged in as user, start your file manager in superuser mode and go to /tmp. Right click on what you need to remove and choose delete.


Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #18 on: July 13, 2010, 07:08:14 AM »
Ok now something new now, logged as user...???

Neal, you probably realize now that i'm still noob at this i hope  ;D

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #19 on: July 13, 2010, 07:30:32 AM »
Ok now something new now, logged as user...???

Neal, you probably realize now that i'm still noob at this i hope  ;D

Unless it is beyond-all-doubt-absolutely-necessary, you should never log in as root.
All the tools you need for root tasks are provided in your user account. If it is a GUI tool, there is either a menu entry for it, or it can be launched from a terminal with the command kdesu launch-command (for kde) or gksu launch-command (for other DEs). [***Important for security** Never launch a web browser as root! Not for any reason!]
If it is a command line utility, the su command switches you to root (superuser) on a temporary basis so you can perform the needed task. When you finish, the exit command gets you out of root safely.


Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #20 on: July 13, 2010, 07:32:46 AM »
I'm not logged as root unless i have to use su and my password to get to it, i'm log as ordidoc and i did try to remove the folders that you were mentionning earlier on and it's also not working...

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #21 on: July 13, 2010, 07:41:00 AM »
Played with it and this is what i have:

[ordidoc@localhost ~]$ cd tmp
[ordidoc@localhost tmp]$ dir
kde-ordidoc     ksocket-ordidoc  pulse-397VI5uG1yhc  qt_temp.ay6275  qt_temp.sd6275     sv5m8.tmp
keyring-UL46ml  orbit-ordidoc    qt_temp.aC6275      qt_temp.QF6275  r8s0vjyW.bin.part
[ordidoc@localhost tmp]$ cd root
bash: cd: root: No such file or directory
[ordidoc@localhost tmp]$ cd home/root
bash: cd: home/root: No such file or directory
[ordidoc@localhost tmp]$ cd home
bash: cd: home: No such file or directory
[ordidoc@localhost tmp]$ cd root
bash: cd: root: No such file or directory
[ordidoc@localhost tmp]$ su
Password:
[root@localhost tmp]# dir
kde-ordidoc     ksocket-ordidoc  pulse-397VI5uG1yhc  qt_temp.ay6275  qt_temp.sd6275     sv5m8.tmp
keyring-UL46ml  orbit-ordidoc    qt_temp.aC6275      qt_temp.QF6275  r8s0vjyW.bin.part
[root@localhost tmp]# cd home
bash: cd: home: No such file or directory
[root@localhost tmp]# cd root
bash: cd: root: No such file or directory
[root@localhost tmp]# exit
exit
[ordidoc@localhost tmp]$ cd ordidoc
bash: cd: ordidoc: No such file or directory
[ordidoc@localhost tmp]$ cd home
bash: cd: home: No such file or directory
[ordidoc@localhost tmp]$ cd /home
[ordidoc@localhost home]$ cd /root
bash: cd: /root: Permission denied
[ordidoc@localhost home]$ cd root
bash: cd: root: No such file or directory
[ordidoc@localhost home]$ su
Password:
[root@localhost home]# cd /home
[root@localhost home]# cd /root
[root@localhost ~]# cd /tmp
[root@localhost tmp]# dir
hsperfdata_ordidoc  kdecache-root  mylivecd.10042  mylivecd.15695                                              scrollkeeper-UNKNOWN
kdecache-ordidoc    kde-root       mylivecd.15260  OSL_PIPE_500_SingleOfficeIPC_5d51ce13282cec51d646b44c5e9e8
[root@localhost tmp]# rm mylivecd.10042
rm: cannot remove `mylivecd.10042': Is a directory
[root@localhost tmp]# cd mylivecd.10042
[root@localhost mylivecd.10042]# dir
initrd.dir  initrd.mnt  livecd
[root@localhost mylivecd.10042]# rm initrd.dir
rm: cannot remove `initrd.dir': Is a directory
[root@localhost mylivecd.10042]#

so it looks that the commands in the konsole are similar to DOS, here rm replace del but to get to the folders i had to add the / in front of the name of the folder but anywan i cannot delete the folders that i want to  ;D

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #22 on: July 13, 2010, 07:43:33 AM »
I have to go for now, be back soon, if you have more info please post it for me so that i can get to work on my way back..

Thanks Neal  ;)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #23 on: July 13, 2010, 08:06:21 AM »
If you use the file manager, it will be easier. But if you must use the terminal (bet you think it's cool :D), then you should know how to type a directory address. Have a look at my previous posts. Did I say go to tmp? No! I said, "Go to /tmp."

Not correct:
Quote from: ordidoc
[ordidoc@localhost ~]$ cd tmp

Correct:
Quote
[ordidoc@localhost ~]$ su

<Enter> - give root password

Quote
[root@localhost ordidoc]$ cd /tmp

This is an important command for when you finish:
Quote
[ordidoc@localhost ~]$ exit

It is necessary for you to learn the commands in their correct form, before you use them. The cool factor doesn't apply here! Commands must be exact to be useful.

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #24 on: July 13, 2010, 08:40:03 AM »
my bad, sometimes i want to do things faster and i make mistake   :-\

got it anyway, the command that i use is (as root) rm -rf mylivecd.10042 and it's working.

I did a search on Google on "cannot remove folder in Linux" and i got that rm -rf (i think that -rf remove the permission) and finally i was able to remove the folders that were giving me problems.


Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #25 on: July 13, 2010, 08:50:37 AM »
Ok, i removed all the folders and my df is:

[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
tmpfs                 1.9G     0  1.9G   0% /dev/shm

Anything more that i can do before trying remasterme again ?

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #26 on: July 13, 2010, 08:57:16 AM »
The size looks okay from your df output.

Rather than use the remasterme command, re-read this thread and read http://www.pclinuxos.com/forum/index.php/topic,74418.0.html  to get the needed information and use the mylivecd command.

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #27 on: July 13, 2010, 09:09:09 AM »
Cool, i'll try with mylivecd command hoping that it will work this time :)

Offline OrdiDoc

  • Hero Member
  • *****
  • Posts: 616
Re: How to remove the home partition
« Reply #28 on: July 13, 2010, 09:55:07 AM »
This is the result:

[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))
[root@localhost ordidoc]# mylivecd linux.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:48/00:00:48]
Creating compressed image:                         [100.00% 00:41:21/00:41:21]
Creating isolinux boot:                            [100.00% 00:00:00/00:00:00]
Creating final iso:                                [100.00% 00:00:01/00:00:01]
ls: cannot access linux.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 linux.iso

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

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: How to remove the home partition
« Reply #29 on: July 13, 2010, 11:17:19 AM »
It looks like you are running out of room, yet your df output shows otherwise. ???

Try this
Code: [Select]
mylivecd ordidoc-2010.07.iso