10

I received a new Lenovo T420 laptop with Windows 7.

The disk now contains:

  • a hidden SYSTEM_DRV boot partition (1.17GB, 400MB used). I'm guessing this is the UEFI partition; the laptop comes with UEFI instead of a legacy BIOS. This partition is NTFS formatted, and I suppose contains the Windows Boot Manager and other useful boot things (but I'm not certain, so if anyone knows if this can/should be deleted say so)
  • the Windows 7 partition
  • a rescue partition

As I've come to understand, the BIOS is UEFI but MBR is used, not GPT.

This is a follow-up on my previous question about doing the same thing using GPT partitioning - I decided not to go on with that because it's overly complicated at the moment and there are a couple of serious bugs in Ubuntu running around.

How can I install Ubuntu on this machine (using the usual MBR partitioning), and how will that installation affect the Windows installation, taking into consideration the UEFI partition and the boot manager it contains?

If anyone has looked into such issues (related to UEFI) please advise - maybe there's something I don't understand.

UPDATE 1: My guess that this SYSTEM_DRV partition is the UEFI partition may be completely wrong of course, looking into that.. It may be something else, something lenovo-related like the recovery partition.

UPDATE 2: I opened the SYSTEM_DRV partition using a Linux boot cd, and there are several files inside. On the root of the drive there's a file 'sdrive' which has this as content:

"Lenovo Service Partition Version 1.0.0.2009"

There are also boot folders, with a Windows Boot Manager. What's going on?

I'm starting to thing this is a separate Windows installation that boots when you press the ThinkVantage button to do some rescue and recovery operations. I still don't know how this is related to the "Lenovo Recovery" partition (if it is).

2 Answers 2

6

Your "hidden" 1GiB partition is a Microsoft System Reserved partition. This is a Poor Man's equivalent to a system partition. It isn't a true system partition, and it isn't an EFI System Partition. The boot manager that it contains is the Microsoft Boot Manager. However it is your system partition. Delete it and your machine will be unbootable.

As described, there's no indication that your laptop actually has EFI anything. It doesn't have an EFI System Partition, doesn't have an EFI partition table, and isn't bootstrapping in the EFI way. From your description, it is bootstrapping in the old PC/AT way, with the Microsoft System Reserved partition as the "startable"/"active" partition, whose VBR invokes Microsoft Boot Manager.

(Checking with the IBM support WWW pages, it turns out that this is indeed the case. Lenovo Thinkpads with Windows 7 are installed with the firmware configured to bootstrap in the old PC/AT way.)

As such, installing Ubuntu is done just as one would do on an old PC/AT compatible machine:

  1. Make a boot volume for Ubuntu, moving and resizing partitions to make room using your favourite tools.
  2. Install Ubuntu, and its boot loader (GRUB2) into that boot volume. Just boot from the installation disc, and point the installation utility when required at the boot volume that you made for Ubuntu.
  3. Add en entry for that boot volume to the Microsoft Boot Manager menu using the bcdedit tool. Cyril Voisin describes one way to do this, that needs to make a copy of the Ubuntu boot volume's Volume Boot Record in a file on your system volume; and so must be done after installing Ubuntu's boot loader.

You don't need to do anything with respect to the Poor Man's system volume. It remains the "startable"/"active" partition throughout. You don't need to do anything with the Master Boot Record, either. Do not (allow Ubuntu to) muck around with the MBR.

4
  • Thank you so much @JdeBP! This is an awesome answer. What I was missing was the third point there about the bcdedit tool. But there's another thing, to further complicate things. It seems that both the windows partition and the system_drv partition contain boot managers, and the system_drv partition actually has a separate windows-like environment, that is called ThinkVantage by lenovo. It is accessed by pressing a key during boot, and offers restore & repair options (using data from the third partition!). So.. Which boot manager should I edit? :>
    – nick_uk
    Jul 26, 2011 at 14:17
  • I'm guessing the boot manager present in the windows partition, and leave the system_drv one as is. And of course don't mess with the mbr. Just have the windows boot manager redirect to grub to boot ubuntu. (I only said about EFI stuff because its a UEFI bios, so in theory could work with EFI bootstrapping, and I got confused because of the MBR usage (that was my previous question here: superuser.com/questions/315046/… but I abandoned that idea).
    – nick_uk
    Jul 26, 2011 at 14:18
  • Also, reading through your links, I'm not quite sure its a poor man's system partition after all, because the machine has EFI firmware, I understand the poor mans partition is for non-efi machines. It's probably something like a second windows installation.
    – nick_uk
    Jul 26, 2011 at 14:23
  • disregard most of my previous comments, I was obviously unaware of the way Windows 7 works with the different system and boot partitions. Reading about all that now, thanks for pointing me to the right direction
    – nick_uk
    Jul 26, 2011 at 15:46
0

There is something called wubi that is a ubuntu installer though windows. Basically, you download it, and it installs the whole OS, including adding it to the MBR, without you having to write a CD or anything.

8
  • I know about that, this is not what I want really. This installs ubuntu like a windows program on the windows drive, that's not something I want.
    – nick_uk
    Jul 26, 2011 at 12:12
  • No, it installs the OS, and can create its own partition etc.
    – soandos
    Jul 26, 2011 at 12:14
  • 2
    no, wubi installs ubuntu inside windows. To be more exact, it creates an image file c:\ubuntu\disks\root.disk on the windows drive which is loop-mounted to appear as a separate partition and an entry is added in the partition table (MBR). This is far from what I need, it's an ugly hack really for novice users. I'm using solely linux for over 10 years, but this time I just thought it would be a good idea to keep the windows7 installation around (I usually don't use windows at all).
    – nick_uk
    Jul 26, 2011 at 12:19
  • And you can't install linux the "normal" way? i.e. burn a disk etc? Or you dont like grub?
    – soandos
    Jul 26, 2011 at 12:21
  • That's what I'm trying to figure out before trying, because of the UEFI bios which complicates things, and this extra SYSTEM_DRV partition I'm talking about. It's not that straightforward.
    – nick_uk
    Jul 26, 2011 at 12:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .