Programming :: Looking For Last Five Files Created On Hard Disk

Aug 4, 2010

Kernel 2.6.21.5, GNU (Slackware 12.0).
Bash 3.1.17.

I want to search an entire subtree of /, in the file system, for all files, with extension html, created on the hard disk. In addition, these have to be the last five created. I think I could split the problem into two parts: (a) Forget about the last condition. Then this is a job for the find command. (b) Sort the output of find using the date as the key, then use 'head' to print the desired output. But even two such simple steps are enough to justify the writing of a shell script. And here lies my weakness.

My script writing knowledge is rudimentary. What's the final purpose? Well, I lately saved four or five LQ pages onto disk containing information I consider valuable to me. But I don't exactly remember where on the disk. Then: either the problem posed is really of a very simple nature or it is not, in the latter case a script being mandatory. One of the algorithm drawbacks (the one described above) is that find may be running a great deal of time. My machine resources (RAM and CPU speed are low) are scarce and there possible are a large number of HTML files on the disk.

View 8 Replies


ADVERTISEMENT

General :: 1TB Hard Disk Partition - Device Not Created

Apr 30, 2010

I have installed 1tb hard drive and would like to partition as follows:

1) / - 20g
2) /swap - 6G
3) /photos /150g
4) /videos /500g
5) /audio /300g

After 2-3 partition an extended partition automatically created in which I am not able to create specified capacity i.e., say I want 150g of /photos partition, the /videos partition is automatically reduced and a free space at the end appears. Some free space is always there which i am not able to understand. Nevertheless i clicked to create, but I get an error viz. 'device not created'.

View 7 Replies View Related

Red Hat / Fedora :: Delete The KVM Created Hard Disk Image File?

Feb 22, 2011

I want to delete the KVM created hard disk image file, so I would like to know where it is located .

View 6 Replies View Related

Programming :: What Are The Series Of Files That Are Called When A User Make Copy Operation From Usb Mass Storage To Hard Disk

Mar 20, 2010

what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?

View 2 Replies View Related

Ubuntu :: Ext USB NTFS Disk Unable To Read Files Created Under 10.10

Feb 9, 2011

Using Ubuntu 10.10 (installed via mythbuntu) I'm unable to read or see files/directories created under Ubuntu. I think it started happening after a reboot to Windows. Some of the directories created under Ubuntu have disappeared completely and some of them produce the following error:
/media/storage/videos/Kids Videos$ ls
ls: cannot access Justin Bieber: Input/output error
ls: cannot access Octonauts: Input/output error
rest of directory is seen fine...

Same on some files:
ls -l
ls: cannot access Dirk Gently.mp4: Input/output error
ls: cannot access Dirk Gently.nfo: Input/output error
ls: cannot access Dirk Gently.srt: Input/output error
ls: cannot access Dirk Gently.tbn: Input/output error
ls: cannot access Human Planet: Input/output error
ls: cannot access Russell Howard's Good News: Input/output error
ls: cannot access The Planets: Input/output error
ls: cannot access Lost Land of the Tiger: Input/output error
total 300160 .....

Just to make it worse I copied more data onto the disk from windows so may have lost some it completely. It there anyway I can repair this? When trying to check under Windows it says it can't. Some of the missing files can be reloaded but others can't. Ran chkdsk /f under Windows XP. Some files have reappeared, but there has been a lot of unrecoverable files lost. Conclusion: Ubuntu 10.10 is badly broken for writing to NTFS. As I would like to share between Windows & Ubuntu using the external disk, I'm not sure what to do at this stage.

View 1 Replies View Related

Programming :: Shell Script To Monitor Files Created On A Folder

Aug 27, 2009

Can someone please help me on how can i create a script that will monitor file creation on a single folder and sending the newly created file on a separate folder? Only the new created file must be transffered or copied to the other folder. The old ones remains.I urgently need this for production deployment.

View 8 Replies View Related

Programming :: Detecting Newly Created Folders / Files On Local File System?

Apr 16, 2010

Using C++, I want to process sub-folders on my home folder sequentially each with a special naming format and containing some binary files in it:

Code:
1/
2/
3/
4/
5/
6/
...

Give above folders, I will process files in 1/ at first, 2/ at second, 3/ at third, and so on.

For some n/ folder, if I realize that n/ actually does not exist in local file system, I do not want to wait for it. Hence I will keep processing (n+1)/ folder, and so on.

However, when processing some (n+m)/ folder, previously not processed n/ folder may have been created on local file system. In this case, I do not want to miss processing it, but somehow detect its creation and process it. After processing n/ folder, I want to continue from (n+m+1)/.

View 5 Replies View Related

Hardware :: Master Hard Disk Error After Installing Ubuntu 8.10 / Hard Disk Died

Apr 8, 2009

after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work

View 3 Replies View Related

Ubuntu :: Hard Disk Is Full But No Files There?

Jan 18, 2011

I am having trouble with my HDD.

Here is how Disk Usage Analyzer looks like:

But I can not find any files there to delete.

Trash is also clean.

View 9 Replies View Related

