Backing up with dd, and creating a file system on a new drive.
Ray Parrish
crp at cmc.net
Wed Dec 23 05:16:57 UTC 2009
Fred Roller wrote:
> Ray Parrish wrote:
>
>> Helo again,
>> Sorry I haven't gotten back to this thred until now, but I have been
>> pretty busy around here.
>>
>> You were the person who got closest to what I wanted, but you are still
>> off the mark due to my not explaining myself well enough.
>>
>> I do not want to make an .img file, I want to make a duplicate of my
>> dual boot 160 GB main drive, on the 500 GB so that I can swap places
>> with the drives, and run from the big one instead, in case the little
>> one goes dead.
>>
>> I know dd can do this, as I have read a tutorial explaining how to do it
>> in the past, but I cannot find the same tutorial again.
>>
>> Could you please help me out with this?
>>
>> Thanks, Ray Parrish
>>
>>
>>
> No Problem, Same instructions as before except omit:
>
> 3. mount the 500Gb hdd
>
> mount /dev/sdb1 /mnt
>
> ensure neither drive is mounted in step 4
>
> and your dd command now looks like this:
>
> dd if=/dev/sda of=/dev/sdb bs=512 conv=noerror
>
> assuming the your 500Gb drive is /dev/sdb
>
> From here it's choose your own adventure:
> a.) If you just want to create an additional partion(s) for general use
> between the dual boot systems:
>
> fdisk /dev/sdb
>
> then once the program is up:
>
> n
>
> "n" for new partition and accept the defaults for a single partition.
> Understand what you are doing in this program or you could sh--can the
> drive and have to start over.
>
> Once the partition is created type:
>
> w
>
> to (w)rite to disk and exit the program. Once the partition is
> completed and you are on the command line again then format the
> partition (assuming it is /dev/sdb3 and it needs to be formatted for
> both windows and linux) with:
>
> mkfs.vfat /dev/sdb3
>
> reboot in to your linux boot and open a terminal.
>
> sudo mkdir /Data
>
> mount the new partition:
>
> sudo mount /dev/sdb3 /Data
>
> the system should auto detect the type of file system. Edit your
> "fstab" as necessary for a permanent mount point.
>
> or by GUI
>
> b.) Once you are done and while you are still in the terminal
>
> sudo apt-get install gparted
>
> because the live CD does not ship with the partitioner. Resize your
> disk or add a new partition. Reboot and create the directory and set up
> fstab. Hope this helps.
>
Thanks for the directions. I've been busy the past couple of days so I
couldn't get back to you until now. What you told me here seems like
what i want to do, and i thank you again for telling me the procedure.
Have a good holiday season everyone!
Later, Ray Parrish
--
The Future of Technology.
http://www.rayslinks.com/The%20Future%20of%20Technology.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list