Author Topic: Ubuntu 64 Bit / Image  (Read 2860 times)

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Ubuntu 64 Bit / Image
« on: May 31, 2009, 11:07:07 PM »
Is there a program like Ghost that is compatible with Jaunty 64 Bit? Preferably with a GUI. I finally have almost everything working the way it should be after alot of effort, and i want to make a DVD image so if i kill it i can just pop in the DVD and bring it right back to its current state.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Dumah

  • Jackass IV
  • Posts: 960
  • Karma: +21/-6
Re: Ubuntu 64 Bit / Image
« Reply #1 on: June 01, 2009, 05:17:59 AM »
Use the unix command "dd". Look it up, it copies partitions byte for byte and you can even mount the images it creates.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #2 on: June 01, 2009, 08:54:30 AM »
thnx :)
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #3 on: June 01, 2009, 10:21:25 AM »
http://www.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362506/

Quote
dd if=/dev/hda3 of=/home/sam/backup_set_1.img bs=1M count=4600
dd if=/dev/hda3 skip=4600 of=/home/sam/backup_set_2.img bs=1M count=4600 
dd if=/dev/hda3 skip=9200 of=/home/sam/backup_set_3.img bs=1M count=4600

How do i know exactly how to customize this to my system? The breakdown of the commands would tell me that the skip 4600 tells the next image to start at 4601 and the one after to start at 9201. But how do i know the progression and amount of images for mine? Isnt there a command that will copy the entire system hard drive and split to new images as needed to burn onto dvd's?
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Dumah

  • Jackass IV
  • Posts: 960
  • Karma: +21/-6
Re: Ubuntu 64 Bit / Image
« Reply #4 on: June 01, 2009, 10:57:14 AM »
Probably...otherwise you would probably need to knock up a python script to do it.

The size of the partition you choose can be got easily form the system (/sys/block/sda/sda1/size for example) and then you just need script to do the work!

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #5 on: June 01, 2009, 11:09:38 AM »
ok dumb question, what was that command for displaying all volumes? that was i can see what is what since i have multiple drives. Then i'll get into trying to figure out a script :)
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: Ubuntu 64 Bit / Image
« Reply #6 on: June 01, 2009, 11:35:27 AM »
df -h

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #7 on: June 01, 2009, 11:50:25 AM »
thnkas guys, lemme play around :)
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #8 on: June 01, 2009, 12:36:59 PM »
Ok im operating on sda1.

Quote
steve@steve-laptop:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             106G   28G   73G  28% /
tmpfs                 1.5G     0  1.5G   0% /lib/init/rw
varrun                1.5G  212K  1.5G   1% /var/run
varlock               1.5G     0  1.5G   0% /var/lock
udev                  1.5G  176K  1.5G   1% /dev
tmpfs                 1.5G  192K  1.5G   1% /dev/shm
lrm                   1.5G  2.7M  1.5G   1% /lib/modules/2.6.28-11-generic/volatile
steve@steve-laptop:~$

So i guess i need to do

dd if=/dev/sda1 of=/home/steve/backup_set_1.img bs=1M count=4600

all the way to

dd if=/dev/sda1 of=/home/steve/backup_set_XX.img bs=1M count=10600

?
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Dumah

  • Jackass IV
  • Posts: 960
  • Karma: +21/-6
Re: Ubuntu 64 Bit / Image
« Reply #9 on: June 01, 2009, 04:25:07 PM »
Dont forget to skip each time - as per your link you posted

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #10 on: June 01, 2009, 04:41:57 PM »
oops your right. is it possible for me to f-up my current system doing this? new commands in my terminal always make me nervous
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: Ubuntu 64 Bit / Image
« Reply #11 on: June 01, 2009, 06:38:12 PM »
Only if you reverse the values for if and of

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: Ubuntu 64 Bit / Image
« Reply #12 on: June 01, 2009, 06:52:34 PM »
Alrighty im pretty safe to play around with it then :)
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?