Author Topic: Install problem on HP laptop (SOLVED)  (Read 1468 times)

Offline hightower

  • Full Member
  • ***
  • Posts: 96
Install problem on HP laptop (SOLVED)
« on: January 22, 2012, 08:04:47 PM »
I want to install PClinuxOS to a new laptop, HP 2000-299WM that came with Win 7.  I need to dual boot this machine but HP has used up all four primary partitions.  As a temporary measure, I installed PClinux onto a USB backup drive and can boot easily.  But this isn't desirable, and the backup drive may not stand up to this kind of useage.  Rather than return the machine, I'd like to find a work around, if possible.  

As for the internal drive partitions, two had letters: C (284GB NTFS) contains Win 7; D (19GB NTFS) contains Recovery.  The two unlettered partitions are labeled: System (199MB NTFS); HP_Tools (103MB FAT32).  The System partition is the active partition.  Below is a snapshot:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x7b0cbeb5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      409599      203776    7  HPFS/NTFS
/dev/sda2          409600   596443135   298016768    7  HPFS/NTFS
/dev/sda3       596445184   624928767    14241792    7  HPFS/NTFS
/dev/sda4       624928768   625140399      105816    c  W95 FAT32 (LBA)

Although I've dual-booted PClinux several times before with XP and Win 7, this is a first.  I've always created /root, home and swap partitions but never paid attention to them being primary or extended, and how would I know?  I suppose /root must be primary for booting purposes while home and swap may be extended?  

Your guidance would be appreciated, even if it is to return this machine for a refund.  

Many thanks,
John
« Last Edit: January 27, 2012, 06:07:29 PM by hightower »
hightower
--------------------------------------------------------------------------------------------------------

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11541
  • ----IOFLU----
Re: Install problem on HP laptop.
« Reply #1 on: January 22, 2012, 09:52:51 PM »
I want to install PClinuxOS to a new laptop, HP 2000-299WM that came with Win 7.  I need to dual boot this machine but HP has used up all four primary partitions.  As a temporary measure, I installed PClinux onto a USB backup drive and can boot easily.  But this isn't desirable, and the backup drive may not stand up to this kind of useage.  Rather than return the machine, I'd like to find a work around, if possible. 

As for the internal drive partitions, two had letters: C (284GB NTFS) contains Win 7; D (19GB NTFS) contains Recovery.  The two unlettered partitions are labeled: System (199MB NTFS); HP_Tools (103MB FAT32).  The System partition is the active partition.  Below is a snapshot:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x7b0cbeb5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      409599      203776    7  HPFS/NTFS
/dev/sda2          409600   596443135   298016768    7  HPFS/NTFS
/dev/sda3       596445184   624928767    14241792    7  HPFS/NTFS
/dev/sda4       624928768   625140399      105816    c  W95 FAT32 (LBA)

Although I've dual-booted PClinux several times before with XP and Win 7, this is a first.  I've always created /root, home and swap partitions but never paid attention to them being primary or extended, and how would I know?  I suppose /root must be primary for booting purposes while home and swap may be extended?   

Your guidance would be appreciated, even if it is to return this machine for a refund. 

Many thanks,
John


Understand that I don't run Windows, so what I say here comes from past experience from back in the Win2K days.

Windows, since Win2k, has been able to be installed on a logical partition, as long as the ntldr and boot.ini were on an active primary partition. Back then I dual booted Win98 on an active primary, and Win2K on a logical partition, with its ntldr and boot.ini installed on the Win98 active primary partition. Win7 doesn't use a boot.ini anymore, but the structural layout seems to be the same, with the System partition acting as the active primary partition holding the actual booting software, by whatever name it's now called. That being the case, you should be able to first, shrink the C:\ drive (/dev/sda2) to clear enough free space for a Linux installation, then delete that partition, taking note of the start and end sectors as they exist after the shrinking. You would then create an extended partition using all of the free space on the hard drive, and recreate the resized C:\ drive as a logical partition (/dev/sda5) using the start and end sectors that you previously took note of. The remaining free space would then be able to be partitioned as you wish for the Linux installation.

I know that sounds flaky, but the partition and the filesystem it contains, are two separate entities so the partition can be deleted and recreated without any damage to the filesystem within, as long as the same start and end sectors are maintained. You may have to mount the System partition and edit one of the files within to direct the loader to the new /dev/sda5 logical partition, just as the old boot.ini file needed to be edited on the older Win systems under similar circumstances. Were I you, I'd investigate what files are actually in the System partition, and see what their contents might be, before doing anything else. Look for a text file that refers to the present Win C:\ drive. That would be the one that would need to be edited.

Linux doesn't care whether it's on a primary or logical partition, it will boot with equal ease from either. The / partition that my presently running installation uses is /dev/sda9, with other Linux systems installed on /dev/sda3, /dev/sda7, /dev/sda8, /dev/sda14, /dev/sda15, /dev/sda16, and /dev/sda17.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline hightower

  • Full Member
  • ***
  • Posts: 96
Re: Install problem on HP laptop.
« Reply #2 on: January 23, 2012, 04:49:40 AM »
Thank you op, I'll take your advise and look at the files carefully before deciding. 
hightower
--------------------------------------------------------------------------------------------------------

Offline rick0612

  • Sr. Member
  • ****
  • Posts: 258
  • The only dumb question is the one not asked.
Re: Install problem on HP laptop.
« Reply #3 on: January 23, 2012, 07:11:30 AM »
Hello,

I have an HP laptop as well. You should have a utility in the Windows menu that will create recovery disks from the recovery partition. Once that is done you can delete the recovery partition. Research HP_Tools to see about that one. Then do the shrink Windows partition, etc.

Hope this helps

Rick.
Packaging rig: Averatec 2573 /12.1" screen /2.0GHZ /3GB RAM /120GB SSD /Minime 2012.12

Daily rig: Alienware X51 /23" monitor /Windows 7 host /KDE VBox client

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Install problem on HP laptop.
« Reply #4 on: January 23, 2012, 08:08:11 AM »
I have managed to do a similar thing on my HP netbook. I will try to dig up the post if possible.
-SS.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Install problem on HP laptop.
« Reply #5 on: January 23, 2012, 08:37:17 AM »
Here is that post. If you need any clarification please ask.

http://www.pclinuxos.com/forum/index.php/topic,82833.0.html
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1588
Re: Install problem on HP laptop.
« Reply #6 on: January 23, 2012, 11:00:52 AM »
I used EaseUS and converted one of my Primary partitions to a logical partition.
http://www.partition-tool.com/personal.htm

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: Install problem on HP laptop.
« Reply #7 on: January 24, 2012, 12:01:30 AM »
EaseUS is really superb. I think I might have used their 8 release. Have not had to use it since then.

I wholeheartedly recommend it.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline hightower

  • Full Member
  • ***
  • Posts: 96
Re: Install problem on HP laptop.
« Reply #8 on: January 24, 2012, 08:35:40 PM »
Thanks everyone for your sound advise.  In Windows I downloaded Easeus and successfully changed the Recovery partition from primary to logical, and carved out space from the C drive.  Then Pclinux easily installed as normal.  Also, for the first time in a Pclinux installation I saw the option of making /root /home and /swap as primary or logical.  It probably was always there, I just never saw it before.  I thought by changing Recovery Partition rather than deleting it, Windows might still be able to access it, but I don't know.    

Both operating systems boot properly but fdisk shows that the Partition table isn't in disk order.  I remember op had some really good posts a couple of years ago on that topic.  When I get time this coming weekend I'll look for them and see if there is anything I can do to fix.  

PCLinux and this forum are really the best.  Again, many thanks for all your help.  


[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x7b0cbeb5

   Device Boot      Start         End            Blocks       Id    System
/dev/sda1   *        2048      409599         203776       7    HPFS/NTFS
/dev/sda2          409600     307612619   153601510  7    HPFS/NTFS
/dev/sda3       624928768   625140399   105816        c    W95 FAT32 (LBA)
/dev/sda4       307612620   624928767   158658074   f    W95 Ext'd (LBA)
/dev/sda5       307612683   358876034   25631676   83    Linux
/dev/sda6       596445184   624928767   14241792    7    HPFS/NTFS
/dev/sda7       358876098   371149694   6136798+  82    Linux swap / Solaris
/dev/sda8       371149758   412099379   20474811   83   Linux
/dev/sda9       412099443   596429189    92164873+  7   HPFS/NTFS

Partition table entries are not in disk order
[root@localhost ~]#
« Last Edit: January 25, 2012, 05:48:06 AM by hightower »
hightower
--------------------------------------------------------------------------------------------------------

Offline hightower

  • Full Member
  • ***
  • Posts: 96
Re: Install problem on HP laptop.
« Reply #9 on: January 27, 2012, 06:06:25 PM »
Got time today to address the inconsistent partition table with the disk order that resulted from a poorly thought out install on my part.  But in the process of modifying partitions, I goofed and made Windows unbootable.  I should have just tried fixing Grub, because I was getting a Grub error, but decided instead to reinstall Windows. 

I should have known better than to think that the Windows re-installation would go easily. It took three re-installs and many hours before Windows would boot and never once did it give a reason for the failures!  If it weren't for my annual need of Windows to do my taxes, I'd wipe the drive clean of that monstrosity forever. 


During the installation, Windows deleted the Recovery Partition since obviously I had burned Recovery discs and was using them.  This resulted in an install with three primary partitions: System, C:, and HP_Tools.  All the real-estate was in the middle (C:) partition.  I then used EASEUS to re-size (C:) and move the location of the (HP_Tools) so the unallocated space was at the end of the disc.  EASEUS is an easy to use tool to re-size and move partitions while in Windows and before Grub is installed.  They warn not to use if they see that Grub is installed.

That resolved the partition table/disk order issue.  PCLinux installed flawlessly as usual, and in less time than it took to boil a cup of water.  I will mark this thread (solved).   Again, thanks to all for the help.

[root@localhost ~]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x74bf73d0

   Device Boot       Start         End            Blocks          Id     System
/dev/sda1   *           2048      409599      203776          7    HPFS/NTFS
/dev/sda2             409600   256413464   128001932+  7    HPFS/NTFS
/dev/sda3       256413465   256638374      112455       c     W95 FAT32 (LBA)
/dev/sda4       256638375   625137344   184249485     f     W95 Ext'd (LBA)
/dev/sda5       256638438   461434994   102398278+   7    HPFS/NTFS
/dev/sda6       461435058   504440999    21502971      83  Linux
/dev/sda7       504441063   512618084     4088511      82  Linux swap / Solaris
/dev/sda8       512618148   625137344    56259598+   83  Linux
[root@localhost ~]#
hightower
--------------------------------------------------------------------------------------------------------