Red HatThis forum is for the discussion of Red Hat Linux.
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.
Am able to create the primary partition P1 and P2 but am unable to save it. While saving those am getting below error. Have tried the same also by rebooting the OS, but still the same. What needs to be done to overcome this.My RHEL 6 is installed as virtual OS in VM ware.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2101 16567296 83 Linux
/dev/sda3 2101 2611 4096000 82 Linux swap / Solaris
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@localhost Desktop]#
All available space on the disk is currently being used. If you want to create additional partitions you need to extend the size of the virtual disk (VMDK). When you reboot the guest it should see the additional space.
Create sda4 as an extended partition using the additional space and then you can create multiple logical partitions.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2101 16567296 83 Linux
/dev/sda3 2101 2611 4096000 82 Linux swap / Solaris
[root@localhost Desktop]#
So it did increase in size by 5GB. This is unallocated space so it will not show up as part of any other partition. So what do you want to do with this extra space? Create more partitions?
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2101 16567296 83 Linux
/dev/sda3 2101 2611 4096000 82 Linux swap / Solaris
/dev/sda4 2700 3200 4024282+ 5 Extended
[root@localhost Desktop]# fdisk /dev/sda4
Unable to open /dev/sda4
[root@localhost Desktop]#
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2101 16567296 83 Linux
/dev/sda3 2101 2611 4096000 82 Linux swap / Solaris
/dev/sda4 2700 3200 4024282+ 5 Extended
/dev/sda5 2700 3000 2417751 83 Linux
[root@localhost Desktop]# mkfs.ext3 /dev/sda5
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/sda5 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
[root@localhost Desktop]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.