not offering to help i'm afraid... but if you don't know much QT, now's a great time to not bother learning anymore... http://gtk.org ;)
|
Well, I know more QT than gtk... :) But thanks for the tip. I've already started working! Wish me luck. Soon I'll post some screen shots! :)
|
Ok. Let's review... Here are the suggested features:
-back up boot sector dd if=/dev/hdaX of=/file/to/write bs=512 count=1 //is this right? -back up partition table //no idea -copy drive to drive dd if=/dev/hdaX of=/dev/hdaY //does it work if drives are not equal? -write zeros to boot sector dd if=/dev/zero of=/dev/hdaX bs=512 count=1 -write random 9 times to drive { for(i=0;i<9;i++) dd if=/dev/random of=/dev/hdaX bs=1M } -create iso cdrom image dd if=/dev/cdrom of=/iso.image -burn cdrom image (?) //i don't think this is necessary, because it's cdrecord's job! -create floppy disk image dd if=/dev/fd0 of=/file/to/write -write floppy disk image dd if=/file/to/write of=/dev/fd0 Now, if you spotted some errors or have suggestions about the commands, please post them! Also, if you want new features, please come up with suggestions! :) browny_amiga, great suggestion about the disclaimer! There will be a window that pops up when the user starts informing him about how he can screw up his system! For now, the disclaimer will be: Code:
"xdd" is a powerful programm. It's improper use can bomb your harddisk (100% "check for available space before copying" ... I think I can do that! :) |
I've done some work and here's the result.. It's just the gui, it doesn't do anything yet.. Let me know if you like it and if you find it 'user friendly' (note, there will be explicit tool tips in the final version!)
Here's the link http://www.geocities.com/mad_ady/linux/xdd.html Notes: I'll have to change the if and of comboboxes with something that will allow the user to type in something! Any suggestions are welcome! |
sorry that my suggestions are inside your quote,
but hopefully you'll see them. i've been unusually busy the past week, but i'll try to get some more suggestions soon. you can also backup a partition (filesystem) to a file, and compress it dd if=/dev/hdaX |gzip > filename.dd.gz it will compress much better if you zero out the free space first with dd if=/dev/zero of=/filename/on/mounted/ drive.zero. it doesn't really matter whether you delete the file or not for the compression purposes you can restore the partition (filesystem) on a partition that is as big or bigger than the original. dd if=filename.dd.gz | gzip -cd > dev/hdaX Quote:
|
autodetection - examine /proc/ide and such like.... simple enough.
|
Thanks for the suggestion, acid_kewpie.
whansard, those are good ideas, but I don't understand how that command zeros unused space... It seems to me that it zeros the whole partition! |
Quote:
dd if=/dev/zero of=/dev/hda1 zeros first partition first drive dd if=/dev/zero of=/dev/hda zeros first drive dd if=/dev/zero of=filename creates a file of zeros if you make that file on a mounted filesystem, the file will be created up to the size of the free space on the drive. it will not overwrite any existing files, and the previously deleted files are fully overwritten. that way somebody can't just use a disk editor and parse your empty space for data. if you made a file called mycreditcardnumber.txt, and then deleted it, the data is still on the harddrive until overwritten. thats what the zeroing is for. the same is true for the passwd file. this is more useful for a fat or fat32 drive in my opinion. let's say you've been looking at porn in windows and you don't want somebody to be able to come in with an undelete utility, and recover your browser cache. |
I understand now... Thanks for the explanation! :) It's a good idea!
Any suggestions on saving/restoring partition table(s)? |
the partition table is in the master boot record. like
dd if=/dev/hda of=/file/to/write bs=512 count=1 |
Quote:
|
Ok guys, don't start a QT/GTK flame war over here...
whansard, thank you for that... I suppose restauration goes about the same way... I'll try them out... Naturally, not on my system, but on a vmware machine! :) Here are the facts so far... I'd say the program is about 40% operational... Unfortunatelly I ran into some problems... I can't seem to find the itoa (integer to ascii) function that existed in ol' C... It should have been in stdlib.h, but it's not! Where can I find it, or how can I convert an integer to char or QString? Anyway, I've started a new project on sourceforge.net. It's called dd-frontend (all the good names were taken :( ). I hope they validate my reqest by tomorrow, because I'm going away on a vacantion (I don't know for how long...) and I won't have time to deal with this... If you can't find the dd-frontend project on sourceforge, you can download the source (in its current state) from http://www.geocities.com/mad_ady/linux/xdd.tar.gz Anyone is free to continue my work (note, however, that I'm not giving up yet, I'm just taking a well deserved vacantion!) :) |
OK, it's done. We have a project on sourceforge.net
Just go to https://sourceforge.net/projects/dd-frontend/ If you want to be a member (to code, make web page, write help), let me know (and send me your sourceforge user name). I've uploaded the latest cvs, but it may take a while for the page to update it... Any words of encouragement? Browny_amiga? anywone? :) |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 01:36 PM. |