Ubuntu :: 10.04 - 'Date Modified' Changed On File Copy To NTFS Partition?

Jul 6, 2011

Prior to making a fresh install of 10.04, I made a back up of all my documents by copying them to a NTFS partition. I did this my selecting files in File Browser, then right clicking and selecting the Copy command.

When I came to move the files back after the fresh install, I was mortified to find that all the file modification dates had changed to the date I copied them! I've lost all the original file dates, which was the principal way I sorted my files. I guess there's no way of getting it back? It seems that Linux does not store File Creation dates either so I'm stuffed.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Accidently Modified My File System Of Some Partition In My Hard Disk From Ntfs To Fat

Apr 16, 2011

i accidently modified my file system of some partition in my hard disk from ntfs to fat...i havnt formatted the drive...but now i cannot mount this partition...

View 1 Replies View Related

Ubuntu :: Backup NTFS Files Modified After A Certain Date?

May 14, 2010

I clone my entire notebook hdd once a month to a USB drive with an identical disk once a month using dd. I would like to find a way to automatically or manually do incremental backups at shorter intervals.

The first problem is that my incremental backup drive is not the same as my full backup drive (which is my clone). Is there some way to backup or copy all files on a document partition modified after a certain date?

The second problem is that my document partition is NTFS-3G. I guess this could be done pretty easily using "dump" if I stored my docs on ext. [I don't because I want to make sure that my docs are accessible from any machine (say in an Internet cafe) should my MacBook die and I need to rip out the hard drive and run to do my homework on another system; that is why I keep my docs on my Vista partition].

View 1 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

Programming :: Script To Find Out Modified Date For Particular File

Jul 9, 2010

I am new to Scripting. I am trying to find out particular file is modified in last one hour or not in script and then if that file is modified in last one hour i need to copy that file to another directory.Can any one please provide me how to check the file is modified in one hour or not?

View 3 Replies View Related

General :: Write Shell Script To Check The Modified Date Of A File ?

Jun 17, 2011

I have two linux servers, they are backup together.

1. Server 1 have 3 files with name: file1, file2, file3 in the path: /etc/sysconfig/network-script/.

2. Server 2 have 3 files with name and path are the same as server 1.

- How to make a script to copy 3 files at server1 to overwrite on server2. But before overwrite, this script will check and compare the last modified date of these 3 files(on server1 and server2). if the modified date of file1, file2 or file3 on server1 is newer than 3 files on server2 then overwrite process will do, if not, will do nothing.

- see my script as below: it works find now but just overwrite. not check last modified date.

View 1 Replies View Related

General :: Find And Sort Results By Date Modified

Jun 7, 2011

so I was wondering how I could do a simple find which would order the results by most recently modified. Here is the current fine I am using. (I am doing a shell escape in php, so that is the reasoning for the variables. find '$dir' -name '$str'* -print | head -10

How could I have this order the search by most recently modified. (Note I do not want it to sort 'after' the search, but rather find the results based on what was most recently modified)

View 4 Replies View Related

General :: Find All Files Modified In Date Range

Apr 30, 2010

I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.

View 2 Replies View Related

Ubuntu :: Sequentially Number Files Based On Date Modified - Rename Cli

Nov 8, 2010

Sequentially number files based on date modified (rename cli)

I'm almost done a larger script which takes all the pictures in a folder, converts it to video, and emails it to me. Everything worked fine until I realized the picture filenames weren't always starting at 1, then ffmpeg chokes.

I have a bunch of files in a folder which I need to rename to:

I don't want to install any additional packages and I'd like this to run in a single command if possible.

If not possible, then a bash script would work too.

View 3 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 Replies View Related

Programming :: Bash Script To Copy Modification Date From A File To His Folder?

Jul 29, 2011

I need this script but I don't know how to do it I have one folder with several folders inside.On each folder a have one MKV or AVI file inside...What I need is a script to change the "modification date" of each folder to the "modification date" of each MKV or AVI that the folder has inside.

View 16 Replies View Related

General :: How To Copy Only Modified Files

Sep 2, 2010

Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?

View 2 Replies View Related

General :: Copy Only Files The Have Been Modified Today?

Jan 22, 2011

How can I make copy only files the have been modified today

as far as get

Code:
find myworkingfolder -ctime 0|xargs -i cp {}-ap bakupfolder

Is it ctime or mtime? and how i add this command to crontab?.

View 2 Replies View Related

General :: Copy File From The Underlying NTFS Windows HD - Error - Permission Denied

Jan 17, 2010

Quite a few times i have boot puppy linux live and have tried to copy file from the underlying NTFS windows HD only to get an error like permission denied when i try and copy a file to say a USB stick, i think some files copy but i seem to get permission errors with some files.

View 1 Replies View Related

Hardware :: Ran Mkfs.vfat Over Top Ntfs Partition - Any Way To Restore Ntfs Partition Info?

Oct 12, 2010

I was attempting to format a flash drive, and well, used the wrong sdX device. I've run DiskInternals Partition Recovery tool, and all my files are still there (you have to pay $139 to have it restore the files). Is there any way using tools in linux to restore the ntfs partition/files? It was a single disk with the partition taking the entire drive. I've tried mounting it with the -t option, but it says invalid ntfs signature. Man, two lessons the hard way, make sure you backup (duh) and be careful what you type as root.

View 8 Replies View Related

Ubuntu :: Rotate Image (Script) Without Changing "modified" Date?

Nov 19, 2010

I am actually modifying someone else's script and I need some help. The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code:
#!/bin/bash
while [[ -n "$1" ]]; do

[code]....

View 3 Replies View Related

Ubuntu :: Rm -r File Recovery On Ntfs Partition?

Jan 29, 2010

I was copying a bunch of files between hard drives. For some reason I have permissions issues, but I was able to copy the data using cp in the terminal (I know I can sort out permissions, but that's something for another thread).So, I start copying files just fine, but cp doesn't have any sort of progress indication. So, I started up another two terminal windows, cd'd to the source and destination folders, and ls -l'd each to compare the folders.

At this point, I realised that I'd forgot to add -r to the cp command, so cancelled it. I decided it'd be better to start again and add -r in, and repeat the command. So, I went to the folder, went up a level, then rm -r'd the folder I was just in. It wasn't until I'd gone through with the command that I realised I was actually in the source folderSo, putting aside all the obvious things like 'You dope, you shouldn't have been messing around with rm -r, let alone sudo' and 'With great power comes great responsibility' and 'This never would have happened if you'd just sorted out your missions and usedNautilus', is there any way I can recover the data? I know it's possible in ext2, but not in ext3, but it's on an NTFS partition. Is it possible to recover files from this

View 5 Replies View Related

Ubuntu :: Trying To Undelete A File On Ntfs Partition

Jan 7, 2011

I dual boot with Win7 and Ubuntu. I have several different partitions including one named "Music" which is NTFS and does not have either OS installed on it so it only gets written to when I am doing my music recording.

I recently created a file named "all music backup" on the partition Music using a program in Ubuntu. The backup contained a number of songs I had recorded and wanted to backup all in one place. It was a very large file (7-8 GB I think, I don't remember exactly). I then deleted the individual files I had backed up. A few days later I was in Ubuntu and noticed that my backup file had disappeared and some (but not all) of the individual files I had deleted and re-appeared. I rebooted to Win7 and used 2 different undelete utilities to try and find the missing file but neither program could find it. I booted back to Ubuntu and tried TestDisk but it didn't find the missing file either. I don't know what happened to it but I am sure I did not delete it. I don't fully understand NTFS partitions but I fear there was some kind of problem between Win7 and Ubuntu and one of the OS's messed up the partition table. I have not used the Music partition recently and I am sure the file has not been written over with new data. It should still be there but I don't know how to find it.

View 3 Replies View Related

General :: Create A Script That Will Look For A "filename" Under /etc/, Date Stamp The File And Copy It To /var/www/upload?

Jul 14, 2011

I'm trying to create a script that will look for a "filename" under /etc/, date stamp the file and copy it to /var/www/upload

View 5 Replies View Related

Programming :: Rotate Image (Script) Without Changing "modified" Date?

Nov 18, 2010

I am actually modifying someone else's script and I need some help. The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code: #!/bin/bash
while [[ -n "$1" ]]; do
#if a file and not a dir
if [[ -f "$1" ]]; then

#the images that I copy from my cell phone don't have exif headers #so I am using the -mkexif switch first to match the exif information #to the "created date" in the .jpg file. jhead -mkexif "$1"

[Code]...

It's important to note that the original script, before I made any edits, did not have this quirk whereas I needed to "touch" the file to get it to orient itself correctly. The 'original' script is in black; my additions are in blue.

View 4 Replies View Related

General :: Rotate Image (Script) Without Changing "modified" Date?

Nov 18, 2010

I am actually modifying someone else's script and The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code:
#!/bin/bash
while [[ -n "$1" ]]; do

[code]....

View 2 Replies View Related

Ubuntu :: Assign Permissions On A Partition With Ntfs As The File System?

Apr 6, 2010

can assign permissions on a partition with ntfs as the file system. I am aware of editing fstab and setting some basic permissions. What I am clumsily dictating is can you edit permissions of individual folders for specific users in Linux. I have already tried chmod and such

etc something similar to this

Code:
[user@computername user]$ sudo chmod 600 directory

View 4 Replies View Related

General :: C - Mount NTFS Partition Image From File?

May 31, 2011

i need to mount at least for read access NTFS-based partition image on linux from a file. File is binary copy of a partition. Is there any libraries or resources for this?

View 1 Replies View Related

Software :: Undelete File From Mounted NTFS Partition?

Jan 6, 2010

I have deleted a file from linux SuSe 11.2 in mounted NTFS(Windows XP) partition, is there any chance to recover it? I've tried using Hiren's Boot CD revovery tools without any success

View 3 Replies View Related

Ubuntu :: Is NTFS A Good File System For A Shared Partition Between WinXP

May 30, 2010

Someone on IRC had mentioned they had a shared partition in NTFS, and that Ubuntu could read from it just fine... I wanted to get a second opinion before I did anything. Right now I have a WinXP partition and an Ubuntu partition, and a large NTFS partition in the middle that I'd like to move my /home to.

View 7 Replies View Related

Programming :: Keep Original Mod Date Of A File And 'date' It Back To Same File?

Jul 12, 2010

I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.

Just to give an example:
stat foo.jpg |grep Modify gives me
Modify: 2010-07-12 06:28:56.890625000 -0400

Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command

View 4 Replies View Related

Debian :: Can't Mount Ntfs Partition Clicking From File Manager

Jul 25, 2015

It is gnome 3, debian jessie, nautilus file manager. Click ntfs partition from file manager, type password got error:

Code: Select allUnable to access “alldisksda5” Error mounting /dev/sda5 at /media/user1/alldisksda5: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/user1/alldisksda5"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.

Why is this error? Windows has been shutdown normally. What to do?

View 3 Replies View Related

General :: Change File Permissions In Windows Ntfs Partition?

Mar 2, 2011

Here is my fstab's content:

/dev/sda7/media/entfsdefaults00
/dev/sda8/media/fntfs-3g silent,umask=00000
[root@localhost code]# ll 2
-rwxrwxrwx. 1 root root 0 Mar 2 20:19 2

[code]....

View 3 Replies View Related

General :: Mount NTFS Partition Deeper In File System With Fstab?

Mar 15, 2010

I'm dual booting with Windows 7 and would like to have my windows 7 user folder mount when I boot.

After some looking around I edited /etc/fstab to add the following line:

This works. But it mounts the windows partition from the root level. I'd like to just mount C:UsersFHSM (/Users/FSHM) to /mnt/windows.

I'm trying to get it so that when I click on the windows drive I get my windows user folder instead of having to click through from C: to get to it.

I'm the only user on this system but if I created a second windows user would my home folder mount for that person too or does setting the user ID prevent that from happening?

View 2 Replies View Related

Ubuntu Networking :: NFS Server Exporting NTFS Partition Giving Stale File Error?

Apr 3, 2010

I'm trying to setup a small network between my old and new laptops to transfer my personal data. They are now linked with a crossover cable and they see each other.The old one has a dual-boot setup with WinXp and Ubuntu 9.10.The new one with Win7 and Ubuntu 9.10.I tried samba but it was very slow even using Windows in both computers: maximum transfer rates were about 1,5 Mib/sec.I tried SSH using ubuntu on both pcs and it is reliable and much faster, 5 Mib/sec. But I wanted more...I installed the NFS server on the old one and exported the NTFS partition where my data resides with sync and ro options.

I installed the NFS client on the new one and i'm able to mount the remote partition.Now, when I transfer my files I get very high speed, more than 10 Mib/sec but after a while I get a "Stale NFS file handler" error but I really didn't touch any file in the old pc and the connection is always up.Searching on the web I found that NFS had some troubles exporting NTFS partitions in the past but should be fully compatible with them since the last versions of ubuntu.

View 1 Replies View Related







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