General :: Mounting FedoraáISOáDVD And Then Copy The FulláDVD Structure Locally

Sep 16, 2011

I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded (Fedora-15-i686-Live-Desktop.iso).

I understand I can mount the ISO image using something like this:

mount -ro loop /path/to/image.iso /mnt

but then, which would be the best way to get a copy exact of what I see underneath /mnt in to /distro/fedora ?

cp, tar, clobber?

View 1 Replies


General :: Copy Directory Into Another Preserving Specific Structure?

Jul 20, 2011

I would like to find the command that copy my eclipse options to another workspace code...

It doesn't work, and it could be source of error to write the path .metadata/.plugins manually. It certainly a better idea to create a complete script ?

View 1 Replies View Related

General :: Copy File Recursively Ignoring Destination Directory Structure?

Jul 8, 2011

I have the following content on the source directory:


I want copy those files to a destination directory which, after copy, shall look like this:


How can I do this? It seems that "cp" lacks such an option

View 1 Replies View Related

General :: Command To Copy Files Older Than <n> Days Keeping Dir Structure?

Jul 6, 2010

I'm trying to truncate a postfix Maildata directory for one of our users. I want to be able to move any files older than <n> days to a new location, but also copying the relevant directory structure. This should be doable in the one comman. I've used find to locate the files, and mv to move them, but I can't figure out how to build the directoryt structure on the fly in the new location.

This is what I have so far:

find /Maildata/editor -mtime +42 -type f -exec mv -v {} /EditorEmailOld/ ; > ~/editor.txt

View 4 Replies View Related

General :: Copy A File With Certain Name Pattern For Which Exact Place In Complex Directory-structure Unknown?

Sep 19, 2011

I want to copy all files with the name XYZ* into one folder. The problem is that the files are in different subfolders and that not even the depth of the folder structure is the same for all files. Luckily, at least each file has a unique name.

Of course, I thought about the cp command but I guess the depth of the folder structure needs to be the same for this to work.

View 3 Replies View Related

Server :: Mounting Nfs Files Locally - RPC Error - Program Not Registered

Jan 21, 2010

First of all, in whether I have interpreted this correctly: [url]

Where we want all users to be able to restore backups. This involves nfs exporting and mounting the backup directory ON THE SAME MACHINE, no...?

I have been trying to fix this all day, and can't figure out why its not working.

All my /etc/fstab /etc/exports /etc/hosts.allow /etc/hosts.deny must be correct as the file mounts (after booting, but NOT ON booting) with:

All the necessary (I think) services are starting on boot:

On bootup I receive the error:


I have other filesystems mounted from another server which all mount fine. Its just this one.

View 1 Replies View Related

General :: Copy Certain File Types Recursively While Maintaining File Structure On Destination?

Jun 14, 2011

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.

For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.

At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/

I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.

I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.

View 1 Replies View Related

Software :: Uncompressing A Directory Structure Full Of Individual Gz Files

Jun 2, 2010

I have a file that I am attempting to use to restore a website for a client. The file is a drupal folder structure where all of the files in the folder (3000+) have been individually compressed into 3000+ individual gz files.

I have figured out how to uncompress all the files using WinRAR but it puts all the files into a single directory, i need the original folder structure maintained.

View 2 Replies View Related

Programming :: Using Rsync To Copy Only Certain Folders Within A Directory Structure?

Jun 15, 2011

I am trying to create a simple bash script to rsync some folders within a directory stucture. I am using wild cards, in the rsync source directory structure, but my command always fails. I believe it is the way I am using wild cards within my for loop. Here is my command ;


for seq in `cat test.txt` ; do rsync -nvP /folder/folder/folder/folder/folder/**/$seq /folder/folder/folder/ ; done This always fails, where if I do a ls to the destination, to test the path, it always works.

View 5 Replies View Related

General :: Mounting Lvm2 - Copy Some Files From Another Harddisk

Mar 8, 2010

I have just reinstalled Centos 5.3 on a new harddisk. I would like to copy some files from another harddisk which is also install with Centos 5.3. I have followed some guide in the internet but failed to mount the old harddisk. I got "unknown filesystem type 'lvm2pv'" error when trying to mount /dev/sdb2.


View 5 Replies View Related

General :: Dd Copy - Hard Drive Clone Fails When Mounting Root Androotblock - /newroot Failed

Oct 27, 2010

I am trying to replace an old, smaller, and dying laptop hard drive with a newer one, using a USB external drive. I first tried cloning disk to disk with Clonezilla, but it failed after cloning my root, swap, and /home directories it froze when it tried to reinstall grub. After 2x trying, I switched to dd, which I have never really used (I am fairly new to Linux in general). The actual command I used was:


dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

All seemed ok and after approximately 2 hours my 80GB drive had been cloned onto my new 250GB, with dd giving what appeared to be a satisfactory closure summary. I tried to mount and access the drive from my external USB enclosure but could not view it, though the data is there, I believe, as the size and bytes show... The error that Dolphin is giving me is:


error - wrong fstype, bad option, bad superblock on /dev/sdb1 Missing codepage or helper program or other error. When I installed the new drive directly into my laptop, it begins to boot (Sabayon 5.4, 2.6.35 kernel) but almost immediately I get (handwritten down, but this is close):


detected real_root
mounting /dev/sda1 on /newroot failed: input/output error
!! Could not mount specified ROOT, try again
!! Could not find the root block device in .


I am assuming that my issue has something to do with grub, and maybe specific UUIDs that don't match (?) but I'm not really certain. I have both Grub Legacy 0.9x and the newer Grub 2 installed (Sabayon is already moving over) but I still boot with Legacy, not with the new 2, as I don't know how to switch, and am not sure if I should yet. I thought that dd copied bit for bit, and I added the noerror´ just to try to get it all transferred, so I don't know what went wrong exactly, though something seems wrong with grub and the bootloader, I guess...

View 6 Replies View Related

Fedora :: Clone Drive - Tools Do Full Drive Copy?

Mar 22, 2010

I have a 120 gig drive that I'd like to clone before it fails completely. I was thinking I'd pull the drive from the server and build a separate machine that has it's own os installed and the source and destination drive. Does anyone know of any linux tools will will do a full drive copy? Additionally, If possible, I'd like to move to a larger drive. how I'd migrate the 120 drive to a 400 or so? 1 idea I have is to install os on 2 new drives to where it they will boot, Then boot with one and copy source to the newly created destination drive.

View 6 Replies View Related

Software :: Mounting Single Fat32 Partition Inside Full Disc Image

Dec 19, 2009

I have recovered a whole dying hard drive using the command ddrescue, only 8192 byte out of 4.3 gigabyte are unreadable.I have used the command (gnu) ddrescue /dev/sdb DiskImage.img..But unfortunatly this way i have a full-disk image that is not mountable... ( or at least i don't know how to mount it ), and the disk doesn't seem to work anymore that good... ( crack crack crack... ).To see the partitions inside the "big" file, i have used fdisk -l, and damn there is only one partition, but how can i mount the content???

I know i could use photorec foremost or similar software, but since the disc image is almost perfect, i would be able to preserve file names, paths and dates...The last idea would be to mount it as a full-drive image with Virtualbox... But transferring data would be quite annoying.

View 10 Replies View Related

Debian Configuration :: Copy Full System To Another Machine

Mar 31, 2016

I am setting up a mail server on debian. Once it's done, I'd like to have an indentical server on another machine, where debian will also be installed. The solution has to be hardware agnostic, so source machine is different than destination machine. I was reading on some wiki page that one can simply copy the root filesystem via rsync to the computer that he'd like to install the system on, then chroot to it and test if everything works. I'm guessing I'd have to change a couple things before, like :

- The network config
- The /etc/fstab file (disks and partitions may be different)

This article is about using rsync to transfer a copy of your "/" tree, excluding a few select folders. This approach is considered to be better than disk cloning with dd since it allows for a different size, partition table and filesystem to be used, and better than copying with cp -a as well, because it allows greater control over file permissions, attributes, Access Control Lists (ACLs) and extended attributes. [1]

View 13 Replies View Related

Ubuntu :: Enable Full Text Copy Of A Locked Pdf File?

Sep 17, 2010

I have an ebook that has copy protection on; only 25 pages can be copied every 14 days. This is very annoying, as I need to copy more pages for my study group.

how I can enable full text copy of a locked pdf file?

View 5 Replies View Related

General :: Get All Vars And Set Locally In Script ?

Mar 14, 2011

I am new to linux and need to do this in a script.

1. Get all the vars (env command)

2. Set them locally (name, value pair) in script using loop iteration.

Pseudo code


View 2 Replies View Related

Fedora Servers :: Files Show Up When Viewed Through NFS But Not Locally?

Jul 19, 2011

I have just tested this 3 times now and everytime I got the same result. I have two identical servers, they are both IBM x345 and everything has been copied directly from one to the other so they are exact duplicates other than the hard drive and partition sizes. When copying over the /svn directory it looks like everything copied successfully (I have tested rsync and cp) but when I go to look at the files locally there is nothing there. I can view the files without issue over the nfs share that I am using to copy the files but nothing is there locally. Even df shows that there is nothing there. The other server on the network shows the files there and using du I can see that the size is correct on all of them.

Before anyone suggests this is a permission issue, I was using root to see if the files are there but even root does not see anything. I am completely lost on this and even google does not seem to come up with anything. The servers are running fedora 12, the /etc/exports file is placed below.

/ export,no_root_squash)

View 3 Replies View Related

General :: How To Run Program Remotely Via SSH But Display Locally

Mar 24, 2010

Is it possible for me to SSH to another server in Linux (Ubuntu), run a program there but display it locally?And is it possible for me to SSH to another server in my terminal,and configure it so that all graphical programs (Firefox, Emacs) run in that SSH session will be displayed locally?

View 3 Replies View Related

General :: Mount Remote Devices Locally?

Jan 22, 2011

I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?

View 1 Replies View Related

General :: Apache Works Locally But Not Globally?

May 20, 2010

I set up apache (apache2) to create a moodle server, but I can't get it to work globally. Here is the rub: works beautifully, showing me the index page at /var/www [URL] (my dyndns) or (my current IP address) doesn't work.ssh works well globally, i.e. ssh -l myname [URL] works. pinging [URL] works without a problem. Ports 22, 80 and 443 are open on my router (checked my router's settings).I use ubuntu 10.4. Is it an iptables problem, as in ? But I couldn't figure out the iptables manpage.

View 14 Replies View Related

General :: Yum Installation Locally - Saying Cannot Change Directory ?

Jul 5, 2011

I have rhel5.4 in my vmware , i am trying to install yum repositories in /home/Server bcoz i dont have enough space in /var/ftp/pub. i installed vsftpd ,createrepo rpms and index is installed, but when i check for yum list its saying cannot change directory.

View 1 Replies View Related

Red Hat / Fedora :: How To Do Tasks Via Command Structure

Dec 4, 2010

trying to learn how to do tasks via command structure as I want to become RHCSA in the future.problem: i am trying to copy from (Ubuntu) a driver folder from a CD to another partition so that I can access the internet on CentOS .( which is the OS on another partition on my HD)

View 4 Replies View Related

Fedora :: Disk Copy Utility - Should Be Able To Not Only Copy Files But Boot Sector And Everything

Sep 1, 2010

I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.

Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.

View 11 Replies View Related

General :: Host A Website Locally On Ubuntu 9.04 Jaunty

Jul 18, 2010

I can't reach my website via http. I'm not sure but I think I just need to unblock port 80. But I can't find where a firewall has even been installed on my machine. ufw status returns inactive. sudo aptitude search firewall shows nothing installed.

Nslookup returns the correct IP. Pinging works.

But typing in the domain name or IP through the web browser just results in a "Network Timeout...Taking too long to respond."

Wget just hangs looking for

VirtualHost has been set up and apache restarted. Site works fine with the ServerAlias I have assigned in my hosts file.

View 4 Replies View Related

General :: Remotely Run Script On Unix, Get Output Locally?

Apr 13, 2010

I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.

View 4 Replies View Related

General :: Capturing Remote Output Locally In Mac Terminal?

Jun 2, 2011

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).

Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.

View 2 Replies View Related

General :: Execute Commands After Logging In Into The Ssh Connection Not Locally?

Oct 20, 2010

I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:

cat /etc/passwd|grep -i $1 > /dev/null
if [ $? -eq 0 ];


View 9 Replies View Related

General :: Unable To Logon To RHEL5.5 Locally As A User?

Feb 15, 2011

logon to my RHEL as a user. I am able to logon in as root locally.

View 3 Replies View Related

General :: Set Up A Directory Structure ?

Jul 16, 2011

i just started dabbling with this Linux program Fedora and i go to school for cpu forencics but havnt reached Linux+ yet.

View 13 Replies View Related

General :: Set Directory Structure In Git ?

Jun 24, 2011

I've the following file structure that I would like to add to git.


These are big directories and I don't need them all checked out. I only need the src directory. After I commit the files in the /app/src, it must be pushed to a remote site.

If I want only to checkout the src directory to work on, it's important to create a special file structure in git? For example, instead of doing git init on app general directory, should I do git init on all subdirectories?

Is it possible to checkout only part of a file structure in git?

View 1 Replies View Related

Copyrights 2005-15, All rights reserved