moving root.disk from C: to D:

Asked by Doug Price

To learn UBUNTU, I bought a used laptop with Win XP and Ububtu 11.10 preinstalled.

The system has a 40GB hard disk, with 3 partitions: 8.2GB, 760MB, and 28.29GB (Windows NTFS).

In the Wondows partition, there is a Ububtu directory with file Ububtu/disks/root.disk which is 18GB. So Ubuntu is taking up 26 of my 40 GB, Windows is consuming 10GB, and there's only 3GB free.

I bought a second 100GB disk and formatted it as NTFS.

Is there a way to move the 18GB root.disk file from C: to D: since both are under NTFS? Ho would I tell Ubuntu where to find its root.disk file?

Or should I just uninstall Ubuntu and reinstall it to the second drive? If so, how can I recover the 8.2GB partition on the first disk without losing the information in the Windows partition?

All suggestions welcome.

Question information

Language:
English Edit question
Status:
Answered
For:
Wubi Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
bcbc (bcbc) said :
#2

Please post the result of the http://bootinfoscript.sourceforge.net/ to http://pastebin.ubuntu.com/ and return here with the pastebin address.

It's not clear why you'd have an 8GB ubuntu partition as well as an 18GB wubi ubuntu disk and how you are using these together. Or you could explain that and then I'll tell you how to move it. Don't use the link from actionparsnip.

Revision history for this message
Doug Price (dougprice) said :
#3

Not clear to me either -- the system was preconfigured before I got it.
Pastebin address 866903
Thanks,
Doug

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

It doesn't look like the Wubi install is working:
sda1/Wubi: _____________________________________________________________________

    File system:
    Boot sector type: Unknown
    Boot sector info:
    Mounting failed: mount: unknown filesystem type ''

So, I'd assume you're booting the 8GB 11.10 install and aren't using that 18GB root.disk at all. Please confirm this by booting Ubuntu and then running:
df -h

That reports file system space usage but also helps to show what is mounted and where it is mounted. If you see something like:
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 18G 8.4G 5.9G 59% /
...
then you'll be running Wubi.

Otherwise it will report:
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 8G 5.4G 2.1G 59% /