General :: Recover Files In Hard Disk?

May 15, 2011

All my important files is already gone because I accidentally reformatted my 160GB hard disk. What software should I use to recover my files?

View 4 Replies View Related

Ubuntu Installation :: Copy Hard Disk Have 10.04 And Ext4 To 1000 Hard Disk?

Sep 23, 2010

I want to copy hard disk have ubuntu 10.04 and ext4 to 1000 hard disk for new 1000

View 2 Replies View Related

Hardware :: Adding Second Hard Disk With Windows To Boot With Grub On First Hard Disk

Jul 7, 2009

I have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.

View 3 Replies View Related

General :: Changing GRUB From An External Hard Disk To The Internal Hard Disk?

May 14, 2010

I had a dual boot (windows 7 + debian), both of them installed in my internal hard disk, with the GRUB in it. I have recently installed a second linux distro (mint), but I put it in an external hard disk. Now the GRUB allows me to boot any of the three operating systems, but I need the external disk to do it. It seems that after the mint installation the GRUB is now working from the external disk (if the external disk is not connected, the machine does not boot.) �Is there a way to change the location of the GRUB, to the internal hard disk of my laptop?

View 2 Replies View Related

Ubuntu :: Access Hard Disk Files From Live CD?

May 8, 2010

i'm having some problems booting ubuntu 9.10 and i just want to backup my files and install it all over again.I want to access my old files from the ubuntu Live CD, because no kernel is working.Is there a way?. Just in case, i don't have partitions, so i don't have a 'home' one (but i'm going to

View 5 Replies View Related

Ubuntu :: Log Files Eating Hard Disk Space?

Jan 29, 2009

running ubuntu 8.10 amd64 on my HP intel 2.26ghz dual core processor, 320gb hdd and 4gb ram. My main problem is that when I dual booted ubuntu onto my laptop, I had vista already installed, so I only set aside 20GB of hard disk space for ubuntu, which seems like more than enough to me. What's going on is that it says I have used all my space and only have one GB left, when the only thing I have on my computer are word files and necessary installs like flash player, compiz, avant, etc.When trying to hunt down what was using all my space, first I checked out the disk usage analyzer (some pics from here in):theres my hdd with 1/19 gb remaining here's a breakdown of my home folder, showing that it's not using very much at allhere's my filesystem, now we can see that all the space is being used in the folder: /var

View 9 Replies View Related

General :: Cannot Copy Files To VFAT32 Usb Hard Disk?

Jan 25, 2010

