Converting Ubuntu[ntfs] partition to ext3 or ext4

Asked by pratheeshps

I have installed Ubuntu 11.04 using the Wubi installer so that it can be uninstalled easily.But I am suffering from low performance [slow start ups,hangs] from ubuntu. Earlier I have installed Ubuntu 11.04 as a separate OS with Windows XP professional-32 bit and experienced smooth performance from Ubuntu.Then it used ext4 partition and now ntfs.

My questions are

1. Will I have to convert my existing ubuntu partition[ntfs] to ext3 or ext4 for improving performance?

2. Earlier,Ubuntu was installed on my D: drive [separate OS] and now on E:drive as a windows program.Will that change be the cause?

3. Which program should I use to conversion & in which Operating system?

Thanks for all who have answers....

Question information

Language:
English Edit question
Status:
Solved
For:
Wubi Edit question
Assignee:
No assignee Edit question
Solved by:
delance
Solved:
Last query:
Last reply:
Revision history for this message
pratheeshps (pratheeshps) said :
#1

U can also mail me the solution to <email address hidden>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Did you try defragging your drives. The fragmentation in Windows will directly affect the speed of Ubuntu.

What do you want to convert? if you did a true install (not Wubi), do you want to keep this or reap the space to use in Windows?

Please clarify the question

Revision history for this message
delance (olivier-delance) said :
#3

Question reassigned to project Wubi. ~bcbc will answer you on point (3)
(1) De-fragmentation could temporarily improve performances. If you run Ubuntu above Wubi, you will face again this situation, as disk will fragment again. Ext4 avoid fragmentation with better algorithm and allocation of "extents", which are made of contiguous disk sectors. Using ext4 implies converting current installation to an Ubuntu alongside Windows. ~bcbc will explain you how to do
(2) Yes, as it means Ubuntu is installed on a NTFS partition instead an ext4.

Revision history for this message
bcbc (bcbc) said :
#4

Wubi is using an ext4 partition, but it's on a 'loop device' which is actually a file stored on the ntfs partition. It is somewhat slower than a normal install, and this gets worse when there is ntfs fragmentation. You can't convert this "in place" to ext4, but you can create an ext4 partition and then migrate the wubi install to it.

Here is the wubi migration guide: http://ubuntuforums.org/showthread.php?t=1519354

So to migrate:
1. create an ext4 partition (and a swap partition if required)
2. boot the wubi install, dowload the migration script and run it as described in the guide.

The migration preserves all the programs/data/settings on your Wubi install - if you have just recently installed and don't have anything to save, then you can just backup whatever you need and install ubuntu direct (not from within windows).

Revision history for this message
pratheeshps (pratheeshps) said :
#5

I want to know that this migration will not affect my pc,ie,Can I uninstall the ubuntu from windows if I do this?

Revision history for this message
pratheeshps (pratheeshps) said :
#6

Converting ntfs to ext4 ,Will I able to access ubuntu partition and uninstall it?

Revision history for this message
pratheeshps (pratheeshps) said :
#7

I also want to add that my installation is only one day before and have no defragmentation

Revision history for this message
pratheeshps (pratheeshps) said :
#8

@actionparsnip (andrew-woodhead666) The drive[E:] in which I installed have zero defragmentation.I donot want to use the partition in windows eventhough I want to uninstall ubuntu if it is too buggy.Earlier I installed Ubuntu 11.04 as a separate OS and now I have used wubi to install Ubuntu.

1. I want to convert my existing Ubuntu partition[ntfs] to ext4 since I foundout that it is too sluggish to do simple tasks.

2. also i don't want to install ubuntu as a separate OS,since the problems faced in booting earlier.

In a single line,"conversion of ubuntu partition to ext4 without any reinstall."

Hope U get it right..

Revision history for this message
bcbc (bcbc) said :
#9

You can't convert a wubi install inplace to ext4... it's already ext4 within a file stored on ntfs.
If you reinstall direct - not with Wubi - you'll get an ext4 partition, but you cannot 'uninstall' this from Windows the same way as Wubi. But it's not exactly complicated to remove an Ubuntu dual boot either.

Personally, I don't think there's such a noticeable difference in performance between Wubi and a normal install - try logging in with the classic desktop - maybe it's just the 3d graphics hit from Unity that's making you suffer - especially if you have no defragmentation to explain it otherwise.

Revision history for this message
delance (olivier-delance) said :
#10

In a terminal, could you run:
   top
and check if a software (like Nautilus) is not taken too much CPU.

