LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2010, 03:03 AM   #1
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Rep: Reputation: 15
Expanded disk


I'm using Mandriva Linux on VMWare Player. It's a Mandriva Linux VMWare Appliance I downloaded from the VMWare website.

I expanded the initial disk size from 8GB to 25GB. When I start the Virtual Machine, and type in df -h the disk is still 8GB only. How do I get Mandriva to see the extra disk space I have allocated?

Below is df -h
[root@mandriva-vm etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.1G 3.1G 777M 81% /
/dev/sda6 3.4G 215M 3.2G 7% /home
 
Old 03-22-2010, 03:06 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Create new partitions with the additional space, use:
Quote:
fdisk /dev/sda
 
Old 03-22-2010, 03:09 AM   #3
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
If I do the fdisk /dev/sda

Will that expand the root directory? I need to increase the size of /dev/sda1
 
Old 03-22-2010, 03:17 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Yes you can do that first create a new partition then mount it to any folder under '/'. You should not mount the new partition directly into '/'.
 
Old 03-22-2010, 09:15 PM   #5
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
When I run fdisk /dev/sda

It asks me if its a
Primary
Logical

What will it be?

Below is the full output.
[root@mandriva-vm vmplanet]# fdisk /dev/sda

The number of cylinders for this disk is set to 3263.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4
 
Old 03-22-2010, 11:21 PM   #6
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
I selected P Primary.

That's completed howvever, something isn't right here becuase when I try to create a file system, it tells me that "there is no such device"

Below is the entire output of fdisk -l and mkfs commands.
[root@mandriva-vm vmplanet]# fdisk -l

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 538 4321453+ 83 Linux
/dev/sda2 539 1044 4064445 5 Extended
/dev/sda3 1045 3263 17824117+ 83 Linux
/dev/sda5 539 604 530113+ 82 Linux swap / Solaris
/dev/sda6 605 1044 3534268+ 83 Linux
[root@mandriva-vm vmplanet]# mkfs -t ext3 /dev/sda3
mke2fs 1.41.9 (22-Aug-2009)
Could not stat /dev/sda3 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[root@mandriva-vm vmplanet]#
 
Old 03-22-2010, 11:50 PM   #7
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Quote:
Originally Posted by linuxgoose View Post
I selected P Primary.

That's completed howvever, something isn't right here becuase when I try to create a file system, it tells me that "there is no such device"

Below is the entire output of fdisk -l and mkfs commands.
[root@mandriva-vm vmplanet]# fdisk -l

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 538 4321453+ 83 Linux
/dev/sda2 539 1044 4064445 5 Extended
/dev/sda3 1045 3263 17824117+ 83 Linux
/dev/sda5 539 604 530113+ 82 Linux swap / Solaris
/dev/sda6 605 1044 3534268+ 83 Linux
[root@mandriva-vm vmplanet]# mkfs -t ext3 /dev/sda3
mke2fs 1.41.9 (22-Aug-2009)
Could not stat /dev/sda3 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[root@mandriva-vm vmplanet]#
Run this command first:
Quote:
#partprobe /dev/sda
 
Old 03-23-2010, 12:11 AM   #8
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Hi,

I ran your cammand but i got the following error. (I'm on Mandriva Linux, if that makes any difference)

[root@mandriva-vm vmplanet]# partprobe /dev/sda
bash: partprobe: command not found
[root@mandriva-vm vmplanet]#
 
Old 03-23-2010, 12:25 AM   #9
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Quote:
Originally Posted by linuxgoose View Post
Hi,

I ran your cammand but i got the following error. (I'm on Mandriva Linux, if that makes any difference)

[root@mandriva-vm vmplanet]# partprobe /dev/sda
bash: partprobe: command not found
[root@mandriva-vm vmplanet]#
That means partprobe (package name is parted) is not installed in your system, either install partprobe or restart the system.

Last edited by Sayan Acharjee; 03-23-2010 at 12:27 AM.
 
Old 03-23-2010, 12:32 AM   #10
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Ok I restarted and it all worked. But please look at the output below as the goal was to expand the root disk and from what I see below we haven't done that instead we have just created another partition under the root.

Ideally I need to expand that 17GB that is now allocated to sda3 to sda1

[root@mandriva-vm etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.1G 3.0G 947M 76% /
/dev/sda6 3.4G 215M 3.2G 7% /home
/dev/sda3 17G 173M 16G 2% /disk1
[root@mandriva-vm etc]#
 
Old 03-23-2010, 12:41 AM   #11
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Quote:
Originally Posted by linuxgoose View Post
Ok I restarted and it all worked. But please look at the output below as the goal was to expand the root disk and from what I see below we haven't done that instead we have just created another partition under the root.

Ideally I need to expand that 17GB that is now allocated to sda3 to sda1

[root@mandriva-vm etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.1G 3.0G 947M 76% /
/dev/sda6 3.4G 215M 3.2G 7% /home
/dev/sda3 17G 173M 16G 2% /disk1
[root@mandriva-vm etc]#
As I said before you can't increase / directly, this is the only way to increase the disk size, as this partition is under /, that means the additional space is also added to the / partition.
Though this space can only be used from /disk1, but that should not be a problem after all disk1 resides in /.
In other words you have expanded / partition size.

Last edited by Sayan Acharjee; 03-23-2010 at 12:43 AM.
 
Old 03-23-2010, 01:24 AM   #12
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Ok I think I understand.

If I install software like Oracle and Install it on the root, when it reaches the 4.1GB as in the output below, will data automatically store on the /disk1 mount which has 17GB space available?
 
Old 03-23-2010, 01:32 AM   #13
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

Rep: Reputation: 64
Quote:
Originally Posted by linuxgoose View Post
Ok I think I understand.

If I install software like Oracle and Install it on the root, when it reaches the 4.1GB as in the output below, will data automatically store on the /disk1 mount which has 17GB space available?
I'm afraid it won't use the free partition during Oracle installation, but you can install oracle on /disk1.
 
Old 03-23-2010, 02:00 AM   #14
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Ok I can Install Oracle on disk1

But what happens when sda1 fills up which only has 947MB left? Will Linux still operate?
 
Old 03-24-2010, 09:49 PM   #15
linuxgoose
Member
 
Registered: Mar 2010
Posts: 38

Original Poster
Rep: Reputation: 15
Can anyone please enlighten me on my last question?

I wish to know what will happen when sda1 fills up given the fact that I have added 17GB to sda3 which from what I understand is an extension of disk space to sda1.
 
  


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
LXer: Qt gets cuter: 4.6 brings expanded platform support LXer Syndicated Linux News 0 12-02-2009 11:30 AM
LXer: Identifying U.S-African Projects that Would Benefit from Expanded Bandwidth to LXer Syndicated Linux News 0 11-28-2008 08:30 AM
Expanded Swap for Hibernate, now what? sixsidepentagon Linux - Newbie 12 10-06-2007 01:58 PM
How to stop Email address from being expanded drmjh Linux - Newbie 2 03-04-2006 04:39 AM
How to del all the files expanded by an tarball file? hkl8324 Debian 18 06-14-2005 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 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