I got an USB hard disk, which is formatted in VFAT32 in window. I try to back up my file.tar to this hard disk. i got this error: writing `/media/PD03/xxx.tar': Input/output errorand the mount point is disappeared by itself.mount point: /dev/uba1the file I tar as a root... i copy the file as a root user as well.mount point info:/dev/uba1 on /media/disk type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=500)

View 3 Replies View Related

Software :: Copy Files From External Hard Disk

Apr 6, 2011

I have an external hard disk with lots of big files and a lot of small matlab script files .m. I would like to grab all the files inside that harddisk that have the .m extension or the *.mat file extension (both are matlab files). Of course this is a
-first-find the *.m files script and
-then copy the files into the hard disk.

What I do not know is how I can also keep the structure of the folders containing the *.m and *.mat files when I will copy them in my local hard disk. As this external hard disk contains 2TB of data it is not possible to copy all the files first and then remove the unnecessary. So I have to find and copy only the files I need but with also keeping the tree structure that the external hard disk has.

View 4 Replies View Related

Programming :: Get Hard Disk Serial Number On Solaris?

May 23, 2011

I want to get the Hard Disk serial number of SCSI HDD on Solaris. On linux this is done using following structs and API:

struct hd_driveid hd;
int ide;
ide=open("/dev/hda",O_RDONLY);
(void)ioctl(ide,HDIO_GET_IDENTITY,&hd);
(void)printf("Serial number - %s
",hd.serial_no);

Is there any similar method exists in Solaris to get HDD serial number.

View 1 Replies View Related

OpenSUSE :: Make Files On CD Writable When Copying To Hard Disk

Jan 3, 2011

I've set up my parents' machine running KDE 4.5 and want them to use the Gwenview import function from the Device Manager popup when transferring image files off photo CDs or other inserted media, since it's the easiest method for them to comprehend. All the files on their photo discs are r-xr-xr-x by default so they're unable to rotate or modify the images once copied to their hard disk. I want to set one specific images folder on their system to automatically force any files placed there to be rw-r--r-- (and rw-rw-r-- for another shared images directory elsewhere). It seems that umask won't work since that can only take permissions away and not add them, and I'd rather avoid getting into messy ACL configuration. Is there a way to achieve this either generically or some hidden config in Gwenview itself? I use KRename myself for such tasks but this is way too complex for my parents to understand so I need something that works without them having to do anything.

View 9 Replies View Related

Ubuntu Multimedia :: Watch Some .mov Files From My Hard Disk - Not Playing

Feb 23, 2010

I just spend 4 hours trying to watch some .mov files from my hard disk ( Quicktime videos).

I installed about 8 players. VLC plays the sound only, the others give more or less the following error: AN ERROR OCCURED. Internal GStreamer error: negotiation problem. Please file a bug at [url]

Installed all medibuntu. Installed quicktime player with wine but this only messes up my screen. I'm using Karmic 9.10.

View 3 Replies View Related

Ubuntu Installation :: Access Hard Disk Files From Live CD

May 8, 2010

I'm having some problems booting ubuntu 9.10 and I just want to backup my files and install it all over again. I want to access my old files from the ubuntu Live CD, because no kernel is working. Is there a way?. Just in case, I don't have partitions, so I don't have a 'home' one (but I'm going to).

View 1 Replies View Related

Ubuntu :: External Hard Disk Corrupt With Important Files Still On It?

Nov 27, 2010

I plugged my external hard disk into my computer and it gives me this message: Quote:Unable to Mount:Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread

failed: Input/output error
Failed to read of MFT, mft=6 count=1 br=-1: Input/output error
Failed to open inode FILE_Bitmap: Input/output error

[code]....

View 1 Replies View Related

General :: Can't Delete Files From External Hard Disk / Remove It?

Mar 26, 2010

Can't delete files from external hard disk.
Getting message,"Input output error or unreadable/corrupted file"

Is there any way to delete this?

View 1 Replies View Related

Hardware :: Check Hard Disk For Errors. Possible Hard Disk Failure?

Jun 21, 2011

I was using Terminal and browsing a directory in my home folder. My "home" directory is located on "/dev/sdb1". When in Terminal I typed "ls" in one of my directories and the output was garbage. The output didn't show the files in the directory. I think it said something like, "input/output error". Unfortunately, I didn't write the exact error down. Instead I rebooted.The hard disk with the problem is:

Code:
$ sudo hdparm -I /dev/sdb
[sudo] password for brian:

[code]...

View 6 Replies View Related

Ubuntu :: Installer Encountered Error Copying Files To Hard Disk

Oct 18, 2010

I have about 170 Gigabyte free at the last of my hard. I have windows 7 and suse linux installed on the machine. When I try to install ubunto. I start to create the partitions manually because I want to add it as a third operating system on my PC. Anyway I create the 4 partitions /boot - / - /var - /home. Automatically it choose to install the boot on sda not sda 9 as the /boot was sda9. I click install.

It gives me this message "The installer encountered an error copying files to the hard disk:
[Errno 5] Input/output error

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment." I burn another cd and do the same ... the same problem.

I try to create the partitions at the end of the hard disk not the beginning although I am sure that there is no error in the hardware but the same message. Lastly I change the boot to be created in sda 9. The same problem, when I do everything. I download Linux mint another operating system and do the same points. The same error message appeared by the way the boot is being damaged after restarting and I have to fix it from suse linux cd.

View 1 Replies View Related

Ubuntu Installation :: Files Be Deleted On Hard Disk Containing Windows XP If Install 11.04?

Jul 4, 2011

When i try to install UBUNTU 11.04 it shows me the warning that there is no OS on my hard disk.But i have windows XP SP3 & UBUNTU 10.04 on my hard disk. Will all the files be deleted on my hard disk containing Windows XP if i install UBUNTU 11.04? How can i solve the problem?

View 3 Replies View Related

Ubuntu Installation :: Installer Encountered An Eror Copying Files To The Hard Disk

Jan 17, 2010

"The installer encountered an eror copying files to the hard disk: [Errno 30] Read-only file system

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. ..."

Before I try changing CD drives, re-formatting the hard drive (again), or cleaning the CD drive, I must add that Xubuntu did open. I got rid of all traces of the previous operating system (WinME), and Xubuntu seems to work pretty well. The installation stopped at 41% of copying files. Should I aim for a finished installation or is this fine?

View 9 Replies View Related

Ubuntu Installation :: 10.10 - Installer Encountered An Error Copying Files To The Hard Disk

Dec 2, 2010

Each time, different methods, I get this about 3/4 of the way through:

The installer encountered an error copying files to the hard disk:

[Errno 5] Input/output error

This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment.

The only possibility of those is the CD being bad. But I've used it before, recently, and it was fine. I will burn another one from my other computer and try, but it shouldn't be doing this.

Question: If I plan to only use Ubuntu on this computer (no dual boot) should I make the /,swap and /home partitions all Primary or some logical, or does it even matter?

View 6 Replies View Related

Software :: Xorg Not Closing Files / System Reporting Full Hard Disk

Feb 9, 2011

I opened this thread in Ubuntu forums with no luck at all. Hope someone can give me a clue of what happens.URl...Recently, gnome has been warning me about low disk space, always less than 1.5GiGs. The problem is, baobab (disk usage analyzer) tells me that there are something like 50GiG free. I am sure that I have the free space ( I can write big files ) but the system keeps reporting low disk space.

View 4 Replies View Related

General :: Use Hard Disk Image Like A Regular Hard Disk?

Apr 6, 2010

If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?

By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...

(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved