PDA

View Full Version : [xubuntu] [SOLVED] New Partition On Existing EXT3 Filesystem



Ugeen
October 18th, 2008, 05:19 AM
Hello,

Ubuntu: Swap Partition FAQ (https://help.ubuntu.com/community/SwapFaq)

I need to reformat my hard drive but there's about 10 GiBs of data that I would like to move to a partition that hasn't been created, yet.

1. How do I create a new partition via manually or GParted with the following specs?

I added some more memory to the computer since that last reinstall.

2. Do I need to increase the linux-swap partition at this time? If so, how do I go about doing that since GParted doesn't allow me to make changes to any of the Filesystems? Swapoff, maybe? I guess that I could just wait until I reinstall xUbuntu. That would be easier, right?

Operating System

Installed: xUbuntu
Version: 8.04
Desktop Environment: Xfce
Release: Hardy Heron for i386

System Monitor says

System tab

Ubuntu

Release 8.04 (hardy)
Kernel Linux 2.6.24-21-generic

Hardware

Memory: 3.0 GiB
Processor 0: Intel(R) Pentium(R) 4 CPU 2.80GHz
Processor 1: Intel(R) Pentium(R) 4 CPU 2.80GHz

System Status

Available disk space: 16.3 GiB


Resources tab

Memory and Swap History

Memory: 3.0 GiB
Swap: 5 GiB



GNOME Partition Editor (GParted)

Version: 0.3.5


Partition: /dev/sda1
Filesystem: ext3
Mountpoint: /
Size: 35.68 GiB
Used: 17.59 GiB
Unused: 18.09 GiB
Flags: boot



Partition: /dev/sda2
Filesystem: extended
Mountpoint:
Size: 1.57 GiB
Used: ---
Unused: ---
Flags:





Partition: /dev/sda5
Filesystem: linux-swap
Mountpoint:
Size: 1.57 GiB
Used: ---
Unused: ---
Flags:




GNOME Partition Editor gives me the following error when I try to unmount. FYI: I understand why it will not allow me to unmount /dev/sda1.



Could not unmount /dev/sda1

The partion could not be unmounted from the following mountpoints:

/

Most likely other partitions are also mounted on these mountpoints. You are advised to unmount them manually.





The following website walked me through the process of mounting my partition drive.

psychocats.net: http://www.psychocats.net/ubuntu/mountlinux


Thank you in advance for your help.
Sincerely,
--Ugeen

Partyboi2
October 18th, 2008, 06:20 AM
Boot a gparted live cd (http://gparted.sourceforge.net/). You can not work on partitions while they are in use, so you need to use a live cd. When gparted is open right click on your sda1 partition and make sure that it is unmounted. Then press the resize button and shrink down your sda1 partition so that at the end of it you have 10gig. Then turn your swap off (right click on swap) and resize unallocated space so that the unallocated space is moved to your extended partition. Then make a 10 gig ext3 partition and afterward turn swap back on.
Remember to back up your data before working on partitions.

Ugeen
October 18th, 2008, 11:39 PM
Boot a gparted live cd (http://gparted.sourceforge.net/). You can not work on partitions while they are in use, so you need to use a live cd. When gparted is open right click on your sda1 partition and make sure that it is unmounted. Then press the resize button and shrink down your sda1 partition so that at the end of it you have 10gig. Then turn your swap off (right click on swap) and resize unallocated space so that the unallocated space is moved to your extended partition. Then make a 10 gig ext3 partition and afterward turn swap back on.
Remember to back up your data before working on partitions.

Hello Partyboi2,

I'm getting the following error message. However, I was able to partition the drive with what you've provided me with. Thank you.

1. How do I fix this error?


Failed to mount "10G Volume".

org.freedesktop.hal.storage.mount-fixed
auth_admin_keep_always <-- (action, result).

The following is how I got to the error message.
Disclaimer: Anyone reading this should read the whole thing since I had to rebooted my system once (1 time), partitioned twice (2 times) and afterward the drive is: unmounted.

Using: GParted (http://gparted.sourceforge.net/) Live CD


Bootup Attempt

Selected GParted Live (Default settings)
The startup paused at: Setting the system clock.

...waited
...waited
...waited

Rebooted



Bootup Attempt

Selected GParted Live (Default settings)
Note: It ran through completely this time.
Selected: Don't touch keymap
Graphical Environment
If needed, do the following in a Terminal Window.
(FYI: I did not need to run this code.)

Terminal: sudo Forcevideo


Within Application: GNOME Partition Editor (GParted)


Partition Attempt



Unmount Filesystem: ext3
(Partition: /dev/sda1)

Clicked on Filesystem: ext3
Clicked on Partition
Unmount was not an option.



Resize Filesystem: ext3
(Partition: /dev/sda1)

Clicked on Filesystem: ext3
Clicked on Partition
Clicked on Resize/Move
A window appeared with a title of: Resize/Move

Clicked and draged the right triangle from the right to the left and removing all of the white space.
Clicked on the Resize/Move button.


Note: In the GParted window, a new partition was created:

Partition: /dev/sda6
Filesystem: unallocated



Toggle Swap: Swapoff

Clicked on Filesystem: linux-swap
(Partition: /dev/sda5)
Clicked on Partition
Available option: Swapon
(i.e. Swap is already off.)



Resize Filesystem: extended
(Partition: /dev/sda2)

Clicked on the Filesystem: extended
Clicked on Partition
Clicked on Resize/Move
A window appeared with a title of: Resize/Move

Clicked and dragged the left triangle and moved it all the way to the left.
Clicked on the Resize/Move button


Note: In the GParted window, the Filesystem: unallocated moved under the Filesystem: extended.


New Partition Filesystem: unallocated

Clicked on the Filesystem: unallocated
Clicked on Partition
Clicked on New
A window appeared with a title of: Create new Partition

From the Filesystem options, I selected: ext3
In the New Size (MiB) textbox, I changed it to: 10240
(i.e. 10 MiB)
(Note (does not show in the Create New Partition window): 1 MiB = 1024 KiB)
Clicked on the Add button




Resize Filesystem: linux-swap

Clicked on Filesystem: linux-swap
Clicked on Partition
Clicked on Resize/Move
A window appeared with a title of: Resize/Move

In the New Size (MiB) textbox, I changed it to: 5122 (i.e. 5 MiB)
(Recommended (read in another post): 1.5 x size of memory, which in my case it would be 4.5 MiB but I went a head and made it 5 MiB. To make it 5 MiB, I had to make the new size: 5122 but 1024 (1 MiB) x 5 = 5210 but that gave me 5.09 MiB) and I'm not sure why.)
Clicked on the Resize/Move button




Getting Size of Filesystem: unallocated
FYI: I wasn't able to move the Filesystem: unallocated out of the Filesystem: extended.

Clicked on Filesystem: unallocated
Clicked on Partition
Clicked on New
A window appeared with a title of: Create new Partition

Wrote down the New Size (MiB) amount: 4761
Clicked on Cancel




Starting Over

Clicked on Edit
Clicked on Clear All Operations




Partition Attempt



Resize Filesystem: ext3

Clicked on Filesystem: ext3
Clicked on Partition
Clicked on Resize/Move
A window appeared with a title of: Resize/Move

Updated the value in the New Size (MiB) textbox:

From: 36538
To: 22787

Clicked on the Resize/Move button




Apply Operatoins
Note: From 2.1. (Resize Filesystem: ext3)

Clicked on Edit
Clicked on Apply All Operations
A window appeared with the title of: Apply operations to harddisk

Clicked on the Apply button
A window appeared with the title of: Applying pending operations

...waited
...waited
A window appeared with the title of: Unnamed
(i.e it's an error message)

Unnamed

An error occurred while applying the operations

See the details for more information.

IMPORTANT
If you want support, you need to provide the saved details!
See http://gparted.sourceforge.net/larry/tips/
save_details.htm for more information.


Clicked on the OK button






Toggle Swap: Swapoff

Clicked on Filesystem: linux-swap
(Partition: /dev/sda5)
Clicked on Partition
Clicked on Swapoff



Resize Filesystem: linux-swap

Clicked on Filesystem: linux-swap
Clicked on Partition
Clicked on Resize/Move
A window appeared with a title of: Resize/Move

In the New Size (MiB) textbox: 5122
(i.e. 5 MiB)
Clicked on the Resize/Move button




Apply Operatoins
Note: From 2.4. (Resize Filesystem: linux-swap)

Clicked on Edit
Clicked on Apply All Operations



New Partition Filesystem: unallocated

Clicked on the Filesystem: unallocated
Clicked on Partition
Clicked on New
A window appeared with a title of: Create new Partition

From the Filesystem options, I selected: ext3
In the New Size (MiB) textbox, I changed it to: 10240
(i.e. 10 MiB)
(Note (does not show in the Create New Partition window): 1 MiB = 1024 KiB)
Clicked on the Add button




Apply Operatoins
Note: From 2.6. (Resize Filesystem: unallocated)

Clicked on Edit
Clicked on Apply All Operations



Reboot

Clicked on the Exit button (i.e. closed GParted)

...waited
Clicked on Reboot




Take a look at the new partition or lack of.



I didn't see the new partition.

Format it, I thought?



Application GParted
(FYI: I have installed on /dev/sda1 (i.e. I did not reboot with GParted Live CD).

Scanning all devices...

...waited
...waited
A window appeared with the title of: Failed to mount "10G Volume".
(i.e it's an error message)

Failed to mount "10G Volume".

org.freedesktop.hal.storage.mount-fixed
auth_admin_keep_always <-- (action, result).


Clicked on Close button





Toggle Swap: Swapoff

Clicked on Filesystem: linux-swap
(Partition: /dev/sda5)
Clicked on Partition
Clicked on Swapon

Scanning all devices...

...waited
...waited





Format Filesystem: ext3
(Partition: /dev/sda6)

Clicked on Filesystem: ext3 (i.e. /dev/sda6)
Clicked on Partition
Clicked on Format to
Clicked on ext3
Scanning all devices...

...waited
...waited
A window appeared with the title of: Failed to mount "10G Volume".
(i.e it's an error message)

Failed to mount "10G Volume".

org.freedesktop.hal.storage.mount-fixed
auth_admin_keep_always <-- (action, result).


Clicked on Close button






Thank you again for all of your help.
Sincerely,
--Ugeen

Ugeen
October 20th, 2008, 05:49 AM
Hello Partyboi2,

I noticed that my Swap is 0 GiB. However, I turned it on twice (2 times) already.


Why is my Swap 0 GiB? It should be 5 GiB.

Do I need to turn it on each time I bootup? ...of course not. What do I need to do to get this resolved?



System Monitor

Resources tab

Swap

0 bytes (0.0%) of 0 bytes



Thank you again for your help.
Sincerely,
--Ugeen

Ugeen
October 25th, 2008, 02:47 PM
Take a look at this link for Mounting a linux Partition (http://www.psychocats.net/ubuntu/mountlinux) and is also a good place to learn about partitioning.

Hello,

The following website walked me through the process of mounting my partition drive. However, my swap partition is not turning on at bootup.

psychocats.net: http://www.psychocats.net/ubuntu/mountlinux

Thank you plucky (http://ubuntuforums.org/member.php?u=317619) and psychocats.net (http://www.psychocats.net/) for all of your help.
Sincerely,
--Ugeen

confused57
October 25th, 2008, 03:24 PM
You might want to post the output of:

gedit /etc/fstab
and

free

Here's another useful website that you might want to bookmark:
http://users.bigpond.net.au/hermanzone/

lswb
October 25th, 2008, 03:51 PM
I'm not sure I'm following all the steps you took, but as far as the swap partition, if you resized it, it probably was assigned a new uuid and likely your /etc/fstab just needs to be changed for it to be recognized. You can enter the command

sudo blkid -c /dev/null

in a terminal to get the uuids of all partitions on your system, After you determin which is for the swap partition use cut and paste to change the swap entry in /etc/fstab to the new uuid.

Bucky Ball
October 25th, 2008, 03:54 PM
I'm not sure I'm following all the steps you took, but as far as the swap partition, if you resized it, it probably was assigned a new uuid and likely your /etc/fstab just needs to be changed for it to be recognized. You can enter the command

sudo blkid -c /dev/null

in a terminal to get the uuids of all partitions on your system, After you determin which is for the swap partition use cut and paste to change the swap entry in /etc/fstab to the new uuid.


That sound about right.


sudo blkidand ...


nano /etc/fstabwould be helpful for us to sort this out. Think your machine is just looking in all the wrong places.

Ugeen
October 25th, 2008, 04:24 PM
I'm not sure I'm following all the steps you took, but as far as the swap partition, if you resized it, it probably was assigned a new uuid and likely your /etc/fstab just needs to be changed for it to be recognized. You can enter the command

sudo blkid -c /dev/null

in a terminal to get the uuids of all partitions on your system, After you determin which is for the swap partition use cut and paste to change the swap entry in /etc/fstab to the new uuid.

Hello lswb,

Updating the UUID fixed the swap problem.

Thank you again for all of your help.
Sincerely,
--Ugeen

Ugeen
October 25th, 2008, 04:29 PM
Hello,

My new partition is created but I cannot seem to get to it.


How can I get to my new partition through the Gnome GUI?
(e.g. Places \ File System -- FYI: It's not listed.)

Thank you in advance for your help.
Sincerely,
--Ugeen

Ugeen
October 26th, 2008, 05:58 AM
Hello,

My new partition is created but I cannot seem to get to it.


How can I get to my new partition through the Gnome GUI?
(e.g. Places \ File System -- FYI: It's not listed.)

Thank you in advance for your help.
Sincerely,
--Ugeen

I found my partition drive.

Clicked on Places
Clicked on File System

A window appeared with a title of: File System - File Manager

Clicked on File System
Clicked on Storage
Clicked on File
Clicked on Properties

A window appeared with a title of: storage - Properties

Volume: 10G Volume

...I tired this folder because inside it there is another folder called, "lost+found," which I was curious why there were two (2) folders with the same name. That probably sounds a little odd but at least I found what I was looking for. :)

Thank you for all of your help.
Sincerely,
--Ugeen