Quick question before this gets to the bottom of the page...
What would be the best way to transfer this knoppix install to a different partition? make an image of it, copy it(with what arguments?), or some other way?
Thanks!
So, it's spring break. I got bored, and my bro burned me the newest knoppix CD. So since my last damnsmall linux install is kind of... jury rigged.. I decided I'd go and try Knoppix install.
Smooth as anything. I've already got pretty much everything up and running. It's almost kind of dissappointing in away, I figured I would spend a lot of time just getting stuff running, but everything just.. worked.. it was kind of freaky.
Anyhow, I'm happy now. Just some more fine tuning, which we all know will never end
Quick question before this gets to the bottom of the page...
What would be the best way to transfer this knoppix install to a different partition? make an image of it, copy it(with what arguments?), or some other way?
Thanks!
boot knoppix from cd, unmount all harddisks, then enter "dd if=/dev/hdxn of=/dev/hdxn" in the knoppix root shell. (Note: x stands for the IDE hard drive thats being used here; a is the master on the first controller, b would be the slave on the first controller and c is the master on the second controller and so on... n is the partition number; use "fdisk -l /dev/hdx" to find out! In case you don't know; if means input file and of means output file!) Oh, and make sure that you want to copy to is the same size or larger than the source partition ! But you can always use partimage for this if you are not familiar with dd!Originally Posted by PotatoHead
Ok, I just want to clarify:
/dev/hda5 is a 5 gig partition
/dev/hda7 is a 2.5 gig partition
Right now knoppix is installed on /dev/hda7, I want to move it to hda5, so the command I type is:
dd if=/dev/hda7 of=/dev/hda5
right?
in the slackware install the comand cp -a is used, does that help?
quote from man cp.
-a, --archive
Preserve as much as possible of the structure and
attributes of the original files in the copy (but
do not preserve directory structure). Equivalent
to -dpR.
I don't think that using dd would make sense here, you'd be better off using partimage when booting from cd, then tell partimage to make a image of /dev/hda7 and split the image in 650Mb chunks and temporarily store them on /dev/hda5, then boot your hdinstalled knoppix, burn those images onto cdr(w) (just in case something goes wrong! Double check whether you burned them correctly!!), boot from cd and dump the images onto /dev/hda5 using partimage, done! Then you can reformat /dev/hda7 Of course you need to modify /etc/lilo.conf and run lilo (from cd within a chroot environment if neccessary) to tell the bootloader that your root partition has moved!! whatever you do, be careful, losing data in not funOriginally Posted by PotatoHead
Originally Posted by PotatoHead
Boot with the Knoppix CD and then you would in a console window.
You need to edit the fstab to change the mount point for the / partition and in the lilo.conf change it to root=/dev/hda5 the chroot will write the new lilo configuration to the disk. Note: When editing lilo if you have installed lilo to the /dev/hda7 old / partition then you should change the boot= to /dev/hda5 if it is going into the MBR then you will be fine and make sure that you format the /dev/hda5 partition before you copy to eliminate any possibility leftover files that may be on it you would make sure the fs type in the /etc/fstab matches for the new / partition as well.Code:sudo mount /dev/hda5 /mnt/hda5 sudo mount /dev/hda7 /mnt/hda7 sudo cp -Rp /mnt/hda7/* /mnt/hda5/ sudo vi /mnt/hda5/etc/fstab sudo vi /mnt/hda5/etc/lilo.conf sudo chroot /mnt/hda5/ /sbin/lilo -v
Thanks for all the help guys! All I really wanted to know was which would be better, dd or cp for moving everything, and I just wasn't sure how to use dd.
Thanks again though!
A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM
$287.96
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP
$38.99
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC
$19.95
Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$21.33
CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800)
$79.95
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$12.90
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$14.85
HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN
$129.95
HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin
$119.80