Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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]#
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]#
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
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
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-22-2010 at 11:43 PM.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.