LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2008, 05:41 PM   #1
Lassenc
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Creating and formatting a partion from unallocated space.


Hey folks!

I have been using Ubuntu for the past week without any major problems than not figuring out how to manually install software and other small problems.

However last night I deleted a folder "World of Warcraft" it filled 10gb, pressed delete and it vanished like I expected. Though no extra space freed up, and it wasn't moved to trash.

So, today I bit the bullock and formatted the partition since I wanted ext3 instead of ntfs.

After some start-up troubled I finally got Gparted installed.

So here comes the problem. I now have around 30gb of unallocated space, but Gparted gives me an error message when I try to format it in to ext3.

This is the error message Gparted produces

Code:
GParted 0.3.3

Libparted 1.7.1

Create Primary Partition #1 (ext3, 26.37 GiB) on /dev/sda  00:00    ( ERROR )
     	
create empty partition  00:00    ( SUCCES )
     	
path: /dev/sda2
start: 17575110
end: 72870839
size: 55295730 (26.37 GiB)
set partitiontype on /dev/sda2  00:00    ( SUCCES )
     	
new partitiontype: ext3
create new ext3 filesystem  00:00    ( ERROR )
     	
mkfs.ext3 /dev/sda2
     	
mke2fs 1.40.2 (12-Jul-2007)
Could not stat /dev/sda2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
libparted messages    ( INFO )
     	
Error informing the kernel about modifications to partition /dev/sda2 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
The kernel was unable to re-read the partition table on /dev/sda (Device or resource busy). This means Linux won't know anything about the modifications you made until you reboot. You should reboot your computer before doing anything with /dev/sda.
Error informing the kernel about modifications to partition /dev/sda2 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
The kernel was unable to re-read the partition table on /dev/sda (Device or resource busy). This means Linux won't know anything about the modifications you made until you reboot. You should reboot your computer before doing anything with /dev/sda.

========================================

Create Primary Partition #2 (linux-swap, 2.51 GiB) on /dev/sda

========================================
After the dialoguebox is closed it says it can't re-read from the disk and the unallocated space is now access limited.

How large should the swap partition be on a system like this? Just for regular "heavy" desktop use.

Kind regards, Lasse

Ps. tried making a user on ubuntuforums as it seemed the closest as I am using ubuntu. But apparently the usernames i chosen wasn't acceptable, anyone knows what is up with that?
 
Old 03-20-2008, 05:50 PM   #2
Lassenc
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Okay, so! After reading my own post I actually figured out that all I had to do was to reboot the computer.

The partition is now formatted in ext3.

But now I want it to show somewhere, like under the "Places" menu in the Applications bar.

Is that the mounting point that decides that?

How is that done?

Last edited by Lassenc; 03-20-2008 at 05:52 PM.
 
Old 03-20-2008, 05:52 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
I generally don't create new partitions with gparted, just resize/move them - but a stat error like that should be fixed just by re-booting.
Open a terminal session (go Applications > Accessories), and enter this command - post all the output
Code:
sudo fdisk -l
(that's a lower case ell).

For software installs use System > Administration > Synaptic Package Manager (GUI, has a search function)
For swap I just use a Gig on all my systems - disk is cheap these days.
As for the forums, no idea - maybe already used.
 
Old 03-20-2008, 05:59 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The first thing I notice is that GParted reports: "Create Primary Partition #1" From you description I infer that you already had at least one partition.

Please post the output of "fdisk -l" lower case ell, not one....run this command as root or using sudo.

Also, you can try using (in a terminal) fdisk or cfdisk


SWAP:
What I hear most often is that the old rule of 1.5X or 2X RAM no longer applies. I now use 1GB of swap regardless of RAM: I never heard anyone say that would be inadequate, and it's a small percentage of a 100-200GB drive.
 
Old 03-20-2008, 06:09 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Lassenc View Post

How large should the swap partition be on a system like this? Just for regular "heavy" desktop use.
512M is good enough for swap.

Part of your problems with your partitioning may be that /etc/fstab no longer describes the partitions that you really have. I suggest that you go into /etc/fstab and comment out the lines pertaining to swap, /dev/sda2, the old ntfs partition, and /dev/sda3 until you get your partitions straightened out. Put a # in the first column of anything you want to comment out in /etc/fstab. Then reboot. After you reboot issue the following commands and post the output:

fstab -l

mount

fstab will list all of your partitions and mount will describe what you actually have mounted.

--------------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
partioning unallocated space Ledft Linux - Newbie 4 05-31-2006 12:23 AM
moving unallocated disk space into reiserfs partition. GUIPenguin Linux - General 3 04-08-2006 04:07 PM
Using unallocated space to install Suse 9.1 w/ XP (Dual Boot) DocShock SUSE / openSUSE 1 02-13-2005 07:38 PM
add unallocated free space to existing disk drives!! ajaymyeg Linux - Networking 1 07-21-2004 09:17 PM
Format ext3 ONLY on unallocated space X-Crawler Linux - General 3 03-16-2004 12:27 PM


All times are GMT -5. The time now is 01:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration