LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 12-22-2006, 04:29 PM   #1
drbongo
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
Sony Vaio Ubuntu XP dual boot?


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 ?

Any advice would be gratefully received.

drbongo
 
Old 12-23-2006, 09:57 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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).
 
Old 12-23-2006, 11:03 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
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.
 
Old 12-24-2006, 04:29 PM   #4
drbongo
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the encouraging advice - I hope to give it a try after Christmas! I will post here if it goes smoothly or even it all goes horribly wrong!

drbongo
 
Old 03-13-2007, 07:01 AM   #5
drbongo
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
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)

drbongo
 
Old 03-15-2007, 06:41 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
the install worked fine
Well done!
Quote:
I now just have to sort out some of the function keys e.g. brightness control etc
This isn't too difficult: A google for fsfn and sonypi will probably get you started, and here's a "work in progress" page:

http://ubuntufs.wordpress.com/2007/0...torial-part-3/
 
Old 03-16-2007, 04:36 AM   #7
drbongo
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

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

I found this at:

http://ubuntuforums.org/showthread.php?t=305141

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.

Thanks again for the help!

drbongo
 
Old 03-16-2007, 01:02 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Drbongo,

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).

Thanks for the interesting hal link though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB boot on Sony Vaio VGN-FE11H abisko00 Linux - Laptop and Netbook 1 10-12-2006 02:41 AM
Sony Vaio wont boot after suse 10.1 install clueless? Linux - Laptop and Netbook 3 09-12-2006 10:11 AM
Sony Vaio VGN-B1XP / sony driver question kentri9 Linux - Laptop and Netbook 0 12-27-2004 11:00 AM
help me install linux on sony sony vaio pcg-r505gl heina Linux - Newbie 4 10-10-2004 10:36 PM
Sony VAIO/XP BDW Linux - Newbie 0 06-01-2003 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration