[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: (no subject)
- From: Aaron Konstam <akonstam trinity edu>
- To: enigma-list redhat com
- Subject: Re: (no subject)
- Date: Thu, 24 Jan 2002 08:26:47 -0600
On Thu, Jan 24, 2002 at 01:44:46PM +0700, loeung vidol wrote:
> Hi:
>
> I'd like to move everything from one, old, small hard disk to a new, larger,
> one. What I did was this:
>
> i. Create the same partitions on the new disk (some with larger size),
> format them with mke2fs and mkswap, convert them into EXT3 with
> 'tune2fs -j', and label them with 'e2label'.
> ii. Copy all data on each partition on the old one to the corresponding
> partition on the new one using 'cp -a'.
> iii. And I used 'dd' to copy LILO image from the old disk to the new disk:
>
> $ dd if=/dev/hda of=/dev/hdc bs=512 count=1
> (/dev/hda is the old disk, and /dev/hdc is the new one)
The boot sector has the boot blocks but also the partition table. You
don't want to copy the whole boot sector. A better solution is to boot
your system using the 7.2 CD linux rescue system. chroot to the
directory you want to mount as / and run lilo to create the booter.
>
> iv. Then, I shut down the system, removed the old disk, switched the new
> disk to "Primary Master", and rebooted.
>
> Have I been on the right track? What did i miss?
>
> But, now, at boot time, all I saw on the screen was a lot 0's and 1's:
>
> 01010101010....
>
> What caused that?
>
> My second question is:
>
> Can 'cp -a' do this:
>
> $ cp -a /* /mnt/hdc6
>
The simple answer is don't copy the /mnt directory. Do something like:
cp -a /boot /bin /home /sbin ....... /mnt/hdc6
tar would work also here with cd to / then run:
tar cf - boot bin home ....... | (cd /mnt/hdc6; tar xf -)
also remember not to copy /proc
> where /mnt/hdc6 is the mount point of /dev/hdc6? How can that be done as
> /mnt/hdc6 is also under / although, it is on a separate partition? If it
> cannot, can we possibly do it in tar. On the man page, I saw some options
> such as:
>
> $ cp -a -l ...
> $ tar --one-file-system ...
>
> But they did not seem to work. Maybe, I did not do it right. Can anyone
> help?
>
>
> Thanks
> Vidol
>
>
>
>
> _______________________________________________
> enigma-list mailing list
> enigma-list redhat com
> https://listman.redhat.com/mailman/listinfo/enigma-list
--
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200
telephone: (210)-999-7484
email:akonstam trinity edu
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]