Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to install Ubuntu 6.10 on a Sony Vaio TX3XP as a dual boot install. This would not usually be a problem but in this case the Sony Vaio has an unusual partition setup and as this is a work laptop I cannot afford to screw up the original Sony install. There are three partitions on the drive: A sony backup partition (which is invisible in windows), a C: drive with the XP operating system on and a D: drive for files etc. In linux they are labelled as Hda1, Hda2 and Hda5. The second drive (Hda2) is the boot drive! I want to resize drive D: (hda5) and add a new partition for Ubuntu (Hda6). This is not a problem - but I am not sure where to install the Grub bootloader - by default Ubuntu wants to put it on Hd0 but the boot drive is Hda2 - so where do I put the bootloader so that I get a choice of ubuntu or windows when I boot? On Hd0 or Hda2 ?
I have done this on a similar vaio, it works just fine:
Let (k)ubuntu resize hda6 to make a root and swap partitions.
kubuntu didn't give me any choice about installing grub when I installed 6.06 - it just went ahead and put it on the MBR, but it worked fine & I have never looked back. Yes, I still get a choice for windows, but I never use it after testing it once, just to see if it would load (it did).
Every partition has a boot sector. Thus a boot loader can be installed in any partition, except swap, without affecting the content inside.
If you put Linux boot loader in (hd0) this is for the whole disk and it means the MBR.
If you put a Linux boot loader inside its root partition (i.e. not the MBR) then it can only be booted by "another" boot loader controlling the MBR.
In your case the simplest is to put it in the MBR.
A stand alone XP is booted by MS version of the MBR but that can be re-generated by the XP or any Win2k installation CD. By installing a Linux it is standard to allow Linux's boot loader to "overwrite" whatever in the MBR which is only 512 bytes.
In a standard Kubuntu installation its Grub should automatically arrange to dual boot both systems. If it doesn't a lot of us here can fix it.
All boot loader's MBR portion can be regenerated by simple commands so don't lose sleep for losing any of them. Even for a laptop both Xp and Linux can be booted without the use of the MBR so don't let it scare you.
I can report back that the install worked fine although I had to partition the disk manually as there where already three partitions on the disk and the default partition setup did not give me enough space to install. I installed Ubuntu in the normal way and when the partition options where shown I edited it manually resizing the Windows D: drive to 1Gb(hda5) and creating a 26Gb+ ext3 logical partition for Ubunutu (hda4)and a 1Gb+ primary partition for swap(hda6). Everything else went fine - I now just have to sort out some of the function keys e.g. brightness control etc. Thanks for the help and encouragement.(hda1=recovery partition, hda2=Windows install,hda3=Extended partition)
Thanks - I found a simple way to activate the brightness buttons/controls in Ubuntu on the TX3XP:
1- Open a Terminal
2- Type: sudo gedit /usr/share/hal/scripts/hal-system-lcd-get-brightness
3- Change /bin/sh for /bin/bash on the first line and save
4- Type: sudo gedit /usr/share/hal/scripts/hal-system-lcd-set-brightness
5- Change /bin/sh for /bin/bash on the first line and save
This was the only thing I couldn't do, I can control the volume from the on screen slider and this means I can do what I want - I am not desperate for the other function buttons (CD eject would be handy). I will check out your help file again in a few weeks to see whether you have removed the 'testing' warning.
That's interesting - I didn't know about hal & brightness (I'm running 6.06.1).
I have my brightness & volume buttons working with sonypi & fsfn, so I am happy.
"Suspend" seemed to work when my battery went flat about a month ago, when the power was restored, everything came right back, no need even to login, but I can't be bothered with the S1 and S2 buttons that are supposed to do this on demand (rather than as a low-power panic).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.