[opensuse] strange problem with assigning partition
Hello: I have a very strange problem with mounting/assigning hard disk partiton. Please be patient, this will be a little bit verbous. I had a working openSUSE 11.2 system on a computer and I wanted to install it on another computer as well. Instead of starting a DVD installation I have copied (using rsync) the working 11.2 system's whole directory structure to the first partiton of a new hard disk. I used this hard disk in the new computer. I could use 11.2 install DVD to make 11.2 bootable (by grub) in the new computer. After this I could start the new computer with no apparent problems. The problem arose when I wanted to change grub for lilo on the MBR and lilo could not find the disk/partition. According to df -h the root partition is located on /dev/sda2; however the hard disk has only one partition, a primary partition, normally should be /dev/sda1. I don't understand why it is seen by 11.2 as /dev/sda2. cfdisk and fdisk show the partiton table as normal, that is /dev/sda1 is shown. If I mount /dev/sda1 to eg /mnt than it is clear that / (dev/sda2) and /mnt (dev/sda1) are the same directory structures. So it looks like a partiton assignement issue. Tha hard disk is a Samsung 500GB SATA hard disk, and it is the only hard disk installed in the computer. The BIOS shows this hard disk as 3rd master (first and second masters would be IDE drives). An other symptom was that the system messed up my USB flashdrive's directory structure/files. Except of these issues 11.2 it runs without visible errors, I can use the network, graphical window. Can it be that since this system was originally installed on other hardware, during boot a wrong driver is loaded which causes these sypmtomps? Any hint? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010/01/07 08:12 (GMT-0500) Istvan Gabor composed:
I have a very strange problem with mounting/assigning hard disk partiton.... According to df -h the root partition is located on /dev/sda2; however the hard disk has only one partition, a primary partition, normally should be /dev/sda1. I don't understand why it is seen by 11.2 as /dev/sda2. cfdisk and fdisk show the partiton table as normal, that is /dev/sda1 is shown. If I mount /dev/sda1 to eg /mnt than it is clear that / (dev/sda2) and /mnt (dev/sda1) are the same directory structures.
Open fdisk, then do: m x d q The last 5 lines of output before q should very roughly resemble the following: 0x1B0: 80 01 0x1C0: 01 00 83 FE 3F 19 3F 00 00 00 5B 5F 06 00 00 00 0x1D0: 01 1A 07 FE 7F 4B 9A 5F 06 00 B2 02 4B 00 00 00 0x1E0: 41 4C 16 FE 7F 6A 4C 62 51 00 5F 99 07 00 00 00 0x1F0: 41 6B 05 FE FF FF AB FB 58 00 16 DB E9 24 That's the MBR partition table of my openSUSE server's sda. sda1 begins at 0x1BE, sda2 begins at 0x1CE, sda3 begins at 0x1DE, and sda4 begins at 0x1EE. Because of the way partitioning was done on the clone disk, it may be that its sda1 is using the table entry that starts at address 0x1CE instead of the one at 0x1BE. IOW, you may see all 00's until byte 0x1CE, where non-00's begin, instead of seeing them begin at 0x1BE. To confirm, you should see "83" (the type for a normal Linux native partition) at 0x1C2, not at 0x1D2. If that's the case, the partition table should be rebuilt to move it from 0x1CE to 0x1BE. -- "Our Constitution was made only for a moral and religious people. It is wholly inadequate to the government of any other." John Adams, 2nd US President Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2010-01-07 at 14:12 +0100, Istvan Gabor wrote:
Hello:
I have a very strange problem with mounting/assigning hard disk partiton. Please be patient, this will be a little bit verbous.
I had a working openSUSE 11.2 system on a computer and I wanted to install it on another computer as well.
Instead of starting a DVD installation I have copied (using rsync) the working 11.2 system's whole directory structure to the first partiton of a new hard disk. I used this hard disk in the new computer. I could use 11.2 install DVD to make 11.2 bootable (by grub) in the new computer. After this I could start the new computer with no apparent problems. The problem arose when I wanted to change grub for lilo on the MBR and lilo could not find the disk/partition. According to df -h the root partition is located on /dev/sda2; however the hard disk has only one partition, a primary partition, normally should be /dev/sda1. I don't understand why it is seen by 11.2 as /dev/sda2.
That "normally" needs not be. Run "fdisk -l /dev/sda", and then "file -s /dev/sda?". Copy the output here. And perhaps "mount" and "df".
cfdisk and fdisk show the partiton table as normal, that is /dev/sda1 is shown. If I mount /dev/sda1 to eg /mnt than it is clear that / (dev/sda2) and /mnt (dev/sda1) are the same directory structures. So it looks like a partiton assignement issue. Tha hard disk is a Samsung 500GB SATA hard disk, and it is the only hard disk installed in the computer. The BIOS shows this hard disk as 3rd master (first and second masters would be IDE drives).
An other symptom was that the system messed up my USB flashdrive's directory structure/files.
Except of these issues 11.2 it runs without visible errors, I can use the network, graphical window.
Can it be that since this system was originally installed on other hardware, during boot a wrong driver is loaded which causes these sypmtomps?
No. Perhaps if you modify the partitions, and do not load the new table, or loading fails. This needs a reboot. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAktGBxMACgkQtTMYHG2NR9UZggCfSPjUTclVv9qKLLSHXBU9PvHG Lz8AmwfD5k7yLX81Efy97CIonU56JciF =8YOt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Felix Miata
-
Istvan Gabor