VSIDO Community

VSIDO Controls => VSIDO Discussions => Topic started by: VastOne on September 13, 2013, 04:41:55 AM

Title: Reclaim Thy Space
Post by: VastOne on September 13, 2013, 04:41:55 AM
All right all you VSIDO users... I have a gift for you

In testing for a new build that can be seen here (http://vsido.org/index.php/topic,496.msg5868.html#msg5868), an issue that may have been hidden since the beginning of all of this has shown up...

A couple of awesome test users, dizzie and jedi, noticed that the size of the new VSIDO install was probably 3 times larger than ever before. At about the same time, I was seeing failures on my VM install test beds that made no sense but once I investigated further, the failures were happening because the 8 gig had ran out of space... (VSIDO install would say All Is Good, lets reboot, but there would not be a grub installed, the last step of the installer)

On a day long discussion on the #VSIDO IRC channel, it was discovered that /lib/live/mount on the new installs were 6.5 gig!!!!

Testing was done to ensure that deleting /lib/live/mount was all right (and Google indicated others with the same issue) and we can emphatically say....

Code: [Select]
sudo rm -rf /lib/live/mount
This has probably been going on since the beginning of VSIDO but with installs at 4-5 gig it was not a big deal... The actual install size of VSIDO is 3 gig before running vsido-welcome!!!

For anyone in the future, I have enhanced the VSIDO installer to remove /lib/live/mount as one of the last steps before the grub install so that this will never hit anyone again

Great thanks to jedi and dizzie for the testing (and bitching) and apologies to anyone who has seen this as an issue

Title: Re: Reclaim Thy Space
Post by: Cuttlefish on September 13, 2013, 12:42:48 PM
Thanks VastOne.  Dropped from about 7.9 to 4.8!  Cool!
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 14, 2013, 03:33:03 AM
Just wanted say thanks to all. Nice catch!
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 23, 2013, 04:52:10 PM
Sorry for the double post but ...

What about the live directory in lib?  I mean what is it's purpose and does it need to be there?  If so what is it doing? This is not urgent just curious.  At the end of my dist upgrade  I always see this and it is bugging me.  Yes, yes google is my friend but I am being lazy so feel free to ignore me.  :-[
Code: [Select]
live-boot: core filesystems devices utils memdisk udev wget blockdev ftpfs.
Title: Re: Reclaim Thy Space
Post by: VastOne on September 23, 2013, 05:52:17 PM
Good question statmonkey and one I have pondered as well.  I am unsure of it's value and since it is so small I have erred on the side of caution and left it

I do not think there is any issue at all in removing it
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 23, 2013, 09:57:25 PM
Well I am whacking it and if it all blows up .... I am coming to find you on the golf course :) Thanks for the feedback if anything untoward happens will let you kn ...........
Title: Re: Reclaim Thy Space
Post by: VastOne on September 23, 2013, 09:59:21 PM
^ Thanks, I think!...

I have tested it removed and have not seen anything unusual
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 24, 2013, 03:31:17 AM
Just kidding. I removed it and it seems to have had no effect, but after I removed it I have seen lots of unusual things.  I watched a David Lynch movie.
Title: Re: Reclaim Thy Space
Post by: PackRat on September 24, 2013, 11:58:04 AM
^ seriously?

I recall seeing something in the startup services that may be related to that directory.
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 24, 2013, 04:47:39 PM
There is a call to the live boot source that results in warnings from initramfs that it is not able to access the liveboot
unfortunately I can't find it in my log at the moment.  There does seem to be some impact not sure how critical.  Of more concern is this from the /var/log/live/boot.log
Code: [Select]
modprobe: module swap not found in modules.dep
modprobe: module swap not found in modules.dep
umount: can't umount /live/overlay: Device or resource busy

I can't find anything in the dmesg, boot, error or any other log that shows a problem and I am not seeing any issues.  The only things I have seen once the folders were removed are the above the message that came in my last upgrade about "initramfs not being able to include the "live boot". Sadly I assumed that would be somewhere in my logs and I could grab the message later to research.  I can't find the exact message and would like to research this.  Any ideas where to look?  Any thoughts on how big an issue I have created (if any)?
Title: Re: Reclaim Thy Space
Post by: PackRat on September 24, 2013, 05:42:47 PM
I wouldn't really know where to look. Based on what you have though, I would say you can no longer access/mount any swap file you created on install.

If my original comment was correct, you can install rcconf with apt and edit your services - there are two that may be related to what you just deleted - they start with "live".

You may be getting errors because those services can't start - I don't know what either does.

Should finish by pointing out, I'm just brain storming here and you may totally bork your system.
Title: Re: Reclaim Thy Space
Post by: VastOne on September 24, 2013, 05:47:26 PM
(looking over my shoulder on the golf course)

On my system I did remove live and have seen the same errors but still with no outstanding consequences...
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 24, 2013, 08:08:38 PM
You are probably still safe on the golf course, finish your round in peace.  If I do "bork" my system I can just re-install the latest and greatest and start over.  As stated in the "ideas" thread that is the beauty of Vsido.  Honestly thinking about doing a re-install anyway, will wait and see what happens with the lxpanel v tint2 issue. 

Good info packrat and here is what I found. 
If I fire up rcconf and tick off the items that are related to live I get the following:
Code: [Select]
update-rc.d: warning: start runlevel arguments (none) do not match live Default-Start values (S)
update-rc.d: warning: stop runlevel arguments (0 1 2 3 4 5 6) do not match live Default-Stop values (0 6)
If I open up sysv-rc-conf and look for live items the live entries are all empty

I thought the message might be a hint so I opened up the /etc/live and live-installer folders and there seems to be some leftover configuration files in there. Specifically install.conf and config.con.  I am assuming that these are getting called incorrectly or should not be present.  Anyone know if these can be removed? Or if there might be something else I am missing.  Getting the feeling that I am pulling a thread that might unravel the sweater.

VastOne I will catch you on the back nine.
Title: Re: Reclaim Thy Space
Post by: PackRat on September 24, 2013, 10:07:38 PM
Don't know if they can be removed, but if you attempt it - and what do you have to lose at this point? - rename them instead, or move them to a temp directory.

You may be on to something about those files being leftover. I opened synaptic and there are a lot files that seem to related to what you have deleted to date. By not removing them with apt/synaptic there could be plenty of leftover files - you may have created a bunch of orphans. You can open synaptic on our system and see if a bunch of packages show as broken.

and yes, you may be unraveling the sweater.
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 25, 2013, 02:08:46 AM
2 great suggestions PackRat that I will embark on immediately.  Just read in the other thread VO's progress on the newest and greatest so it would seem that even if I cause my system to barf I won't be adrift.  I never have used or considered synaptic for several years now so I would have never thought of that.

Just backed up and rebooted.  In Synaptic there are no broken packages.  It does show 

So, I know get the takemytoysandgohome joke.  Ha! After reading the remastersys site and of course enjoying some of the fine gossip related to it.  I decided to take the plunge and remove this stuff along with memtest86+ which I don't believe I need on my box.  All went well ..... except the following:
On trying to remove "live-tools" the system just says no or more accurately
Code: [Select]
Removing live-tools ...
dpkg-divert: error: rename involves overwriting `/usr/bin/uptime' with
  different file `/usr/bin/uptime.orig.procps', not allowed
dpkg: error processing live-tools (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have read a couple of walk-throughs on how to fix this but the end result so far has been nada.  If anyone has any ideas let me know.  The good news is I think all this live stuff can be taken out. FWIW
Title: Re: Reclaim Thy Space
Post by: statmonkey on September 25, 2013, 06:02:57 PM
Good stuff ectropy thank you.  I am pretty unfamiliar with synaptic so it is all new to me again.  I think it was my old 'buntu days which would have last been pre-edgy I think.  I am a little synaptic resistant due to my years of running aptosid. Those original devs were bitterly opposed to synaptic and even adding apps in an X environ and I got brainwashed. Anything that helps me understand more is welcome and this does.  I was using rdepends and its a good tool to have around.

Appreciate a good flame war and was really just commenting on the remastersys soap opera as whole and not the philosophical reasons behind it.  Having been victimized by users attempting to take my code and change as little as the name of who developed it and sell something I was giving away I can relate.  I think there seems a little more to this one as I understand including the original dev deciding he wanted to take back what he had given freely and not wanting to contribute anymore.  That of course being completely off topic and based on a very cursory reading of the conversations back and forth.  Anyway thanks for the instructions here and the stuff you posted about .gvfs (I really hate that crap).

Addendum - Thanks to the fine info from ectropy above and using the dreaded synaptic I fixed the niggling little error I was getting by reinstalling live-tools and then removing them correctly.  So the end result is I took the live stuff off my system with no negative effects.  Thank you all.