Re: i want to migrate from ide to serial ata

2006-02-02 Thread daniele
thanks to all for your help and suggestions, next week i will test my 
new hard drive (i hope)


daniele


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: i want to migrate from ide to serial ata

2006-02-02 Thread A J Stiles
On Wednesday 01 Feb 2006 20:22, daniele wrote:
> hello
> i have a little question
> now i have two maxtor hard disk ide
> in the first hard disk i have my debian installation
> i want to buy a new hard disk serial ata
> i will use cp to copy my system on the new hard disk, _but what i need
> to do to boot from my new hard disk_?
> my motherboard is a gigabyte k8ns pro socket 754 nforce3
> i found a lot of documetation to install debian to a new hard disk
> serial ata but no documents to migrate debian on new hard disk serial
> ata :-(
> thanks

This should work:

1.  Compile a kernel with SATA support if you haven't already!
2.  Boot from a SATA-ready Debian installation CD.  {This avoids complications 
with /dev}.
3.  Partition and format SATA drive as desired; leave IDE drive alone.
4.  Go to a console  {ctrl+alt+F2}.
5.  Make mountpoints for SATA and IDE drives and mount them  {don't forget to 
mount all subdirectories beneath them; a printout of your /etc/fstab will 
help enormously here}.
6.  Copy everything from the IDE drive to the SATA drive.
7.  Edit /sata/etc/fstab and /sata/etc/lilo.conf to take account of the fact 
that the drive is now sda and not hda.
8.  chroot into the sata drive and run /sbin/lilo.
9.  Press ctrl+D to exit from the chroot.  {If you don't do this, the MBR 
write might not be decached}
10.  Remove CD, reboot and go to BIOS.  Set boot order to CDROM, SATA, IDE.
11.  Exit BIOS setup and boot into new system!

Alternatively, just reinstall everything exactly as per your existing 
installation; then copy /etc, /usr/local and /home from the IDE drive to the 
SATA drive.  {NB:  don't overwrite /etc/fstab or /etc/lilo.conf!}

-- 
AJS
delta echo bravo six four at earthshod dot co dot uk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: i want to migrate from ide to serial ata

2006-02-01 Thread David L. Johnson
On Wed, 01 Feb 2006 21:22:04 +0100
daniele <[EMAIL PROTECTED]> wrote:

> hello
> i have a little question
> now i have two maxtor hard disk ide
> in the first hard disk i have my debian installation
> i want to buy a new hard disk serial ata
> i will use cp to copy my system on the new hard disk, _but what i need 
> to do to boot from my new hard disk_?

One caution is that you need a fairly recent kernel, 2.6.12 or newer, so that
the sata disk will be recognized.  My first attempt to install on my new
computer could not find the hard disk.  There is a netinstall iso available
with a 2.6.12 kernel that works fine, though.  I guess, though, that if you
are able to mount your new disk to do the transfer, your kernel will be good.

-- 

David L. Johnson

   __o   | "A foolish consistency is the hobgoblin of little minds, adored 
 _`\(,_  | by little statesmen and philosophers and divines." --Ralph Waldo
(_)/ (_) | Emerson  
   


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: i want to migrate from ide to serial ata

2006-02-01 Thread Corey Hickey
daniele wrote:
> hello
> i have a little question
> now i have two maxtor hard disk ide
> in the first hard disk i have my debian installation
> i want to buy a new hard disk serial ata
> i will use cp to copy my system on the new hard disk, _but what i need 
> to do to boot from my new hard disk_?
> my motherboard is a gigabyte k8ns pro socket 754 nforce3
> i found a lot of documetation to install debian to a new hard disk 
> serial ata but no documents to migrate debian on new hard disk serial 
> ata :-(
> thanks

Here are the steps. These are from memory, so if I forget something I'm
sure somebody else will fill it in.

1. Change your BIOS to boot from SATA first. If at any time during this
process you need to abort, simply change this back and you should be
able to boot your old installation like normal.

2. Boot from a debian CD or some 64-bit live CD. You don't absolutely
_have_ to do this, but it makes some things easier if the source
installation is offline when you copy it. I've omitted a few steps that
would be necessary for copying an online installation.

3. Use cfdisk or a similar program to partition your new disk however
you want.

4. Make new filesystems with mkreiserfs, mke2fs, mkswap, etc.

5. Mount your new filesystems and copy the installation over. Make sure
you use 'cp -a'.

6. Edit your new etc/fstab; change hda to sda, etc.

7. Edit your new boot/grub/menu.lst; change hda to sda everywhere you
need to, including the "DEBIAN AUTOMAGIC" kernels (unless you have a
whole lot of kernels it's easier than mounting everything together,
chrooting, and running update-grub). You shouldn't have to change
anything like (hd0,0) unless you're altering your partition scheme at
the same time.

8. Turn off your computer and unplug your old ATA drive. This is a
safeguard against getting mixed up and overwriting the wrong boot
sector. If you feel you really know what you're doing than you can skip
this step.

9. Boot back up from the CD again.

10. Run grub. At the grub command prompt, type the following. Replace
the numbers with the correct ones for your partitioning scheme. Remember
that grub starts numbering at 0, so /dev/sda3 is (hd0,2).
> root (hd0,0)
> setup (hd0)

11. If that works, then try booting from your SATA disk. If that works,
then plug your old disk back in and make sure your BIOS is still booting
off the SATA.


-Corey


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: i want to migrate from ide to serial ata

2006-02-01 Thread Jean-Luc Coulon (f5ibh)

Le 01.02.2006 21:22:04, daniele a écrit :

hello
i have a little question
now i have two maxtor hard disk ide
in the first hard disk i have my debian installation
i want to buy a new hard disk serial ata
i will use cp to copy my system on the new hard disk, _but what i  
need to do to boot from my new hard disk_?

my motherboard is a gigabyte k8ns pro socket 754 nforce3
i found a lot of documetation to install debian to a new hard disk  
serial ata but no documents to migrate debian on new hard disk serial  
ata :-(

thanks


There was no différence for me to migrate from ide to sata than from  
ide to ide.


Just remember that the sata disk are managed via the scsi layer so the  
naming scheme is /dev/sda, /dev/sdb, ...


Then probably in your BIOS like in mine (ASUS A8V), there is an option  
to tell which is the boot device and there is, once again nothing  
specific.


You must have a kernel with sata support for your chipset.


Jean-Luc


pgpxAZAl5rLgg.pgp
Description: PGP signature


i want to migrate from ide to serial ata

2006-02-01 Thread daniele

hello
i have a little question
now i have two maxtor hard disk ide
in the first hard disk i have my debian installation
i want to buy a new hard disk serial ata
i will use cp to copy my system on the new hard disk, _but what i need 
to do to boot from my new hard disk_?

my motherboard is a gigabyte k8ns pro socket 754 nforce3
i found a lot of documetation to install debian to a new hard disk 
serial ata but no documents to migrate debian on new hard disk serial 
ata :-(

thanks


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]