LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-18-2003, 07:10 AM   #1
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 34
Question is there a Frontend/Gui for dd?


I searched but found none. Is there a gui for that marvelous program dd?
I know, it's pretty simple in the CLI, but still would like to have a gui, to show to people not versed in CLI.
Does it exist or is this my chance to write a frontend?
(as in: Usualy everything exists already somewhere and there is not need/opportunity to code)
 
Old 07-18-2003, 08:50 AM   #2
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
If you write a frontend for dd, I'd like to use it too!
Sometimes I forget all the options from dd, soit would come in handy!
 
Old 07-18-2003, 08:57 AM   #3
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Original Poster
Rep: Reputation: 34
Oh my, you don't know what a lousy programmer I am. I don't know jack about Linux programming, so we might all get beards (exept the ladies here) till I have it finished.

Well, if we going to wait that long, let's make a wishlist of features that it should have.

one of me:
Have a pull down menu for /dev/fd0 /dev/cdrom etc. in the input box (infile)

Hmm, that is the only feature I can think of right now.
It should have input boxes for infile and outfile and a go button.
what else?
 
Old 07-18-2003, 09:10 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
your best bet might be taking a program that uses
lame, the mp3 encoder, and alter it to use dd. just
don't test it as root, cause dd is short for "d*&m dangerous"
 
Old 07-18-2003, 09:13 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
if they're scared of a command line what are they doing messing around with somethign like dd in the first palce? i seriosuly can't see how a frontend would be of any use at all...
 
Old 07-18-2003, 09:33 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
how about a voice controlled frontend for dd that
always runs as root, and the default output is of=/dev/hda.

that way people that can't type or use a mouse can use
the power of dd.
 
Old 07-18-2003, 09:34 AM   #7
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Original Poster
Rep: Reputation: 34
Well, I do know (from my own experience) that forcing people to HAVE to use the commandline is putting them off. So making a frontend for dd, well, would make it more sympathetic for them.
Of course, as you say, dd is a powerful (and dangrous) tool. You have to know what you are doing anyway. I am not trying to provide "a glove for somebody to pull the triger on the gun, because that person does not like to touch the trigger with the fingers directly"
I am just doing this for myself, because I want to see how windowing environments are programmed (or better how to programm in one) I could not get myself to do it in windows (YUCK), but in linux I really would like to.
And so far, I could not find ANYTHING that has not been done before, depriving me of the necessity to do it (instead of looking some and then downloading). Also: This project is sooo simple, I might even finish it ;-)
Thing is, that I had once a floppy image writer/reader on windows and when I heard what dd can do, I was amazed at the simplicity and power of it, especially because it is included in linux and not in windows (had to look for it big time). So I guess I am trying to replicate the whole thing in linux, combined with some gtk coding and C learning. I doubt that it will ever be big/good enough to be released to the linux world, but let's see...
I don't NEED the tool, I can use dd in the commandline with no probls... Just want the "nice to have"
 
Old 07-18-2003, 09:51 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
you can use dd in windows. get the cygwin package.
you can even use cdrecord in windows. i've burned
many cd's that way. bash and cdrecord under windows
2000, because thats where i was.
the reason dd is so powerful is because of the devices.
most of what people use dd for can be done with cat.
well, lots of it anyway. anyway, it's the devices that make
the stuff work.
in windows, most of the stuff you would do with dd
would be done with a hex editor, like norton diskedit.

edit. just found this.
for windows.
http://thinstall.com/unix_tools/

Last edited by whansard; 07-18-2003 at 09:58 AM.
 
Old 07-18-2003, 11:35 PM   #9
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
browny_amiga, I have little experience with programming in QT, but I think I can do a frontend for dd... Now, if somebody would use it, I would be might happy!
Post things that you want to see in the frontend, and i will start working on it maybe as soon as next week!
I estimate that I could release the first version early this autumn...
 
Old 07-19-2003, 01:02 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
how about some specific functions commonly done
with dd,where you see the command, but don't have
to type it, like.
back up boot sector or partition table of certain drive to
certain file. copy drive to drive. encrypt file. write zeros
to drive. write zeros to boot sector. write random to drive
9 times over to foil recovery attempts. create iso cdrom
image. burn cdrom image. burn cdrom on fly using
cdrecord. create floppy disk image. write floppy disk
image.
save recent commands.
perhaps novice and expert or safe and dangerous
options.
maybe even adding a boot sector file to winnt boot.ini
creating the bootsector image, and writing the entry
to the file.
 
Old 07-19-2003, 12:58 PM   #11
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
Yes, that would sound great... How about e-mailing me the correct commands and I'll start building!

I'd try to find them myself, but I'm afraid I'll screw up!
 
Old 07-21-2003, 03:37 AM   #12
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Original Poster
Rep: Reputation: 34
That's great. These suggestions pretty much hit what this tool needs to do. I don't know the exact command line for it, but I am sure somebody can provide them.

Expert modes I guess we can forget. There needs to be a disclaimer, that "xdd" is a powerful programm. It's improper use can bomb your harddisk (100% sure non-recoverable), bomb your floppies, bomb your OS, bomb your MBR. If you don't know what dd does or you are unsure why you are using this tool, better don't. You might loose your data and a lot of hair with it."
 
Old 07-21-2003, 03:39 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
if you're doing things like this to automate procedures then remember you'll also benefit imensly from automatically detecting partition types, device types, filesystem formats and the likes... check for available space before copying yada yada yada.
 
Old 07-21-2003, 04:42 AM   #14
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
dd if=/dev/zero of=/tmp/filldrive.tmp bs=1M
rm /tmp/filldrive.tmp
1 problem is tha tcould crash programs if a program
needed space to write. i picked 1M because i hoped
that would leave a little some space after writing the
file for a little temp space.
replace with /dev/random for random data.
i guess make a for loop for 9 or 10 times.

dd if=/dev/cdrom of=/iso.image
let the person pick the device and the image name.
 
Old 07-22-2003, 02:01 AM   #15
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
OK guys! This sounds good! How about opening a project on sourceforge.net?
Does anyone volunteer to be team captain? Or do I have to do it?

I have worked a bit with QT, but I am not a master of it... I know its relatively easy to bind commands to the buttons, but I NEED THE RIGHT COMMANDS.
So, if a dd guru would be so kind to post a list of commands that do what whansard suggested (and more!).
I also think it's a good idea to put a button that would show the final command (with parameters and all) and allow the user to 'tweak' it before proceding!

All those of you who would like to take part in this project (and maybe program some parts of it) please post a reply here!
We can make a team project on sourceforge and work together!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-Platform GUI Frontend for MySQL chandru.in Linux - Software 2 08-10-2005 07:13 AM
need good GUI/frontend for Xmame on suse 9.3 fireedo Suse/Novell 5 06-28-2005 05:44 AM
GUI frontend for gphoto2 trigggl Slackware 5 12-19-2004 12:44 PM
Is there a Shorewall GUI frontend? eroica Linux - Security 5 03-11-2004 11:26 AM
a good gui frontend for antivirus program jayakrishnan Linux - Software 0 10-05-2002 11:13 PM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration