Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Installing another OS for a different PC on HDD


  • Please log in to reply
21 replies to this topic

#1 bootlooph

bootlooph

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 03:16 AM

I want to install a third OS on my internal HDD which I want to use in another PC.

I have already installed Windows 7 and 10 on two partitions for PC-1.

But I am not able to install another OS for PC-2 on a 3rd partition by putting the same HDD in PC-2.

Both PCs have different configurations.

 

Without the installation of second OS, booting on PC-2 shows "a disk error has occurred. Press Ctrl+Alt+Del to restart."

 

1. When I tried to boot Windows 10 USB on PC-2, the firstly the Windows Blue Logo screen shows for abnormally long period(5-6 minutes) and then a blue coloured empty screen appears and setup does not start.

 

2. When I try to install Windows 7 USB on PC-2, I am able to start the setup but when I press install now after selecting a newly formatted partition, I get this error- "Windows could not format a partition on disk 0. The error occured while preparing the partition selected for installation. Error code 0x80070057"

 

3. When I try to install Ubuntu 16.04, it installs fine(I did not create a separate /boot partition as the first partition contains PC-1's Windows 10 & /boot partition need to be first) but on booting PC-2, I get this error-"Attempt to read or write outside of disk hd0".

 

I am unable to understand the problem here.

 

Partition Structure:

Partition 1 (Primary): Windows 10 for PC-1

Partition 2 (Primary): Empty Partition

Partition 3 (Primary): Windows 7 for PC-1

Extended Partition:

      Partition 4 (Logical): My stuff

      Partition 5 (Logical): My stuff

 

HDD:

Western Digital Blue 1TB

 

PC-1 configuration:

Gigabyte H61M DS2 DVI

Intel Core i3-3220

RAM 4GB

 

PC-2 configuration:

Asrock H91m S1-Plus

Intel Pentium G3240

RAM 4GB

 

My purpose is to use one HDD which I can take with me to use on two different PCs.



BC AdBot (Login to Remove)

 


#2 Xoctane

Xoctane

  • Members
  • 114 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:07:56 PM

Posted 09 November 2016 - 03:49 AM

You should know that it's highly unlikely that a normal installation of Windows will work on both of your PCs; It will only boot on the one you installed it on. For a portable Windows solution, you should look at the Microsoft's Windows To Go (requires an Windows 10 Enterprise license) or something like this.

 

As to your problem, maybe check if the SATA mode is set to the same thing (IDE, RAID, or AHCI) on both PCs. I don't have any other ideas. Hopefully someone else will be able to help you.



#3 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 03:51 AM

You should know that it's highly unlikely that a normal installation of Windows will work on both of your PCs; It will only boot on the one you installed it on. For a portable Windows solution, you should look at the Microsoft's Windows To Go (requires an Windows 10 Enterprise license) or something like this.

 

As to your problem, maybe check if the SATA mode is set to the same thing (IDE, RAID, or AHCI) on both PCs. I don't have any other ideas. Hopefully someone else will be able to help you.

 

I know that. Thats's the reason I am installing a new installation specific for the different PC. I am not running the same OS on two PCs but two different OS installed separately by putting the hard drive in two different PCs.



#4 Al1000

Al1000

  • Global Moderator
  • 7,198 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:56 PM

Posted 09 November 2016 - 03:51 AM

Unfortunately you can't install an OS on a drive in one computer, and expect it to work in another computer that has different hardware. When you install an OS, you install drivers for the hardware on the system that you install the OS on. So if you then put that drive in another computer with different hardware, the drivers you installed won't work, and the drivers that you need aren't installed.

Regarding Ubuntu, the best you could do is create a "live with persistence" USB. That way you would be booting from the ISO, rather than from an installed system. The ISO contains drivers for different hardware, and tests hardware to see what drivers it needs to use during the boot process, so can be used on different computers.

#5 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 04:05 AM

Unfortunately you can't install an OS on a drive in one computer, and expect it to work in another computer that has different hardware. When you install an OS, you install drivers for the hardware on the system that you install the OS on. So if you then put that drive in another computer with different hardware, the drivers you installed won't work, and the drivers that you need aren't installed.

Regarding Ubuntu, the best you could do is create a "live with persistence" USB. That way you would be booting from the ISO, rather than from an installed system. The ISO contains drivers for different hardware, and tests hardware to see what drivers it needs to use during the boot process, so can be used on different computers.

 

I am installing a whole new OS specific for the 2nd PC. I am not trying to use the older OS in the 2nd PC.



#6 Al1000

Al1000

  • Global Moderator
  • 7,198 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:56 PM

Posted 09 November 2016 - 06:10 AM

It doesn't matter how old or new the OS is. You cannot install an OS on a drive in one pc, then expect it to work in another pc, for the reasons I mentioned.

#7 hamluis

hamluis

    Moderator


  • Moderator
  • 55,257 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:56 AM

Posted 09 November 2016 - 07:09 AM

FWIW:  I think Al is correct...but I think that the real probem lies in the fact that Win 10 is already installed...and you are trying to install an older version of Windows after a more recent version.  Such is known to create problems with attempts to install Windows.

 

The fact that one can install multiple O/Ses on a drive, when done in the proper order...leads me in this direction.  The drivers don't really come into play until the O/S install has been accomplished...and the Windows install may have the correct drivers for that version and install them automatically.

 

Just a guess.

 

Louis


Edited by hamluis, 09 November 2016 - 07:11 AM.


#8 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 08:50 AM

I clarify again that I am not expecting to use the same OS on two computers, rather I am installing a different OS for different PCs.
OK, forget about installing windows, I want to install Ubuntu 16.04 by putting the hard drive in 2nd PC and installing using live USB so that it has 2nd PC's drivers.
But why am I getting the error-"Attempt to read or write outside of disk hd0" ?

Edited by bootlooph, 09 November 2016 - 08:54 AM.


#9 hamluis

hamluis

    Moderator


  • Moderator
  • 55,257 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:56 AM

Posted 09 November 2016 - 09:00 AM

To clarify...any valid Win 7 install disk...will not allow the user to install Win 7 on same hard drive where Win 10 is already installed and detected by installation software.  I believe this is by design.  Every Windows install disk...before attempting to install any version of Windows...will search/check the hard drive involved, looking for other Windows installations.

 

I can't address any linux install since I know nothing about such.

 

FWIW

 

Louis


Edited by hamluis, 09 November 2016 - 09:02 AM.


#10 Al1000

Al1000

  • Global Moderator
  • 7,198 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:56 PM

Posted 09 November 2016 - 09:19 AM

...I want to install Ubuntu 16.04 by putting the hard drive in 2nd PC and installing using live USB so that it has 2nd PC's drivers.
But why am I getting the error-"Attempt to read or write outside of disk hd0" ?


At what stage in the installation process do you get this error?

Are you able to boot your computer with the live Ubuntu USB?

#11 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 09:22 AM

...I want to install Ubuntu 16.04 by putting the hard drive in 2nd PC and installing using live USB so that it has 2nd PC's drivers.
But why am I getting the error-"Attempt to read or write outside of disk hd0" ?

At what stage in the installation process do you get this error?

Are you able to boot your computer with the live Ubuntu USB?
I am able to use the live USB just fine and the Installer installs Ubuntu successfully. But when I try to boot after the installation, I get the said error.

#12 Al1000

Al1000

  • Global Moderator
  • 7,198 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:56 PM

Posted 09 November 2016 - 09:37 AM

Please boot up with the live USB, run the following command in a terminal and paste the output into your next post:
sudo fdisk -l


#13 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 09 November 2016 - 09:54 AM

Here is the output

Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 1.4 GiB, 1459982336 bytes, 2851528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0f590f58

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1  *            63  209873159  209873097 100.1G  7 HPFS/NTFS/exFAT
/dev/sda3        420613830  797787899  377174070 179.9G  7 HPFS/NTFS/exFAT
/dev/sda4        797787962 1953519615 1155731654 551.1G  f W95 Ext'd (LBA)
/dev/sda5        797787964 1217212919  419424956   200G  7 HPFS/NTFS/exFAT
/dev/sda6       1217212983 1953519615  736306633 351.1G  7 HPFS/NTFS/exFAT

Partition 1 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition 5 does not start on physical sector boundary.
Partition 6 does not start on physical sector boundary.


Disk /dev/sdb: 7.5 GiB, 8004304896 bytes, 15633408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x02bcee5a

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 15633407 15631360  7.5G  7 HPFS/NTFS/exFAT


Disk /dev/sdc: 7.6 GiB, 8166703104 bytes, 15950592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x16133599

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 15950591 15948544  7.6G  c W95 FAT32 (LBA)

Also, screenshot of GParted

Attached File  Screenshot from 2016-11-09 14-56-31.png   115.79KB   0 downloads


Edited by bootlooph, 09 November 2016 - 10:00 AM.


#14 Al1000

Al1000

  • Global Moderator
  • 7,198 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:05:56 PM

Posted 09 November 2016 - 11:07 AM

I don't see any Linux partitions on your HDD, so it looks like Ubuntu is not installed.

I suggest starting a thread in the Linux forum where we can advise you regarding installing Ubuntu.

#15 bootlooph

bootlooph
  • Topic Starter

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:26 PM

Posted 10 November 2016 - 06:57 AM

I think I have found the problem. I ran chkdsk on my drives and it fixed some errors. Windows 7 installed successfully.
Just to be safe, I did an extended scan using Western Digital Windows Data Lifeguard Diagnostics and it failed with error 08-"Failed to repair bad sectors" while the S.M.A.R.T. status is "PASSED", showing no bad sectors.
I think its RMA time.
 
Please mark this thread as solved. I couldn't find any button.
 
Mod Edit:  Merged posts - Hamluis.

Edited by hamluis, 10 November 2016 - 07:19 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users