General :: Confirm That Two Filesystems Are Identical Ignoring Special Files
Jun 15, 2011
/media/A and /media/B should be identical, but I want to confirm before deleting one.
Duplicate file finders don't work, because they'll find two copies of the same file within B, for instance. I only want to confirm that every file in one is identical to the other.
diff -qr /media/A/ /media/B/ seems to work, but the output is cluttered with garbage like
diff: /media/A//etc/alternatives/ControlPanel: No such file or directory
and
File /media/A//dev/tty8 is a character special file while file /media/B//dev/tty8 is a character special file
I can suppress the former with 2> /dev/null, but I don't know about the latter.
rsync -avn /media/A/ /media/B/ also produces a bunch of clutter, like "skipping non-regular file".
How can I compare the two trees and just make sure that all the real files exist in both and are identical?
View 2 Replies
ADVERTISEMENT
Dec 6, 2010
I've got a backup.list file that looks like this:
+ /ext/installs
+ /ext/media
- /ext
- /backup
- /dev
- /mnt
- /proc
/ext is a symlink to /mnt/vg1/vol1, under which are installs and media directories.
I'm running:
rdiff-backup --backup-mode --include-globbing-filelist backup.list / /backup
rdiff-backup keeps recreating a symlink: /backup/ext -> /mnt/vg1/vol1, which is kind of missing the point, because then it doesn't actually back up the files in /mnt/vg1/vol1/installs, etc.
View 1 Replies
View Related
Aug 22, 2011
Is it possible to write/edit files on HFS+ drive from Linux? Yes I need to disable journaling but how can I disable journaling from Linux? I dont have access to mac.
Or any tool available for doing this?
View 2 Replies
View Related
Jun 1, 2010
I want to archive all .ctl files in a folder, recursively.tar -cf ctlfiles.tar `find /home/db -name "*.ctl" -print`The error message :tar: Removing leading `/' from member namestar: /home/db/dunn/j: Cannot stat: No such file or directorytar: 74.ctl: Cannot stat:No such file or directoryI have these files: /home/db/dunn/j 74.ctl and j 75. Notice the extra space. What if the files have other special characters? How do I archive these files recursively?
View 2 Replies
View Related
Feb 15, 2010
I am dragging my files over to a new Fedora 12 installation and I just noticed that special characters are not taken into account when sorting files by name (I want '_js' to come before 'images').Is there a way to make the sorting process behave like Windows, where files starting with a special character are listed first?
View 5 Replies
View Related
Jun 29, 2010
I use the
Code:
wget -r -A <extension> <site>
command to download all files from a certain site. this time i already have some of the files already downloaded and listed in a text file via
Code:
ls > <text file name>
How can i make wget to download from the site i want but ignore the filenames listed in the text file?
View 2 Replies
View Related
Jul 6, 2011
I've installed CFEngine from source (for those of you who aren't familiar with the product, check out the wiki page) on an AIX server. I had some issues setting it up but finally got it to gmake successfully.
Once I run gmake install I get a very short output (based on other source builds) and no errors. I figure something is fishy and I now I need to figure out a good way to find if it was correctly installed. I tried:
find / -name cfeng* 2> /dev/null
Is there something analogous to rpm -qa | grep cfengine?
Here is a copy of my output in case anyone needs: [url]
View 1 Replies
View Related
Aug 14, 2011
I'm in the process of moving /tmp out of the root filesystem to it's own (larger) partition. From a LiveCD I've:
1. Created the new part (ext4 format and is /dev/sda4)
2. Mounted the installed OS root filesystem (/dev/sda1) as /slash
3. Mounted /dev/sda4 as /newtmp
4. Using gksudo nautilus I'm trying to copy the contents of /slash/tmp to /newtmp
I have 4 files that won't copy - returning the error "Can't copy special files". These are related to ORBit it seems:
[code]...
Questions are: a. Will GDM or ORBit fail if I start up without these? b. Or will they just be recreated on the fly if found to be missing? c. What's the best way to proceed?
View 1 Replies
View Related
Nov 15, 2009
Slackware 12.2 has the unkind habit of deleting all the /dev/fd?u* floppy special files upon boot-up. I have to make another directory (I use /floppy) to contain these files so I don't have to keep copying them from an earlier distribution (12.1) Now, for example, to format a 1743 kilobyte floppy, I do fdformat /floppy/fd0u1743 mformat a:If I copy these special files to /dev (where they belong) then some part of Slackware Linux 12.2 deletes the special files when I power down and power up the machine.Slackware 12.1 and earlier leave floppy special files severely alone upon shutdown/startup.I cannot seem to "grep" a reference to /dev/fd anywhere in /etc/rc.d or its subdirectories. Why is Slackware 12.2 deleting them?
View 1 Replies
View Related
Mar 21, 2011
I made a duplicate of a Centos 5.5 system disk with dump (dd if=/dev/sda of=/dev/sdb). No device files for sdb were created, but I guess that's not too surprising. I rebooted, and the device files were created. But how would I create them if I wanted to avoid the reboot?
I looked around for info on mknod and MAKEDEV but didn't find a lot.
View 4 Replies
View Related
Dec 10, 2010
I have about 300 files that need renaming, because the file system does not display the French characters properly. The dodgy letter in question has been replaced by a "question mark in a black diamond" symbol.No way of renaming, other then using mv in the Konsole has worked. Is there any way, script or program out there, that will do a batch rename?
View 9 Replies
View Related
Jun 15, 2011
I am trying to do a comparison of two folders, let's call them dir1 and dir2 and remove any items that have the same file name in both folders from dir2.
View 4 Replies
View Related
May 16, 2011
i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:
Code:
#!/usr/bin/awk -f
BEGIN{
RS="[[:space:]]+";
ORS=""
[Code].....
View 2 Replies
View Related
Jun 21, 2010
I'm having a file with repeated particular text lines. So I need to view the file content ignoring these lines. Is there anyway I can achieve this using VI
View 2 Replies
View Related
Feb 19, 2011
I've commented out a line in the crontab on a debian server, which I guess was there by default yet was causing me to get error emails every hour:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
However, the error emails keep coming in as if it hasn't been commented out. The error emails:
Subject: Cron <root@(none)> root cd / && run-parts --report /etc/cron.hourly (failed)
/bin/sh: root: not found
View 2 Replies
View Related
Jan 12, 2010
Need confirmation if the following scenario works for making my client and server as identical?
My local(source) Linux server @192.168.0.2
My remote Linux client @192.168.0.70
On the local system :
#df -m
Filesystem Mounted on
/dev/hda3 /
/dev/hda1 /boot
tmpfs /dev/shm
On the local system , issue the followings to make client and server as identical :
#dump -0uvf - /dev/hda3 | ssh root@192.168.0.70 -c "restore -rf - /"
#dump -0uvf - /dev/hda1 | ssh root@192.168.0.70 -c "restore -rf - /boot"
#dump -0uvf - /dev/shm | ssh root@192.168.0.70 -c "restore -rf - /tmpfs"
View 1 Replies
View Related
Jan 17, 2011
I am new to the forum and new to Linux.
I am trying to explore if Linux can be run on a multicore platform when the max frequency of one the cores is less than the others.
please give me some pointers or let me know if you have tried such HW configuration.
View 1 Replies
View Related
Dec 25, 2010
I want to know what file system there are for "/dev" directory??apparently different types was developed for managing devices on Linux.because I am a little confused about all file system on this directory.Another question is,which is file system sufficient for managing devices on Embedded Linux ?of course on our embedded system we do not have many pluggable device,so this directory can be static
View 2 Replies
View Related
Sep 30, 2010
I'm now using Ubuntu 10.04 with ext4 and for the second time in my life I experienced data loss (not for real: I got backups) and I'm assuming problems with the recent ext4 fs.
I want to restore all of my configurations (/etc and the like), data and home on reiserFS: is this possible? What to do in order to accomplish that?
View 2 Replies
View Related
Feb 14, 2011
I am tired of watching fsck check my filesystem when my eeepc 901 shuts down abruptly due to a crash. I know that with a journaling filesystem, I won't have to wait for a check. However, I am well aware of the poor I/O performance of the SSD, so I can imagine using a journaling filesystem being even more frustrating, since there will be constant writes to the journal? I will buy a new laptop without such a crummy ssd someday but, is there anything I can do now, on the software side of things?
View 3 Replies
View Related
Dec 27, 2010
I need to combine 6 different filesystems into one filesystem using rsync. I am so confused as to which parameters I need to use. The 6 fileystems are:
/mnt/tkpkgc1a/vol/mn_pkg_08_02/
/mnt/tkpkgc1a/vol/mn_pkg_08_01/
/mnt/tkpkgc1a/vol/mn_pkg_06_09/
[code]....
View 1 Replies
View Related
Jul 5, 2011
I accidentally unmounted filesystems using umount -a command.How to recover from this.
View 4 Replies
View Related
Apr 25, 2011
I have many disks and volumes in my system. Some of disks IDE, some SATA.
Volumes on SATA disks cause me problems - I have them listed in etc/fstab, but on every boot, they have different name:
/dev/sdd* becomes /dev/sdb*
/dev/sde* becomes /dev/sdc*
etc. on every boot.
1) Why is this happening?
2) How can I prevent it?
3) If I can't, is there a workaround?
View 2 Replies
View Related
Aug 29, 2010
When I try to start up 9.10 I can get past GRUB but not fsck. A file check will be started but no progress will be made and finally I get the 'General error mounting filesystems'.Trying in recovery mode I get this just before the fsck check
Quote:
fsck from util-linux-ng 2.16
[8.016378] ACPI: I/O resource piix4_smbs [0xb00-0xb07] conflicts with ACPI region SOR 1 [0x0b00-0xb0f]
/dev/sda1 goes fine
Quote:
/dev/sda3 has been mounted 34 times without being checked, check forced
mountall: canceled
[Code]...
This seems to be slightly different than the other threads I've seen discussing this issue. It just all of a sudden happened, I didn't upgrade anything or have any crashes immediately prior.
View 2 Replies
View Related
Nov 12, 2010
I want the filesystem of my external drive to be checked periodically after a numer of mounts. I put 2 in the sixth colums of fstab for this partition
Code:
/dev/sdb1/mnt/hdext3rw,dev,sync,user,noauto,exec,suid02
and I use the tune2fs to set the maximum mount count to 32.
Code:
tune2fs -c 32 /dev/sdb
now the mount count is 34 and the date of the last check is not recent, so apparently the auto fsck has not been performed. Probably because this partition is not mounted at start-up but I usually mount it manually.
View 3 Replies
View Related
Jun 23, 2011
I've read the first 40% of the RHEL 5 Logical Volume Manager Administrator's Guide, but still have one outstanding, burning question.
During the installation of Centos 5.6, I set up LVM physical volumes, volume groups and logical volumes. I can list these using pvdisplay, vgdisplay and lvdisplay commands.
How would I list what filesystems I have that are using my logical volumes?
View 2 Replies
View Related
Jul 12, 2011
We are about to install some RHEL5 servers for DB and web and Application servers. I've been asked to test which file systems of the following work better for disk I/O.EXT3 EXT4 JFS BtrFS and any other ones that I can find that work under RHEL the out-of-box install I have done allows me to format my volumes with EXT2/3 but not ext4 or any others. Is it possible to "install" other filesystems for use, if so how?
View 4 Replies
View Related
Jul 8, 2011
I have the following content on the source directory:
source/foo.txt
source/bar/another_file.txt
source/bar2/and_another.txt
I want copy those files to a destination directory which, after copy, shall look like this:
destination/foo.txt
destination/another_file.txt
destination/and_another.txt
How can I do this? It seems that "cp" lacks such an option
View 1 Replies
View Related
Mar 30, 2011
I know I can simply create a degraded raid array and copy the data to the other drive like this: mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb1
But I want the specific disk to keep the raw ext3 filesystem so I can still use it from FreeBSD. When using the command above the disk will be a raid disk and I can't do a mount /dev/sdb1 anymore. A little background info. The drives in question are used as backup drives for a couple of Linux and FreeBSD servers. I am using the Ext3 filesystem to make sure I can quickly recover the data since both FreeBSD and Linux can read from that without problems. If someone has a different solution for that (2 drives in raid 1 that are readable by FreeBSD and writeable by Linux),
View 1 Replies
View Related
Apr 7, 2011
I have a 500GB external drive I want to use on a couple of Linux systems, and looking for a filesystem for it. External drives are frequently formatted in FAT32, but I don't need to interoperate with Windows and would rather avoid the ugly limited kludge that is FAT.
Since I only need to use it on Linux, I would use ext4 or XFS, but they store ownership information. Ideally, I'd use a proper Unix file system that doesn't track ownership (files are owned by whoever mounts the device, like they are when mounting a FAT32 partition), but I do not know of any file system that does that.What would be a good file system for this disk?
View 2 Replies
View Related