Revision history for this message
pratheeshps (pratheeshps) said :
#11

@bcbc ..Thanks for ur reply...But I am using Ubuntu classic theme and noticed lags in my system's performance.Earlier,as a dual boot system,I have installed unity 2d with no performance glitches.Why is there so much difference in performance?

U said Ubuntu removal is not a very complicated process.Earlier I have deleted the ubuntu partition which caused problems.I cannot boot into windows either and also I have to fix MBR to logon to windows partition.Do u know any other less complicated method in removing ubuntu so that I can reinstall ubuntu as a dual boot?

Is there any method to enable windows default menu [no ubuntu bootloader like grub] iwhen installing ubuntu as separate OS/

Revision history for this message
pratheeshps (pratheeshps) said :
#12

@delance (olivier-delance) Firefox is taking 21% of my 512 Mb but no other process is taking too much memory or cpu

Revision history for this message
delance (olivier-delance) said :
#13

"Is there any method to enable windows default menu"
For Ubuntu installed alongside Windows:
If you want to boot windows first but with Grub, have a look at https://answers.launchpad.net/grub/+faq/1676
There is also a way to boot Ubuntu from Windows bootloader, but you will have few support on this way, as most people use Grub instead.
If you have two disks, there is another solution.

Revision history for this message
pratheeshps (pratheeshps) said :
#14

@delance (olivier-delance) Eventhough no process is taking too much memory,and only 1 process

[firefox]running,ubuntu takes abt 430 MB RAM.It also shows 2 zombies which I don't know.Can u help?

Revision history for this message
pratheeshps (pratheeshps) said :
#15

@delance (olivier-delance) yes I want to know the 2nd solution[boot from windows].I have been using windows xp for 5 years and have a little knowledge for ubuntu and other linux versions.I have learned from internet that ubuntu is the most widely supported and user friendly linux distribution.Since I have started using ubuntu,it run pretty much smooth than my windows xp.But since lesser familiar with ubuntu ,I have faced difficulties in installing softwares.

The reason I am asking for windows bootloader is that if I have any issues with ubuntu,I can logon to windows and do a fresh install of ubuntu,otherwise I may be screwedup.

Yes ,I have 2 HD's ,one internal 80 GB and external 250GB.please give issues with windows bootloader for ubuntu if any.

Revision history for this message
Best delance (olivier-delance) said :
#16

The reason I am asking for windows bootloader is that if I have any issues with Ubuntu,I can logon to windows and do a fresh install of Ubuntu,otherwise I may be screwed up.

There are two solutions:
1) Using Grub2 (Ubuntu bootloader)
At installation, you make a small ext4 partition on which you mount folder "/boot". You need less than 1GB. This partition will contains all what is needed to boot ALL OS on your PC, including Windows. If you remove Ubuntu or if Ubuntu get corrupted, you still will be able to boot Windows.
The drawback is you will have to partition manually, which is a little more complicated. But in this case, you could make also a separate "/home" partition which will make your system also easier to reinstall
2) Using BCD (Windows bootloader)
http://blogs.technet.com/b/voy/archive/2006/10/13/how-to-use-windows-vista-s-boot-manager-to-boot-linux.aspx
But I can't help on (2)

About external drive, don't plug it during installation of Ubuntu. You could accidentally put boot on it.

There is a way to have Windows on second drive and Ubuntu on first drive, which prevents modifying Windows boot.
You make Windows (internal disk) second in BIOS boot order, and external one first.
You installed Ubuntu, including its bootloader, on first disk (external one).
During installation, Windows disk is detected but untouched.
In case of problem, you make Windows disk first one in BIOS boot order.
This solution is perfect with two internal disk, but could be more complicated with an external one, as you will be requested to have external disk to run Ubuntu.

Revision history for this message
pratheeshps (pratheeshps) said :
#17

delance (olivier-delance) ..Thanks for ur reply..please also look at #14 and give me a solution

Revision history for this message
bcbc (bcbc) said :
#18

To uninstall an ubuntu non-wubi dual boot:
1. install the windows bootloader ('fixmbr' for xp, or 'bootrec /fixmbr' for vista/7) using a windows repair cd/dvd
2. make sure the computer boots straight to windows when it starts
3. format/remove the ubuntu partition

You can actuall do step 1. from within Ubuntu using lilo's equivalent bootloader as well - it works the same (you get a big warning you can ignore as it refers to booting linux, not windows + confirm that your drive device is /dev/sda):
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Revision history for this message
pratheeshps (pratheeshps) said :
#19

Thanks delance, that solved my question.