Thread: elementary question

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    719

    elementary question

    i have a master drive and a slave drive. my slave is getting pretty old and i really have no use for it...so i was wondering, if i were to go to windows explorer and copy everything from (master) C:\ to D:\, would i then be ablee to pull out the master, configure the slave to be the master (and only harddrive), and then fdisk /mbr on it to make it run as normal...

    i ask more for understanding than practicality, but this may be useful to know if i have to restore my system some day...
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    No, I doubt Explorer would correctly copy everything. There are programs that do that, though.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    It wouldn't work as you suggest because more than likely the contents of your current slave reside on the boot partition of the drive. So forcing the new content to that position is nearly impossible. Although, I'm sure there are programs out there that do it, like CornedBee said, but I wouldn't trust them.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    how would you suggest backing EVERYTHING up? Currently the only drive i have that's big enough is the slave drive. If i have to restore my system i don't want to have to deal with re-installing programs, re-organizing the start menu, telling that stupid little tutor guy to go away, etc.. I have spent a long long time getting my computer exactly how i want it...I basically just want a copy of what i've got now.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    i figured out how i'm going to do this, but what *nix program do i use to make a disk image?
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    dd?

    In theory, dd should suffice, not sure about practice, though.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    yea, i finally remembered about dd after posting this

    i tried it too.....but half way through i realized it was going to try to copy 60 gigs onto a 30 gig drive....all i need is about 15 gigs out of the 60 though
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  8. #8
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    i guess i could re-partition the windows partition to 15 gigs, copy the image of that, and then copy the image of hda...

    ...but then how would i write the two back seemlessly?...or does the FAT for a partition reside on the partition?...if so i wouldn't really need to make an image of hda, just hda1
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  9. #9
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    (not bumping posts...mine's the first one on the list..i just keep thinking of things)


    does this sound like it would work:

    backup:
    re-partition windows to 16 gigs
    create image of first 3(?) sectors (bootsector and FAT) - bs.img
    create and image of hda1 - windows.img
    store the last 2 files on hdB1

    restore:
    (zero out hda)?
    write bs.img to hda
    write windows.img to sector 4(?) of hda


    why use 2 images you ask?...because i can't use dd to copy only 15 non-sequential gigs...but i can use dd to copy only a partition ...which is good, but it will leave out the FAT. so i must create another image with the fat, which i can do because i can copy from sector a to sector b with dd and the bootsector and FAT are a fixed size. it will take careful alignment, but i think i can do it...

    (btw way, i love overcomplicating things)
    Last edited by misplaced; 12-17-2004 at 07:36 AM.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM