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
 
Search this Thread
Old 09-19-2004, 10:09 AM   #1
Sn7
LQ Newbie
 
Registered: May 2004
Posts: 25

Rep: Reputation: 15
dd question - split files


Hi

I'm doing a backup of my drive (HDA1), how can I split the files because it can't grow larger than 2Gb?

I'm currently doing dd if=/dev/hda of=/mnt/hdb/backp/backup.img

Thanks
 
Old 09-19-2004, 10:24 AM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
Hi,

cd /mnt/hdb/backp/
dd if=/dev/hda | split -b=2000m


first chunk of data is named xaa, 2nd is xab an so on
 
Old 08-29-2009, 11:56 PM   #3
Logomachist
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Rep: Reputation: 0
Question Is that really the best solution?

I have the same objective.

Is that really the best solution? No way to do it all in one step? I suppose if it works I shouldn't complain but it looks rather inelegant to me.
 
Old 08-30-2009, 12:01 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
If you think it's inelegant you are going to suffer a lot, because that's the philosophy of Linux for the most part. Most Linux tools don't do a thousand things, they do *one* thing* and do it well. Then you combine them to achieve your purpose.

You could find a GUI frontend to this tools that do the work in a more graphical way (I don't know of any, but it may exist), however the steps behind the scenes will be mostly the same, you just won't see them.
 
Old 08-30-2009, 04:09 AM   #5
Logomachist
LQ Newbie
 
Registered: Aug 2009
Posts: 24

Rep: Reputation: 0
I have mixed feelings about Linux's design philosophy.

Yeah, I have mixed feelings about Linux's design philosophy. I LIKE that commands can be chained together in original ways. But you know that 80/20 rule, right? I think they could have anticipated that users would have wanted to specify filenames and span images across multiple files and included these features accordingly.

Actually, somebody did... I found a utility called dcfldd that's like dd but can split files. This has happened before; I've found enhanced versions of grep and ls online that do things I found lacking from the originals. But for some reason these enhanced versions aren't included by default in Linux distros.
 
Old 08-30-2009, 04:42 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Quote:
Originally Posted by Logomachist View Post
Yeah, I have mixed feelings about Linux's design philosophy. I LIKE that commands can be chained together in original ways. But you know that 80/20 rule, right? I think they could have anticipated that users would have wanted to specify filenames and span images across multiple files and included these features accordingly.
We could argue about what's better forever, the truth is that there's as many different views as there are users. I say that there's a command for that, so why bother coding that feature again and again and again in every single program? Obviously it's not the only way to look at the issue, and everyone is free to disagree. I don't claim to have the truth on my hands. Everyone has his/her own truth.

Besides that, if that truly bothers you, just use split directly and be happy with it:

Code:
split /dev/hda1 -b 700m
Quote:
Actually, somebody did... I found a utility called dcfldd that's like dd but can split files. This has happened before; I've found enhanced versions of grep and ls online that do things I found lacking from the originals. But for some reason these enhanced versions aren't included by default in Linux distros.
There are also ways, as said, no one can say if it's better to have programs with lots of features, or lots of programs with just one feature. No one can say either when is a good time to stop. You say that dd should be able to split files, some other person will think that it should compress the files in bz2, some others will want 7z support, some others will want ghost image supports, some others will want dd to be able to change the internal fs format of an image, some others will want a graphical frontend, and where do we stop? Who decides what feature is ok and what isn't?

Well, that person is the author of the program. If you don't agree, you can always fork it, that's why "improved" versions of typical gnu tools do exist.

Last edited by i92guboj; 08-30-2009 at 04:44 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed to split files 242VDM242 Linux - Newbie 10 04-07-2005 09:39 AM
how to split up audio files? SciYro Linux - General 3 10-27-2004 11:25 AM
dd question - split files Sn7 Linux - General 1 09-19-2004 10:15 AM
How to rejoin split files SharpyWarpy Linux - General 2 02-07-2003 02:42 PM
What is there to split up wav files? J_Szucs Linux - Newbie 10 12-28-2002 02:30 PM


All times are GMT -5. The time now is 05:50 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