Sponsored Content
Full Discussion: fdisk
Operating Systems Solaris fdisk Post 302521674 by fugitive on Thursday 12th of May 2011 02:41:55 AM
Old 05-12-2011
U have to use format and then select disk and then you can modify the disk parameters from there or u can use prtvtoc /dev/rdsk/c0t1d0s2 but the o/p will be lil complex to understand
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

(c)fdisk and RedHat 7.2

I recently installed RedHat 7.2, and cannot find any tools to partition the disks other than during the install. I did a find from / for fdisk and cfdisk, neither turned up. I looked in the RPM directories on the CD's, again no good. What rpm contains a partition management tool? (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Dummies Questions & Answers

Using fdisk in scripts

Hi ! I need to create large amount of portions for database in Linux. Untill now I've used fdisk for manual creation of chunks and changing thei? file system type. Now I want to write script for create them automatically. I think I'm not the first who deal with that problem! Thank you for... (1 Reply)
Discussion started by: Frank_a
1 Replies

3. Shell Programming and Scripting

Strange results from FDISK?????

Hi all, I am writing script that returns the size of each disk or partition when called. I am using FDISK -l and parsing the results to get the result I want. When I execute fdisk -l it shows correct results, BUT when I execute the same thing with results to be put in a variable, I get strange... (5 Replies)
Discussion started by: alirezan
5 Replies

4. Solaris

using fdisk

how do i know my disk partion using fdisk (4 Replies)
Discussion started by: seyiisq
4 Replies

5. Red Hat

FDISK problems

OS= Fedora 10 I have a secondary 250GB disk of which I created a 50G partition on to try and set-up an LFS system. I finished with the LFS system and now I want to destroy the partition and reclaim all of the 250GB. So i simply ran fdisk /dev/sdb and deleted the 2 Linux partitions ( one 83 and... (2 Replies)
Discussion started by: woodson2
2 Replies

6. Shell Programming and Scripting

HEREDOC with fdisk

Hi folks What I'm trying is to build a partitioning script. I can pass a HEREDOC to fdisk just fine. Like this: fdisk /dev/sda << EOF p q EOF but I don't know how to put that HEREDOC into a varible to pass it to fdisk. This is what I have tried so far (no luck) #!/bin/bash ... (3 Replies)
Discussion started by: latenite
3 Replies

7. UNIX for Dummies Questions & Answers

Fdisk v/s parted

Just started understanding linux filesystem and partition utilities. I was going though some video tutorials by CBT nuggets and the author was cursing fdisk as fuzzy tool and recommending to use parted instead. In our job environment i have seen almost every one using fdisk utility for... (1 Reply)
Discussion started by: pinga123
1 Replies

8. UNIX for Dummies Questions & Answers

Analyse this fdisk -l

Hi, Someone please analyse the following o/p of fdisk -l and tell me what it means for /dev/sda, /dev/sdb, /dev/sdc .... Disk /dev/sda: 53.6 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start ... (5 Replies)
Discussion started by: stunn3r
5 Replies

9. BSD

OpenBSD fdisk - Linux fdisk compatibility ?

Hello, MBR partition table made by linux fdisk looks certainly not correct when printed by openbsd fdisk: Partition table created on linux (centos 6.3): # fdisk -l /dev/sdc Disk /dev/sdc: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 *... (2 Replies)
Discussion started by: vilius
2 Replies

10. Shell Programming and Scripting

Unix fdisk -l Automation

Hello Folks - Need help really ASAP. Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers. #!/bin/ksh _servers="" _out="/tmp/output.$$" _ssh=/usr/bin/ssh >$_out for s in $_servers do $_ssh $s fdisk -l >> $_out done ... (8 Replies)
Discussion started by: bkilaru
8 Replies
prtvtoc(1M)						  System Administration Commands					       prtvtoc(1M)

NAME
prtvtoc - report information about a disk geometry and partitioning SYNOPSIS
prtvtoc [-fhs] [-t vfstab] [-m mnttab] device DESCRIPTION
The prtvtoc command allows the contents of the label to be viewed. The command can be used only by the super-user. The device name can be the file name of a raw device in the form of /dev/rdsk/c?t?d?s2 or can be the file name of a block device in the form of /dev/dsk/c?t?d?s2. OPTIONS
The following options are supported: -f Report on the disk free space, including the starting block address of the free space, number of blocks, and unused parti- tions. -h Omit the headers from the normal output. -m mnttab Use mnttab as the list of mounted filesystems, in place of /etc/mnttab. -s Omit all headers but the column header from the normal output. -t vfstab Use vfstab as the list of filesystem defaults, in place of /etc/vfstab. EXAMPLES
Example 1: Using the prtvtoc Command The following example uses the prtvtoc command on a 424-megabyte hard disk: example# prtvtoc /dev/rdsk/c0t3d0s2 * /dev/rdsk/c0t3d0s2 partition map * * Dimension: * 512 bytes/sector * 80 sectors/track * 9 tracks/cylinder * 720 sectors/cylinder * 2500 cylinders * 1151 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 76320 76319 / 1 3 01 76320 132480 208799 2 5 00 0 828720 828719 5 6 00 208800 131760 340559 /opt 6 4 00 340560 447120 787679 /usr 7 8 00 787680 41040 828719 /export/home example# The data in the Tag column above indicates the type of partition, as follows: Name Number UNASSIGNED 0x00 BOOT 0x01 ROOT 0x02 SWAP 0x03 USR 0x04 BACKUP 0x05 STAND 0x06 VAR 0x07 HOME 0x08 ALTSCTR 0x09 CACHE 0x0a RESERVED 0x0b The data in the Flags column above indicates how the partition is to be mounted, as follows: Name Number MOUNTABLE, READ AND WRITE 0x00 NOT MOUNTABLE 0x01 MOUNTABLE, READ ONLY 0x10 Example 2: Using the prtvtoc Command with the -f Option The following example uses the prtvtoc command with the -f option on a 424-megabyte hard disk: example# prtvtoc -f /dev/rdsk/c0t3d0s2 FREE_START=0 FREE_SIZE=0 FREE_COUNT=0 FREE_PART=34 Example 3: Using the prtvtoc Command on a Disk Over One Terabyte The following example uses uses the prtvtoc command on a disk over one terabyte:. example# prtvtoc /dev/rdsk/c1t1d0s2 * /dev/rdsk/c1t1d0s2 partition map * * Dimensions: * 512 bytes/sector * 3187630080 sectors * 3187630013 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 34 262144 262177 1 3 01 262178 262144 524321 6 4 00 524322 3187089340 3187613661 8 11 00 3187613662 16384 318763004 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
devinfo(1M), fmthard(1M), format(1M), mount(1M), attributes(5) WARNINGS
The mount command does not check the "not mountable" bit. SunOS 5.10 25 Jul 2002 prtvtoc(1M)
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy