Results 1 to 5 of 5

Thread: Production / Test using partimage

  1. #1
    Junior Member registered user
    Join Date
    Jan 2006
    Posts
    19

    Production / Test using partimage

    I am currently running knoppix installed on one partition of my hard drive. I am planning on creating another reiserfs partition to use for a knoppix test version.

    sda3 - knoppix production, my stable environment
    sda4 - to be my test environment

    I am planning on using partimage to make a copy of sda3 partion which I would then build sda4 using this copy. I would then like to do my testing on sda4. Then when I am happy with that environment I would like to copy sda4 back to sda3 (Production). I have a couple of questions.

    1) Is this possible and does it sound like the right way to meet my needs
    2) Trying to think this through I realize that there would be references to the partition where my copy originates from. When I copy from one partition to the next say from sda4 to sda3, I was wondering what files would be impacted by partition addresses (i.e. sda4 references that would need to be changed to sda3).

    I hope this makes a little sense. I can probably clarify this a little more if you need me to.

    Thank you...in advance,
    Chip

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Boot off the Knoppix CD/DVD. I use the cheat code: knoppix 2 dma vga=normal

    At the root prompt, use cfdsik and create the sda4
    cfdisk /dev/sda

    Once that is done you should reboot to make sure the changes are applied to the partition table. Next format reiserfs on sda4.
    mkreiserfs /dev/sda4

    Now mount the original and the new root paritions:
    mount /dev/sda3 /mnt/sda3
    mount /dev/sda4 /mnt/sda4

    Copy your current linux system to the new HD:
    cp -Rp /mnt/sda1/* /mnt/sda4

    Once that completes then edit the /mnt/sda4/etc/fstab file.
    change / from pointing to /dev/sda3 to /dev/sda4

    Then edit /mnt/sda3/boot/grub/menu.lst and copy the three or four lines that represent the normal boot entry for knoppix. Paste them to the end of the file and change the title. Also change the reference from (hd0,2) to (hd0,3) or /dev/sda3 to /dev/sda4.

    Save the changes and unmount /mnt/sda3 & /mnt/sda4
    Reboot and it should work.

    I hope this helps.
    James

  3. #3
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    Production / Test using partimage

    You are going to need the -d (dereference) switch in that copy command also so as not to follow symbolic links and copy the links themselves.

    While your at it, just use the -a switch (for archive) as it combines the -dpR arguments.

  4. #4
    Junior Member registered user
    Join Date
    Jan 2006
    Posts
    19
    I was able to create my sda4 partition as reiserfs. I am now trying to mount that partition but it say's I need an entry in the etc/fstabs file. My current file looks like this

    # /etc/fstab: filesystem table.
    #
    # filesystem mountpoint type options dump pass
    /dev/sda3 / reiserfs defaults 0 1

    proc /proc proc defaults 0 0
    /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
    usbfs /proc/bus/usb usbfs devmode=0666 0 0
    sysfs /sys sysfs defaults 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    /dev/cdrom /cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
    /dev/dvd /dvd iso9660 defaults,ro,users,noexec,noauto 0 0
    # Added by KNOPPIX
    /dev/sda1 /mnt/sda1 vfat noauto,users,exec,umask=000 0 0
    # Added by KNOPPIX
    /dev/sda2 none swap defaults 0 0
    # Added by Cyoung for camera
    # /dev/sdb1 /mnt/camera auto noauto,user,rw 0
    /dev/sdb1 /mnt/camera auto noauto,users,exec 0

    My question is what should my line look like for sda4 reiserfs?
    Do I also need a folder in the mnt directory for sda4?
    Once I am able to mount sda4 and copy all of my files from sda3, how do I change fstabs to show which partition I am pointing at since it looks like just a list of all available partitions?

    Thanks again. That was a very quick response.

    Learning more each day!
    Chip

  5. #5
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    Production / Test using partimage

    Although we are happy to help those in need, what you are asking for is a tutorial on basic UNIX/Linux system administration.

    In order to become more proficient, and have ready references at hand, may I suggest that you begin to acquire a library to assist you.

    There are many excellent texts in the USD20-30 range as well as probably some material at your local liibrary.

    Your system itself should be your first source. Learn to use the manual pages installed at your system. The command: man , followed by almost any command or configuration_file_name will give you basic information concerning such and often references to further information. The command: apropos followed by a search string will give you a list of the manual pages that include same.

    In your case: man fstab , man reiserfs, man mount, man partimage, man cp, etc

    If you really get stuck, please post with the exact command that is giving you trouble.

    The comment, " I am now trying to mount that partition but it say's I need an entry in the etc/fstabs file", does not give us much information and simply makes a reply more difficult as we have to guess what your likely actions were.

Similar Threads

  1. Partimage
    By jjbergdolt in forum General Support
    Replies: 1
    Last Post: 08-05-2005, 07:57 AM
  2. Help with partimage please
    By alastair lewis in forum General Support
    Replies: 1
    Last Post: 07-08-2005, 06:16 PM
  3. Partimage - won't
    By MickKi in forum General Support
    Replies: 3
    Last Post: 03-21-2005, 03:00 PM
  4. Does this work ? - Knoppix for a production environment -
    By kleiner_Drache in forum Customising & Remastering
    Replies: 3
    Last Post: 01-13-2005, 07:04 PM
  5. copying test to production system
    By knulle in forum General Support
    Replies: 1
    Last Post: 05-07-2004, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 64GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 64GB 2x10G SFP+ 2x2200W

$3180.00



Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.8Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$3472.00



Supermicro 4U 4x Nvidia GPU AI Server 3.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W picture

Supermicro 4U 4x Nvidia GPU AI Server 3.6Ghz 8-Core 256GB 2x10G SFP+ 2x2200W

$1732.00



Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ... picture

Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...

$689.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$489.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5... picture

Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...

$339.99



FAST Dell TOUCHSCREEN 8th Gen Intel Quad Core 16GB RAM Pick SSD Wi-Fi BT Win11 picture

FAST Dell TOUCHSCREEN 8th Gen Intel Quad Core 16GB RAM Pick SSD Wi-Fi BT Win11

$199.00



ALLEGIANCE Desktop Computer Gaming PC: Intel 8 Core 128GB RAM, 2TB SSD, GeForce picture

ALLEGIANCE Desktop Computer Gaming PC: Intel 8 Core 128GB RAM, 2TB SSD, GeForce

$687.99