Software :: How To Write Shell Script For DC3DD Disk Copying Utility
Apr 17, 2010
I run the following command for disk duplicating from one source to 5 destination harddisk.
dc3dd progress=on conv=sync,noerror iflag=direct bs=262144 hash=md5 log=sda_log.txt if=/dev/sda | tee >(dc3dd of=/dev/sdb) >(dc3dd of=/dev/sdc) >(dc3dd of=/dev/sdd) >(dc3dd of=/dev/sde) | dc3dd of=/dev/sdf
When I run the command in shell prompt it is working fine. But I want to write a shell script for this task. When I wrote and run the shell script it gives the error message syntax error near unexpected token.
View 6 Replies
ADVERTISEMENT
Apr 19, 2010
i wrote the following script for copy one source harddisk to 5 destination harddisk simultaneously.
dcfldd if=/dev/sda5 hash=md5 hashwindow=1000M md5log=md5.txt hashconv=after bs=512 conv=noerror,sync of=/dev/sdb of=/dev/sdc of=/dev/sdd of=/dev/sde of=/dev/sdf
after finising to run this command the image was trasfered to all harddirve. But no verfication message. i saw the hash value entry in md5 log. how to check the source and destination clone properly
View 3 Replies
View Related
Oct 10, 2010
I have a 2 TB disk in an external SATA dock, formatted with a single ext3 (Linux) partition, which doesn't show up in the Windows 7 Computer Management->Disk Management utility, even as a raw/blank disk. I've verified that there's nothing wrong with the disk by connecting it to my Linux machine and mounting it, and I've verified that the dock is functioning properly by connecting a different FAT32-formatted disk, which mounts flawlessly as expected.I realize that I can't actually read the ext3 partition without additional software (e.g., Ext3IFS), but why doesn't the disk show up at all? Is there some sort of stupid anti-Linux filter built in? Is there any way to force Windows to recognize the disk, so that I can at the very least use direct block access with it?
Background: I want to clone an identical 2 TB disk onto this one. Due to my hardware layout, it's much easier to have the source disk attached to one machine and the destination disk connected to another, and do the clone over the network (the network is not a bottleneck with switched gigabit ethernet), than it is to hook them both up to one machine.(1) I did this once before when both machines were running Linux, but I've since upgraded the destination machine and decided to switch back to Windows for regular desktop use. I've got Cygwin installed, and have verified that the same basic method (dd + nc) will work, but I can't do anything if Windows doesn't even consider the destination disk to exist.I only have one eSATA port on each machine. Opening them up just to do this clone is a rather large annoyance. Also, since this is my backup disk, I'd like to eventually automate the cloning from the active disk to another one that I regularly swap with a third disk that I store off-site.
View 1 Replies
View Related
Mar 16, 2011
iam trying to send sms using gnokii utility in linux firstly i did sudo apt-get install gnokii after that i got a gnokiirc.gz file in /usr/share/doc/gnokii/sample/gnokiirc.gz file here after that i did gunzip gnokiirc.gz then i transferred my file from the /usr/share/doc/gnokii/sample to home directory by using copy command as copying files to home is not allowed so i used sudo sudo cp gnokii /home after that i changed the port=/dev/ttyUSB2 and model=AT in the gnokiirc file in the home directory and then i wrote gnokii --identify
[Code]....
i followed as in the [URL] and [URL] and except this "Note that you will need read/write permissions on whatever serial port you specify in .gnokiirc."(iam confused what is my serial port is it ttyUSB2)
View 7 Replies
View Related
Nov 18, 2010
I don't understand disk sizes in Linux. I have a 500GB drive. It's ext4. I have run "tune2fs -m 0" on it to reserve the amount of space reserved for root to 0.
I'm using Ubuntu 10.04 that comes with a Disk Utility. When I run "System->Administration->Disk Utility (palimpsest)" the disk shows up as 500GB (see picture). But when I run df -h it shows up as 459GB. So, I don't understand the discrepancy.
When I run df I get the following:
Question: Why is Disk Utility showing me something different than "df"?
View 6 Replies
View Related
Feb 17, 2010
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
View 8 Replies
View Related
Apr 27, 2011
I would like know when it is necessary or advisable to write a shell script instead of shell function ?
View 3 Replies
View Related
Jul 25, 2010
Usability? Home: you use bash. Work, school, vacation, seminar: you're stuck using zsh or tcsh (or Drush in Drupal).
Function: Without giving errors, quietly cross-checks a non-shell command for its equivalent in the running shell and executes that command, properly-syntaxed.
Name: Well, as the word "imperative" in rudimentary linguistics is a synonym for "command," I thought of an acronym derived from the terms SHell Imperatives Translator. But this morning, I re-thought the lavatorial acronym. Considering it was a "container" of "hooks" that had the potential to operate much like a stripped-down cron or Ubuntu hook bundle, a more polite term for it would be "tacklebox".
View 2 Replies
View Related
Jan 26, 2010
I've got a Canon Full HD video camera which records in .mts file format which is in H.264 codec. However I can't write my videos into DVD from the Pixela image utility which is the default bundle software distributed with the camera. I'm trying to find a way to convert my mts files into DVD formats (such as .vob or .mpg). Does anybody know about a software I can use in Ubuntu.
View 8 Replies
View Related
May 14, 2010
Do I have a printer installation utility I can access through the shell? I tried installing/configuring my parallel port HP DeskJet 712C through CUPS using xfce but they didn't list my printer.
View 3 Replies
View Related
Jun 8, 2011
I am on F15 32-bit with GNOME 3. I keep getting "A Hard Disk Is Failing" warnings from the Disk Utility, very frequently. Is this a serious issue? Because I knew this to be a bug in Palimpsest DU back in F13/14. Also how can I disable any notifications from this application?
View 4 Replies
View Related
Jul 16, 2010
Something very handy to do in a Linux shell, is manipulating files and strings - essentially parsing data. Write a utility which will scan in a text file and search and replace strings. We also want to keep track of how many strings we've replaced.
I know that my command would look like this: <utility name> <filename> <stringToSearchFor> <stringToReplaceWith>
Code: #!/bin/bash
[code]....
View 2 Replies
View Related
Oct 12, 2010
I'm using timeout core utility in my bash shell script. The problem I'm facing is I want the PID of the command which is supplied to timeout. Let me explain with the code I'm using:
Code:
#!/bin/bash
timeout 120 ./prog1 &
[code]....
View 5 Replies
View Related
Jun 27, 2011
I want to do some sort of emacs scripting. Means I want to write a script with several commands like searching copying etc. and then execute it inside of emacs. I'm sure this is possible, but I wasn't able to find a way to do so.
View 2 Replies
View Related
Apr 3, 2010
I'm working on setting up a new NAS. I installed Karmic desktop on a 160 GB HD using the default settings.
Now I've added three 1TB drives and want to make them a RAID-5 array with LVM on that, and 1 ext4 partition. I want to use LVM so I can add drives and expand the array later.
So far I've been using Disk Utility (Palimpsest Disk Utility) and it's been great! A wonderful addition to Karmic! I got the RAID-5 array setup with no problems using disk utility. So now I have a 2000 GB raid-5 array setup in Disk Utility and I need to get LVM setup.
Problem is: I don't see any sign of LVM in Disk Utility. I've been googling all night and I can't find any documentation for setting up LVM in Disk Utility, just people saying that it's supported.
I tried installing the lvm2 package, rebooting, and then looking around again. No luck.
So, what am I missing? Should there be LVM options in Disk Utility? Where is it? Is there a better/easier way to configure lvm?
View 5 Replies
View Related
Jul 17, 2010
point me in the direction to get a step by step guide to setting up a Raid 5 using the Disk Utility and 3 spare drives? I have the main OS files on a 80gig drive and I would like to mount the 3 drives as Raid 5.Just shooting in the dark now.. Screen shot is attached. [URL]...
View 1 Replies
View Related
Mar 29, 2011
I'm searching for a GUI disk imager, something, that will be the GUI front end for dd. Ghost4Linux G4L is not an option, I want to be able to make security backups of my USB thumb drives, CDs, DVDs...
View 9 Replies
View Related
Jul 20, 2011
Has anybody ever used Disk Utility to set up software RAID? Here I am running terminal commands (I'm a terminal junkie) and I just happen to stumble across instructions that indicate "Or you can just set it up through Disk Utility."
Sure enough in disk utility, it looks like all of the configurable options are there. It makes me wonder, though... is this kind of GUI functionality something that isn't really solid? Or does it operate predictably and effectively?
View 4 Replies
View Related
May 2, 2011
I cannot get the Disk Utility to launch, when I click the icon the cursor rotates and stops but nothing happens.
I uninstalled and reinstalled the Disk Utility, still not working.
I have three HDDs and many partitions. I multi boot Linux, Win 7 and Win XP.
All OS's boot cleanly using EasyBCD boot loader.
It did not work in 10.04 or 10.10.
View 9 Replies
View Related
Jul 6, 2010
I just tried NFS for the first time after reading that it's considerably faster than SSHFS, which I currently use, but I'm experiencing slow write speeds and problems while copying files in nautilus.
[Code]...
View 1 Replies
View Related
Nov 10, 2010
Code:
function forcd
{
[code]...
View 2 Replies
View Related
May 17, 2010
i erase the partition of ubuntu by disk utility in mac oswhen i restart my laptop and select windows os partition but windows os not bootingand the screen show to meerror: no such partition.
View 1 Replies
View Related
Aug 31, 2010
When I use disk utility to expand my RAID array it creates a partition on my 1.5TB drive which it would like to add to the RAID 5.
However, none of the drive existing on the RAID are partitioned so what I think has happened is the partition itself has created a difference of about 2 million bytes smaller than the others and thus unable to add the component.
How can I specify the exact bytes for my hard drive partition so that I can add this to the array?
View 2 Replies
View Related
Nov 24, 2010
Right clicking on a drive will format the drive but Disk Utility 2.30.1 included with Ubuntu 10.10 will not format the drive and says the drive is busy.
View 2 Replies
View Related
Jan 11, 2011
I was on Ubuntu 10.04 I used the Disk Utility to edit the partitions.
Here is the table it's showing:
Here I deleted 79 GB patition from FAT32 to NTFS and deleted 50 GB space that was ext4 partition where SUSE was residing the bootloader was of SUSE that was working using the same utility.
After that with a live cd of ubuntu I tried to recover the grub but there was no device.map file. Later I found the partition table absent.
The utility shows above table but Gparted shows only 500GB free space without any partition. Please help can't loose all the data.
I can access the partitions in live environment I can't even install a fresh OS because It also shows 500GB unallocated space.
View 3 Replies
View Related
May 15, 2010
I have an annoying problem with the Gnome disk utility. Whenever I want to mount a file system it is mounted as a removable disk in /media. For instance if I want to mount a raid array /dev/md0 to a mountpoint /music it is mounted as /media/music. That's not how I want it, I want it to be mounted to the desired mountpoint which is located directly on the root.
View 1 Replies
View Related
Mar 21, 2011
I have a netbook I'm not using and which I transformed into a server with Apache, Tomcat6, Netatalk, Webmin, BIND9 and Tor.
Problem is, the disks never stop spinning because all of the programs write a few kb at least every few seconds to disk, even when nobody is connected to it.
My question is: Is there a way to have the computer boot from disk like normal (maybe even a squashfs), keep ALL CHANGES to ram and then save to disk when either the ram is full (unlikely because the server is rebooted every few days) or at shutdown?
I thought about a mixture of ramfs and unionfs but I'm not good enough yet...
View 4 Replies
View Related
May 26, 2011
I have what I think are hybrid GUID/MBR disks that I created by splitting already MBR/NTFS disks via GParted, leaving unallocated space, then creating HFS partitions within OS X from the unallocated space on them.I want to delete those HFS partitions and re-extend the NTFS on them, but I can't because GParted sees the disk as somehow unchangeable; I assume OS X has done something to them.I now can't extend or do anything to the disks via the OS X Disk Utility OR GParted. What can I do?
View 1 Replies
View Related
Jun 28, 2010
I found it is impossible to format partition during Ubuntu 10.04 installation.
My storage configuration is as following. 1TB (500GB X 2) AHCI RAID 0 (it is said fake raid) and covers below 4 partitions.
/dev/mapper/pdc_dgbbagea1 9621688 5872752 3260168 65% /
/dev/mapper/pdc_dgbbagea4 945587172 95673304 802259056 11% /home
/dev/mapper/pdc_dgbbagea3 9698380 1363364 7846240 15% /opt
Partition 2 is swap partition and root partition is ext3 original.
Since there is no enough space for upgrading, I try to format root partition and install a complete pure new OS. After I booting up system from Live or Alternative disk, I try to switch root partition from file system ext3 to ext4 and format it. However, Formating process always get failed after couple trying. Even I quit installation and use tools "Disk Utility" to check and adjust partition information. It reports device is busy.
View 1 Replies
View Related
Nov 9, 2010
What is the command to install Disk Utility Ubuntu app in Kubuntu?
View 4 Replies
View Related