[opensuse] move SuSE from one harddisk to another
Hello. After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var) So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings. Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there. I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable. Did I miss anything? Thanks in advance! I am not good at these booting stuff and is learning. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Zhang Weiwu wrote:
Hello.
After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var)
So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings. Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there.
I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable.
Did I miss anything?
I dunno but I am unsure about your grub entries ie surely they need to state both which hard drive ie hda and then also the partition ie hda1? To my knowledge hda is the first IDE hard drive detected. hdb would be the secondary IDE drive. I am unsure but I think hda is the Primary Master, hdb is Primary Slave etc. If your drives are SATA or SCSI then the drives will be known as sda and sdb. Don't forget to add the partition number after the letters.
Thanks in advance! I am not good at these booting stuff and is learning.
HIH Hylton -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Aug 23 2007 21:58, Zhang Weiwu wrote:
Hello.
After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var)
I usually prefer the fast disk for my data.. :)
So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by
-a implies -r and -D. I really suggest adding -AHX (giving a full picture of `rsync -AHPSXavx /old/ /new/`) to preserve ACLs, xattrs and hardlinks and do an efficient transfer with stats.
running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings.
Boom. Some BIOSes tend to swap the 0x80 and 0x81 drives. The popular VIA series for AMD K6 did that IIRC. If available, try using the BIOS boot menu rather than in-setup definable boot order.
Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there.
I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable.
Did I miss anything?
Thanks in advance! I am not good at these booting stuff and is learning.
If you cannot solve it in time, set the harddisks the way you want them (primary/secondary channel), change BIOS back to normal order, and use the rescue CD to rewrite grub. Jan -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007/08/23 21:58 (GMT+0800) Zhang Weiwu apparently typed:
After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var)
So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings. Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there.
I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable.
Did I miss anything?
I think there may be 3 problems here: 1-I don't see any step that caused hd1,1 to become an active partition 2-I don't see any step that caused hd1 to contain boot code in the MBR 3-setting the BIOS to make hd1 the boot device ahead of hd0 effectively transforms hd1 into hd0, and hd0 into hd1. If you can get so far as a grub prompt, you may need to use the map command as described on http://www.gnu.org/software/grub/manual/grub.html#map http://www.togaware.com/linux/survivor/Upgrade_Hard.html , http://en.tldp.org/HOWTO/Hard-Disk-Upgrade/ and http://mrmazda.no-ip.com/partitioningindex.html should be helpful. -- " It is impossible to rightly govern the world without God and the Bible." George Washington Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank you all for all the suggestions. From the feedback it seems my logic isn't wrong (rsync files, install grub). Everyone suggest I didn't install grub properly. I do think I've installed grub on the right harddisk because I. before installing grub I boot with new harddisk would get 'No Operating System' II. but after I installed grub using posted commands I boot with new harddisk and gets random junk ascii code. I'd think incorrect root setting for grub is not the problem: because grub didn't start to load stage 1 and 1.5 yet (from my understanding of tldp document, 'root' setting of grub affect after 1.5 stage and if it's set wrong I can always correct it from grub menu) Felix Miata asked if I take any step to make hd1,1 the active partition. I simply didn't because I thought (from my understanding of documents, the problem is often I understand the wrong way..) setting active partition is need only if I use standard MBR and install grub on a partition. In my original post I have installed it in MBR. I tried to boot the system using my live CD (I happen to have an GNUStep live CD) and run grub from live CD, do the setup to install grub on hd1. Result is still second (new) harddisk not able to boot (still random ascii code displayed). So I didn't fix this yet. I'll try more to fix it and if I am not able to, I just boot from the grub installed on the old disk to load the kernel on the new disk and mount new disk as '/'. This is simplest and should work but I'd rather not to lose the opportunity to manage to be skillful enough to move Linux around without having to re-install.' Thanks all for your help.. 在 2007-08-23四的 10:33 -0400,Felix Miata写道:
On 2007/08/23 21:58 (GMT+0800) Zhang Weiwu apparently typed:
After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var)
So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings. Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there.
I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable.
Did I miss anything?
I think there may be 3 problems here:
1-I don't see any step that caused hd1,1 to become an active partition 2-I don't see any step that caused hd1 to contain boot code in the MBR 3-setting the BIOS to make hd1 the boot device ahead of hd0 effectively transforms hd1 into hd0, and hd0 into hd1. If you can get so far as a grub prompt, you may need to use the map command as described on http://www.gnu.org/software/grub/manual/grub.html#map
http://www.togaware.com/linux/survivor/Upgrade_Hard.html , http://en.tldp.org/HOWTO/Hard-Disk-Upgrade/ and http://mrmazda.no-ip.com/partitioningindex.html should be helpful. -- " It is impossible to rightly govern the world without God and the Bible." George Washington
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://mrmazda.no-ip.com/ -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007/08/24 01:26 (GMT+0800) Zhang Weiwu apparently typed:
在 2007-08-23四的 10:33 -0400,Felix Miata写道:
On 2007/08/23 21:58 (GMT+0800) Zhang Weiwu apparently typed:
After installed additional 320GB harddisk to my desktop computer which used to have OpenSuSE 10.2 installed on single harddisk (80GB), naturally I prefer using the new and fast harddisk for '/' and use the old and slow harddisk for data only (e.g. /var)
So, using fdisk I preserved space for '/' on the new harddisk, and use 'rsync -ravxD' to move all data from old '/' to the new partition on new harddisk. Next step is to make the new harddisk bootable, I did by running: # grub
root (hd1,1) setup (hd1) quit
Then I set hd1 to be the booting harddisk in my BOIS settings. Reboot. I didn't see the usual grub booting process, I see some random ascii code displayed on screen, ending with a smiling face, and stops there.
I thought it should be simple: 1) copy everything to the new partition on new harddisk (I did with rsync) and 2) make it bootable.
Did I miss anything?
I think there may be 3 problems here:
1-I don't see any step that caused hd1,1 to become an active partition 2-I don't see any step that caused hd1 to contain boot code in the MBR 3-setting the BIOS to make hd1 the boot device ahead of hd0 effectively transforms hd1 into hd0, and hd0 into hd1. If you can get so far as a grub prompt, you may need to use the map command as described on http://www.gnu.org/software/grub/manual/grub.html#map
http://www.togaware.com/linux/survivor/Upgrade_Hard.html , http://en.tldp.org/HOWTO/Hard-Disk-Upgrade/ and http://mrmazda.no-ip.com/partitioningindex.html should be helpful.
Thank you all for all the suggestions. From the feedback it seems my logic isn't wrong (rsync files, install grub). Everyone suggest I didn't install grub properly.
I do think I've installed grub on the right harddisk because I. before installing grub I boot with new harddisk would get 'No Operating System' II. but after I installed grub using posted commands I boot with new harddisk and gets random junk ascii code.
I'd think incorrect root setting for grub is not the problem: because grub didn't start to load stage 1 and 1.5 yet (from my understanding of tldp document, 'root' setting of grub affect after 1.5 stage and if it's set wrong I can always correct it from grub menu)
Felix Miata asked if I take any step to make hd1,1 the active partition. I simply didn't because I thought (from my understanding of documents, the problem is often I understand the wrong way..) setting active partition is need only if I use standard MBR and install grub on a partition. In my original post I have installed it in MBR.
I don't know how I managed to misread that way, as clearly 'setup (hd1)' is to the MBR of HD #2. Sorry.
I tried to boot the system using my live CD (I happen to have an GNUStep live CD) and run grub from live CD, do the setup to install grub on hd1. Result is still second (new) harddisk not able to boot (still random ascii code displayed). So I didn't fix this yet.
On looking at this some more I wonder of the partition structure of both original and new disk. If the kernels, stage1, stage1.5 & stage2 are on the first disk partition, then you should have used 'root (hd1,0)' and not 'root (hd1,1)'. What does 'fdisk -l <devicename>' run against each disk report? Is your swap on the first partition of each? Do you have a separate /boot partition on each? -- " It is impossible to rightly govern the world without God and the Bible." George Washington Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
在 2007-08-23四的 16:55 -0400,Felix Miata写道:
On looking at this some more I wonder of the partition structure of both original and new disk. If the kernels, stage1, stage1.5 & stage2 are on the first disk partition, then you should have used 'root (hd1,0)' and not 'root (hd1,1)'. What does 'fdisk -l <devicename>' run against each disk report? Is your swap on the first partition of each? Do you have a separate /boot partition on each?
I always put swap as the first partition because old-school harddisk knowledge says the first partition is the fastest, so my '/' is always on the second partition, and '/home' the third. Both disk share same structure, both have 3 partitions. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-08-24 at 10:44 +0800, Zhang Weiwu wrote:
I always put swap as the first partition because old-school harddisk knowledge says the first partition is the fastest, so my '/' is always on the second partition, and '/home' the third.
I did some measurements on my big HD, and it appears the fastest tracks are around 1/3 of the way. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGzsjDtTMYHG2NR9URApXwAJ0Spay7Ptpz6abBzVXfn/Phuu/ongCfao29 VCVGMin1soLQdFhQFHidhcM= =P4rA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carlos E. R. <robin.listas@telefonica.net> [08-24-07 08:09]: [...]
I did some measurements on my big HD, and it appears the fastest tracks are around 1/3 of the way.
From outside or inside ??
tks, -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2007-08-24 at 08:33 -0400, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@> [08-24-07 08:09]: [...]
I did some measurements on my big HD, and it appears the fastest tracks are around 1/3 of the way.
From outside or inside ??
Who knows? :-) I assume it is from the outside, but in fact we can't really know how the manufacturer distributes the lba to h,t, & s translation. What I did was partition the new hd in 20 or 30 partitions, roughly equal size, and test them all in sequence with hdparm. Then I organized my real partitions based on the results :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGzt2KtTMYHG2NR9URApDhAJ0Y8AccwMO9QD/AeKRW23lt/kOY0gCeOoPM g8FUokWYDuBPQja0IWDhD3s= =vbEU -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Felix Miata
-
Hylton Conacher (ZR1HPC)
-
Jan Engelhardt
-
Patrick Shanahan
-
Zhang Weiwu