Sponsored Content
Full Discussion: primary partition size
Operating Systems Linux primary partition size Post 302230761 by tsurko on Sunday 31st of August 2008 08:05:35 AM
Old 08-31-2008
How are you creating the partitions? I think there was a limitation around 15G for primary partition(s). But if you are deleting everything this is not the case.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Must they be installed in Primary partition?

Hi, there. I know FreeBSD must be installed in primary and Linux can be installed in extended. What about NetBSD, OpenBSD and Solaris for x86? They must be installed in primary, too? (4 Replies)
Discussion started by: HOUSCOUS
4 Replies

2. Solaris

inrease partition size

hi, i created a partition c1t0d0s5 sized 10gb and a soft partition on it. now i want to expand this size to 15gb (my hard disk is 36gb). anybody show me the way to do that, please. here are the outputs of the df and format commands: # df -h Filesystem size used avail capacity ... (5 Replies)
Discussion started by: xuc_xich_duc
5 Replies

3. Solaris

Amend the size of a Partition Error

Hi guys, I'm fidling around Partition space on SMC and on changing partition size, or assiging an unused partition to "usr", or even trying to alter the disk layout I get: Attempted Format of Partition /dev/dsk/c1t0d0s3 failed with unexpected CIM error: CIM_ERR_FAILED:CIM_ERR_FAILED:... (2 Replies)
Discussion started by: drchris
2 Replies

4. Solaris

Partition size calculations

Hi guys, I have an V100 server and I'm about to install solaris 8 on it (I have 10 on currently but most of my work is on 8 so I'm going to that). It would be easy for me to post system specs and get a recommendation, but what I'd like is to know HOW to calculate so that I can set up other... (1 Reply)
Discussion started by: Stin
1 Replies

5. UNIX for Dummies Questions & Answers

Increasing the Size of the Samba Partition

Hi, Is there any command to increase the size of the samba partition when the samba share is online?? Regards Arun (1 Reply)
Discussion started by: Arun.Kakarla
1 Replies

6. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

7. Solaris

how to expand root partition size?

Dear All For installing an application that will seat under /opt , I need to increase my root partition size (/c0t0d0s0) . Can you please let me know how can I increase this partition size? Thank you (10 Replies)
Discussion started by: hadimotamedi
10 Replies

8. Shell Programming and Scripting

Check size of a partition

hi want to schedule a script for displaying the size of the partiition. For example df -g /dev/fslv03 2000.00 535.43 74% 179943 1% /nvbkp we have several mount point like this but i want to schedule script to display size of the above mount point only. Thanks Ankit (4 Replies)
Discussion started by: ankit2012
4 Replies

9. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

10. Red Hat

Increasing size of root partition

Dear All , We need to increase the size of the root partition in a RHEL server. The model is Product Name: SUN FIRE X4170 SERVER. Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 119G 47G 67G 41% /... (3 Replies)
Discussion started by: jegaraman
3 Replies
dkio(4) 						     Kernel Interfaces Manual							   dkio(4)

Name
       dkio - disk interface

Syntax
       #include <sys/fs.h>
       #include <sys/ioctl.h>

Description
       This  section  describes  the ioctl (input/output controller) codes for all disk drivers.  The basic ioctl (input/output controller) format
       is:

       #include <sys/fs.h>
       #include <sys/ioctl.h>
       ioctl(fildes, code, arg)
       struct pt *arg;

       The applicable codes are:

       DIOCGETPT       Indicates to the driver to store the information in the current partition table in the address pointed to by arg.  The file
		       descriptor must be opened on the raw partitions, a or c.

		       DIOCGETPT does not change the partition table, but it does provide access to the partition table information.

       DIOCSETPT       Indicates to the driver to modify the current partition table with the information pointed to by arg.

		       The file descriptor must be opened on the raw partitions, a or c.

		       If  the a or c partition is not mounted, only the partition table in the driver is modified.  This temporarily modifies the
		       partition table of the disk.  The modifications are overwritten with the default table when the disk is turned off and on.

		       If the a or c partition is mounted, both the partition table  in  the  driver  and  the	partition  table  in  the  primary
		       superblock are modified.  This permanently modifies the partition table of the disk.  This is not recommended.  To change a
		       partition table permanently, use the command.

       DIOCDGTPT       Indicates to the driver to store the default information of the current partition table in the address pointed to  by  arg.
		       The file descriptor must be opened on the raw partitions a or c.

		       DIOCGETPT does not change the partition table, but it does provide access to the partition table information.

       DKIOCGET        Allows the user to receive generic disk information as defined in structdevget.

       DKIOCACC        This code is defined in It is currently unused.

Restrictions
       These restrictions apply when using the DIOCSETPT ioctl code:

       o   You must have superuser privileges.

       o   You	cannot	shrink	or change the offset of a partition with a file system mounted on it or with an open file descriptor on the entire
	   partition.

       o   You cannot change the offset of the a partition.

Examples
       This example shows how to use the DIOGETPT ioctl code to print the length and offset of the a partition of an RZ23 disk:
       #include <sys/types.h>
       #include <sys/param.h>
       #include <sys/fs.h>
       #include <sys/ioctl.h>

       main()
       {
	    struct pt arg;
	    int fd, i;

	    /* Open the "a" partition of the disk you want to see */

	    if ( (fd = open("/dev/rz0a",0)) < 0 ) {
		 printf("Unable to open device
");
		 exit(2);
	    }

	    /* Get the partition information */

	    if ( ioctl(fd,DIOCGETPT,&arg) < 0 )
		 printf("Error in ioctl
");

	    printf("Length		Offset
");

	    for ( i = 0; i <= 7; i++ ) {
		 printf("%d		%d
",arg.pt_part[i].pi_nblocks,
			     arg.pt_part[i].pi_blkoff );
	    }
       }

Files
See Also
       rz(4), disktab(5), fstab(5), chpt(8), diskpart(8), fsck(8), MAKEDEV(8), mkfs(8), tunefs(8)

								       RISC								   dkio(4)
All times are GMT -4. The time now is 02:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy