Ubuntu :: Safe Way To Clean Up /lib File Tree?
Jan 3, 2011
Is there a safe way to cleanup the /lib file tree? Mines gotten too large for the filesystem it's on (/), and I've already shot myself in the foot a few times trying to delete things.
View 7 Replies
ADVERTISEMENT
Mar 8, 2010
After the recently 2.6.31-20 kernel update, my 100MB /boot partition is starting to lack space. When I examine it, I have a lot of old kernel files all the way back to 2.6.31-14.
Is it safe to just delete all the kernel files except for the 2.6.31-20 ones?
The only files and folders on that partition is just the grub folder and all the kernel files anyway.
View 5 Replies
View Related
Aug 19, 2010
I have ubuntu 9.10 & windows 7 on my laptop. I have one 40GB Primary partition (C & 60 GB logical partition on my windows. I have given another 20GB for ubuntu.
I hibernated my windows7 & then started ubuntu 9.10. Then I copied a folder containing some PDF files from my ubuntu to that 60GB (D on windows. Then I rebooted the machine & choose windows from GRUB. the windows came up from hibernation but nowhere I was able to see that folder which I copied.
Since ubuntu supports (understands) NTFS file system it means when I copied that folder it should have updated the Directory Tree of NTFS on that 60GB (D but that folder is not shown.
When I restart the windows the folder appears (ofcourse because windows checks the file system again for consistency while in hibernation it does not).
View 3 Replies
View Related
Aug 18, 2010
I am working on a PHP enabled webpage that will allow a user to select multiple files and directories to upload from a local machine to an ftp server. I am comfortable with uploading the files from the machine to the server. The problem is making it easy to select all the desired files. What I would like to do is create an expandable file tree that lists all the directories and files on the local filesystem. From there, the user should be able to select directories and files using checkboxes. Upon clicking submit, all of the selected files should be fed into an array of files that can be sequentially uploaded to the ftp server.
View 1 Replies
View Related
Dec 7, 2010
My assessment is making a tree from a text file as follows: -reading a file line by line
-making a binary tree from it
- traverse by level the binary tree
- posting the traversal result to the same file without overwriting the text file- it is required to be append to the bottom of the text file (i have to do this in 4 languages: c#,PHP from Xampp,java, python)
i read the file with this script in java:
public class FileToStringArray {
privateString strLine;
privateString[] stringArray;
privateFileInputStream in;
[Code]...
View 9 Replies
View Related
Feb 25, 2011
Is it possible to make a script that makes a tree of all folders and subfolders and outputs it to either a .txt file or .pdf? All folders except from one shall list 2 levels. The except folder all the way.
View 3 Replies
View Related
Aug 31, 2010
how do I find a phrase/word recursively in a file tree in Linux?I tried find . -name ./* | grep my_phraseand I tried grep -r "register_long_arrays" *
View 5 Replies
View Related
Sep 15, 2010
In the left pane of Nautilus File Browser, I can only display directory and file names. I don't have the button at the top of the pane which allows me to select an alternate view such as Tree view.
View 6 Replies
View Related
May 15, 2010
With a 1Tb USB drive plugged in, we'll call it "TheDrive", I boot my machine and "TheDrive" is mounted automatically. The icon is on the desk-top. "TheDrive" mounts to /media/TheDrive. Everything is fine. But, I would like to automatically mount the drive in my file tree at the location /mnt/TheDrive. I would not like to have the drive automatically mounted to /media/ and appear on the desktop. I know that this requires the use of fstab; but, I do not know what to add to this file.
[Code]...
View 14 Replies
View Related
Jul 29, 2010
I am new to linux platform and my requirment is to write a makfile which can compile a tree for source file and create the output in separate directory .
View 1 Replies
View Related
Dec 14, 2010
I have a 500 GB external USB hard drive that I use for putting images and backup data into.I had some problems with it not automounting today, and in trying to access the drive I got errors indicating that an operation was already in progress. Eventually it mounted on it's own, but I unmounted it and ran "Check Filesystem" from the Disk Utility program on the drive, just to be sure. After a while, it finished and told me that the file system was "NOT clean".So, what does that mean, and how do I fix it? Before I unmounted it, I was able to navigate the mounted filesystem, so it doesn't appear totally hosed.
View 2 Replies
View Related
Apr 15, 2011
I'm trying to clean up an iTunes-sorted Music directory. For whatever reason, it contains a large number of folders that have album art, but no music. I'm actually more concerned about a safe way to test my removal batch, but I thought I'd paste everything I did in case it's useful to someone. Based on this thread, I came up with the following script:
Code:
#!/bin/bash
find ./*/* -type f -iregex ".*(mp3|m4a)" | sort | while read line ; do
echo "${line%/*}" >> file1
done
sort -u file1 > fileuniq
[Code]...
But I'm scared to just run this on my music folder. Is there any way to run rm in "test mode", so that I would just see verbose output, but it wouldn't actually delete anything? Failing that, does anyone see anything wrong with my plan?
View 4 Replies
View Related
Jan 9, 2010
Due to some reason not known to me at this moment, my regular shutdown doesn't work. It freezes on disabling the swap file and doesn't do anything. Now, until that problem is solved, I need a way to properly shutdown. I found one, which is poweroff -f, but it is hardly graceful, and would amount to 'flipping the switch' I guess. The other is hibernate, which is what I now use. This does work, but I rather completely shut down the system. For one, regular boot is quicker than resuming from hibernate.
My main question is: is there any way to make the poweroff -f command, e.g. combined with manually disabling the swap file or whatever,"safe?" as in, I can imagine a sudden power off meaning more chance of damage to the HD, which I don't want.
View 6 Replies
View Related
Mar 26, 2009
I noticed the xsession-error file in my main user's home folder grow up to a big size, it's usually at 2-3MB sometimes up to 20MB. I use Fedora 10 64bit and KDE4.2. I got no problems at all and the xsession-error logfile is full of weird entrys, almost everything is reporting to it, mplayer, xine, opera, firefox, dolphin and many other software I use. I don't think the most of these entrys are real and critical system errors, especially all the mplayer stuff. However, I'm not worried about the file size since Fedora 10 seems to delete the file on every log in.
My problem is the disc access because all this never ending writings to hard disc kinda break things like the mount options noatime, nodiratime. I read something about you can redirect the logfile to /dev/null but that was for an ubunto distribution and I would like to get a how to for a save way to disable the xsession-error logfile, I got 8GB RAM so everything is in cache anyway after a long session, I really want to get rid of unnessesary hard disc access like that. If not recommend to disable it, can I direct it to an usb stick or ssd?
View 7 Replies
View Related
Dec 18, 2010
I have problem with my printer HP Deskjet D1460. My printer is configured and works. When I send a file on the print, the printer clings a sheet of paper and starts to print, but a paper as was clean so clean and remains, after printing.
View 2 Replies
View Related
Oct 11, 2010
I configured cron to clean my /tmp directory, should I also add other locations to clean and especially /var/tmp.
View 4 Replies
View Related
Apr 16, 2011
I want to perform a clean install on my machine - it's had loads of rubbish installed, and is a real mess. Trouble is, while I have downloaded the ISO file, I do not have any blank CDs. Is there a way to mount the ISO and run the installer from within a running system? Probably not, but I thought I'd ask in case I missed something.
View 1 Replies
View Related
Feb 4, 2010
Is there any difference between apt-get clean and aptitude clean? Do they both remove the same caches? Should I know any other commands for cleaning up wasted space on my ubuntu laptop?
View 1 Replies
View Related
Dec 2, 2010
I installed windows xp, then wanting it off, I formatted Windows NTFS partition from live cd of fedora. Now PC start with a menu to choose between the two operating systems with a countdown. I tried to clean up the grub file by deleting the last three lines for the MBR but with poor success. I would like to cleaning my Fedora 14 start ...
View 6 Replies
View Related
Apr 14, 2011
I've written an Expect script that assists with change management on Cisco devices. The script creates log files for pre-change, the change itself, and post-change. Each log and its commands is triggered by a ! command. For example:
Code:
./dochange.exp hostname
<script spawns bash, user SSHes to hostname>
!PRE
[code]....
All of this works fine. My big hair-pulling hiccup is that the resulting log files are filled with raw backspace characters! I am using log_file to log the output from the script. I stop and restart logging with a new file when needed. However, the log files are pretty much unusable. After doing some research, it looks like log_file sends output to the file in real-time, unbuffered. When I hit a key, it's immediately sent to the log. What I would like is for only the resulting string to go to the log. If I start to type 'reload' and instead type 'show run', I don't want 'reload' to be listed in the log at all.
View 1 Replies
View Related
Apr 19, 2011
I am developing a program in a system where the Linux does not take care of the sync command automatically. So I have to run it from my application always I save some data in the disk, which in my case is a 2GB sdcard. It is true that I can make the operation system takes care of the syncronization, using a proper mount option, but in this case the programm's performance drops drastically. In particular I use the shelve module from Python to save data that comes from a socket/TCP connection and I have to deal with the potencial risk of the system being turned off suddenly Initially I wrote something like that to save data using shelve:
Code:
def saveData(vo)
fd = shelve.open( 'fileName' , 'c')
fd[ key ] = vo
fd.close()
os.system("sync")
But that takes too much time to save the data. Note that I use the sync from the OS every time I close a file to prevent data corruption in the case of the "computer" being turned off with data even in the buffer. To improve the performance I made something like that:
Code:
def saveListData( list )
fd = shelve.open('file_name', 'c')
for itemVo in list:
fd[itemVo.key] = itemVo
fd.close()
os.system("sync")
Thus, first I saved an amount of objects in a list then I open the file and save the objects. In this way I have to open the file just one time to save a lot of objects.However I would like to know if adding a lot of objects before closing the file would increase the risk of data corruption.I known that turning off the system after fd.close() and before os.sync may cause problems. But what about turning off the system after
Code:
fd = shelve.open('file_name', 'c')
but before fd.close()?
View 7 Replies
View Related
Aug 3, 2010
I tried to set up an alias for update, upgrade and clean by putting this line into my .bach.rc file
Code:
#alias ud= 'aptitude update && sudo aptitude upgrade && sudo aptitude dist-upgrade && sudo aptitude autoclean' but when I type ud I get this error message, by the way I tried the bash.rc entry both commented and uncommented with the same result.
[Code]..
View 4 Replies
View Related
Nov 24, 2010
I can't login due to my file-system being full. I found the main area with the large usage. Var/log is taking 99.5% of my var folder. On a full file-system scan Var/log is taking up 85% of disk use. File-system capacity is 36 gig. Temp is cleared after each boot.
What can I do to clean up any unnecessary files. I can only boot in safe mode and have limited navigation skills. To get scan results I booted a live-disc.
Opensuse 11.2 gnome 64 bit.
View 9 Replies
View Related
Feb 22, 2010
So 2 days ago everything was all fine on my machine. Has been for about a month, but all of a sudden as of yesterday I have no sound, I am seeing IRQ interupts on boot, During boot I am seeing file system is not clean, , and swap space is being used for the first time while doing normal task, etc. These are 2 new hard drives in RAID 1 with ReiserFS. I should have used a newer FS but thats a whole other argument.
Anyways here we go.
The system is Debian Lenny amd64
Physical RAM 4GB + 6GB swap
/var/log/messages
Code:
Feb 21 07:35:09 Sarah kernel: imklog 3.18.6, log source = /proc/kmsg started.
Feb 21 07:35:09 Sarah rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="3994" x-info="http://www.rsyslog.com"] restart
code....
View 8 Replies
View Related
Jul 2, 2011
After preupgrade downloads install media and reboots to start install, I get a dirty file systems error on /dev/sda2, my / partition.I fsck'd sda1,2,3,4,5,6 (all clean) and rebooted, ran preupgrade again and got same error. No other disks are mounted other than internal SSD.wtf is going on here? ;-)More importantly how does one get around this error? Only half-solution I have found on the net for this problem is to set allowDirty=1 in upgrade.py and recreate install.img. Have no preupgraded before so don't want to take any more risks than necessary.Thanks for any workarounds....---------- Post added at 03:12 PM ---------- Previous post was at 08:31 AM ----------Anyone have ideas here? I'd like to avoid yum upgrading as that looks to entail more pain.Why on earth does Anaconda see my /dev/sda2 on "/" as dirty when fsck reports it as clean
View 1 Replies
View Related
Mar 22, 2011
I'm wondering if there exists a program get can build a tree from the ftp?
View 3 Replies
View Related
Jan 27, 2010
I'm looking for some software that could help me make a family/work tree. The only problem is that I would like to add other types of connections other than the blood related ones, such as worked with, studied with, supervised someone else etc. And perhaps have the possibility of adding some data about each person and export in a format that can be used by other programs as well.
View 1 Replies
View Related
Jun 10, 2010
I've got a directory structure full of files. I want to convert them all into some other format, but I don't know how to keep the directory structure, is there a way so I can "set" which command to use on files instead of `cp`?
View 4 Replies
View Related
Dec 29, 2010
I initially set up my filesystem on a single disk, normal, plain vanilla, with a partition for /var.Just as an example let's say I have in this file system a path /var/lib/temp.Under /temp I want 4 directories /one, /two, /three, and /four so I get /var/lib/temp/one and /var/lib/temp/two, etc. So I created them.Now I want to separate the directories /one, /two, /three and /four such that each is on its own partition. I create the four partitions and then copy into the appropriate partition /one, /two, /three, and /four. Of course all the stuff inside of those directories are moved over as well.
In fstab I locate a mount point called /var/lib/temp, located just below the /var mount point, and it is on the line with the partition that holds /one.Save fstab, mount -a and it works. Back to fstab, add a second line below the first with same mount point but this time with the partition for /two.Mount -a and /one fails and /two is up. So yes, I can't just put the fstab file together the way I did. I see that clear as day. Last line wins. What I don't see is how to make it right.
View 6 Replies
View Related
Jan 12, 2011
I am looking for a tree style note app that can encrypt its files. Something like Zim in layout and function.
View 4 Replies
View Related