The other way to tell is when you boot the normal install you'll see:
1. BIOS
2. Grub menu
3.a. If you pick Ubuntu it boots Ubuntu (this isn't the Wubi install)
3.b. If you pick Windows, it shows another menu with Windows and Ubuntu
3.b.i if you pick Windows, it boots windows
3.b.ii if you pick Ubuntu it will try to boot that Wubi install (and probably fail based on the bootinfoscript result).

Once you've confirmed that the Wubi install isn't working (and I assume there's no data of value on there) you can uninstall it by booting Windows and going to the control panel, Add/Remove programs, and clicking on the "Ubuntu" entry. (This will delete that 18GB root.disk and everything on it).

If you want to move your small Ubuntu install on /dev/sda5 you can do that, or maybe you just want to do a fresh install on your other drive. Let me know what you want and I'll give you some options.

PS if you think there is something of value on that Wubi install I can give advice on how to recover it .

Revision history for this message
Doug Price (dougprice) said :
#5

The result of the df -h is the "otherwise it will report":
/dev/sda5 8.1GB used 2.4 GB avail 5.3GB Use 32% mounted on /

I then rebooted into Win XP (dual boot) and changed the name of the Ubuntu directory
I then rebooted into Ubuntu and it came up fine.

I'm thinking that I can Remove the Ubuntu program in windows and recover the 18GB file.

The second disk, 100GB with 1 NTFS partition formatted under Win XP, shows up as /sdb

Can I store files on this disk while running Ubuntu (does it play nice with Windows and not overwrite).
I'd like to download the software development environment for Ubuntu and store it on the 100 GB disk.

Thanks for all your help. Doug

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

Okay, rename the folder back to \ubuntu in Windows before uninstalling as
it looks for that directory.

There is no problem sharing 'data' on an ntfs partition with Windows and
Ubuntu. The only issue you might have, is if you need the files to have
special permissions (and be owned by you) e.g. to execute programs. You can
masquerade permissions on NTFS (they are set at mount time and apply to all
files): http://ubuntuforums.org/showthread.php?t=1604251

However, having only 8GB isn't very much for Ubuntu. You might just want to
do a fresh Ubuntu install on about 30-40GB of that partition. Then share
the rest as NTFS. Just an idea... you need to do what suits you and I'm not
sure how much space you'll need (but you can't e.g. install your programs
on the NTFS partition).

If you still want to move your current Ubuntu install from the 8GB
partition to a new bigger partition on /dev/sdb then there are various
ways. Just let me know what you're thinking and I'll try to help.

Revision history for this message
Doug Price (dougprice) said :
#7

I bought the laptop (ebay special) for 4 reasons:
a. run some Win XP programs
b. learn Ubuntu (I worked with SunOS and VxWorks in years past, but I'm really rusty on Unix)
c. install the development tools for developing C programs
d. experiment on my home network with custom net servers (DNS, mail, web server, etc.)

My only constraint is I can't mess up the existing Windows install.
The 100GB disk is new, nothing on it.

When I uninstall Ubuntu from Windows I regain use of 18GB -- plenty for my needs under Windows.

I could dedicate the 100GB drive to Ubuntu including software development tools, files, etc.

Am I better off starting from scratch and doing a fresh install of Ubuntu to the 100GB dirve?
Do I just download a fresh copy, or move it from the 8GB partition on my current 40GB drive?

Do I need to reformat the 100GB drive first (currently NTFS), and if so how?

Do I then reformat the 8GB partition into a D: drive under Windows.
(I assume I can't combine partitions without having to reformat C: which would wipe Windows and other files).

Appreciate the advice.

-----Original Message-----
From: bcbc <email address hidden>
To: dougprice <email address hidden>
Sent: Sun, Mar 4, 2012 12:00 am
Subject: Re: [Question #189390]: moving root.disk from C: to D:

Your question #189390 on Wubi changed:
ttps://answers.launchpad.net/wubi/+question/189390
    Status: Open => Answered
bcbc proposed the following answer:
kay, rename the folder back to \ubuntu in Windows before uninstalling as
t looks for that directory.
There is no problem sharing 'data' on an ntfs partition with Windows and
buntu. The only issue you might have, is if you need the files to have
pecial permissions (and be owned by you) e.g. to execute programs. You can
asquerade permissions on NTFS (they are set at mount time and apply to all
iles): http://ubuntuforums.org/showthread.php?t=1604251
However, having only 8GB isn't very much for Ubuntu. You might just want to
o a fresh Ubuntu install on about 30-40GB of that partition. Then share
he rest as NTFS. Just an idea... you need to do what suits you and I'm not
ure how much space you'll need (but you can't e.g. install your programs
n the NTFS partition).
If you still want to move your current Ubuntu install from the 8GB
artition to a new bigger partition on /dev/sdb then there are various
ays. Just let me know what you're thinking and I'll try to help.
--
f this answers your question, please go to the following page to let us
now that it is solved:
ttps://answers.launchpad.net/wubi/+question/189390/+confirm?answer_id=5
If you still need help, you can reply to this email or go to the
ollowing page to enter your feedback:
ttps://answers.launchpad.net/wubi/+question/189390
You received this question notification because you asked the question.

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

You have to create partitions to install Ubuntu. You can do it manually, or
you can do it automatically. To do it manually, refer to this:
http://members.iinet.net.au/~herman546/p22.html (it's written for release
10.10 but it's pretty much the same on 11.10). Or you can boot from an
Ubuntu CD or USB and point it at /dev/sdb and see if you can split it how
you want. Make sure you install the bootloader on /dev/sda (not /dev/sdb)
so that when you remove the Ubuntu on /dev/sda5 your computer doesn't stop
booting (your bootloader is dependent on files located in /dev/sda5 at the
moment - and you're wanting to replace that with an NTFS partition).

I do have a script that will move an ubuntu install and make it bootable
but I don't know how suitable this is for you because it doesn't seem like
you're particularly attached to the current install and also that script
requires you to manually create the partitions beforehand (and you may
prefer to have the installer do that automatically.) Have a look at
http://www.ubuntu.com/download/ubuntu/download (go to the part where it
says "Install" and click on Show me How). That should be all you need to do.

Feel free to ask more questions if you have any, and I'll try to answer
them.

Revision history for this message
Doug Price (dougprice) said :
#9

OK, I uninstalled the wubi copy of Ubuntu using add/remove programs, and recovered the space on my windows c: drive.
Thank you for diagnosing this -- my Win XP side is now much more usable.

I downloaded a fresh copy of Ubuntu and created the bootable USB flash drive.

Before I reinstall it, I have one question:
Both systems (Win XP and Ubuntu) seem to work fine. I believe I can mount the 100GB drive (single partition, formatted as NTFS) and use it to store files from the Ubuntu side, and share this file system with Win XP (as I boot back and forth between OSs). I should be able to download the development tools (compiler,etc.) and use the 2nd disk to store my files.

What would I gain by installing Ubuntu to the 100GB drive?
Are there any limitations (performance or otherwise) that I'd see from leaving Ubuntu as is in the existing 8GB partition in the 1st (40GB) drive.
I still have 100GB of file storage space available to Ubuntu.

If I'm likely to encounter problems down the road from this configuration, I'd rather change it now while the 100GB disk is empty.
But if it's not gaining me anything, I can just let well enough alone.

Thoughts?
Doug

-----Original Message-----
From: bcbc <email address hidden>
To: dougprice <email address hidden>
Sent: Sun, Mar 4, 2012 2:05 am
Subject: Re: [Question #189390]: moving root.disk from C: to D:

Your question #189390 on Wubi changed:
ttps://answers.launchpad.net/wubi/+question/189390
    Status: Open => Answered
bcbc proposed the following answer:
ou have to create partitions to install Ubuntu. You can do it manually, or
ou can do it automatically. To do it manually, refer to this:
ttp://members.iinet.net.au/~herman546/p22.html (it's written for release
0.10 but it's pretty much the same on 11.10). Or you can boot from an
buntu CD or USB and point it at /dev/sdb and see if you can split it how
ou want. Make sure you install the bootloader on /dev/sda (not /dev/sdb)
o that when you remove the Ubuntu on /dev/sda5 your computer doesn't stop
ooting (your bootloader is dependent on files located in /dev/sda5 at the
oment - and you're wanting to replace that with an NTFS partition).
I do have a script that will move an ubuntu install and make it bootable
ut I don't know how suitable this is for you because it doesn't seem like
ou're particularly attached to the current install and also that script
equires you to manually create the partitions beforehand (and you may
refer to have the installer do that automatically.) Have a look at
ttp://www.ubuntu.com/download/ubuntu/download (go to the part where it
ays "Install" and click on Show me How). That should be all you need to do.
Feel free to ask more questions if you have any, and I'll try to answer
hem.
--
f this answers your question, please go to the following page to let us
now that it is solved:
ttps://answers.launchpad.net/wubi/+question/189390/+confirm?answer_id=7
If you still need help, you can reply to this email or go to the
ollowing page to enter your feedback:
ttps://answers.launchpad.net/wubi/+question/189390
You received this question notification because you asked the question.

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

8GB isn't a lot. That doesn't mean you can't run an install off 8GB but you
will have to be vigilant in keeping it clean e.g. removing older kernels
(they collect after a while and each one can take 100+MB). If you're
storing all your files on the 100GB partition that will make it last
longer, but you can't install programs etc. to that. You can probably
compile and run source from the 100GB as long as you set the permissions
correctly.
But things like browser cache and other settings will all be stored in your
/home directory.

I'd say - just leave it as it is - you obviously have some reservations;
and your system is working fine at the moment. By the time it becomes an
issue you'll probably be more comfortable dealing with it.

Just keep an eye on the space. You can use the Disk usage analyser tool to
monitor detailed space usage - run it as root:
gksu baobab
(enter that from the command line or after hitting 'Alt+F2').

Also:
df -h
is a quick way to see what your space usage is.

Can you help with this problem?

Provide an answer of your own, or ask Doug Price for more information if necessary.

To post a message you must log in.