Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help Understanding Output and question about /dev/ Post 302332570 by mojoman on Thursday 9th of July 2009 12:57:57 PM
Old 07-09-2009
Help Understanding Output and question about /dev/

Hi,

I am having some problems understanding the info from the following output:

Disk /dev/sda: 17849 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 499 500- 4016218+ 83 Linux
/dev/sda2 500 999 500 4016250 82 Linux swap / Solaris
/dev/sda3 1000 17848 16849 135339592+ 83 Linux
/dev/sda4 0 - 0 0 0 Empty


I wan to know how large each partition is. I selected the size for /dev/sda2 in fdisk to be 1000M but if I am understanding the info correctly I only have 0.5megs for /dev/sda2. Can someone tell me how to effectively create partition sizes in fdisk? it seems when I try and specify the size using the actual size it does not work well.

One other question:
/dev/shm 517172 0 517172 0% /dev/shm

Is /dev/shm the swap partition /dev/sda2?

Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/dev question

RH 7.2 My machine has an LCD screen on the front of the panel. I've been given software to control some text on the LCD. The software checks /dev/tts/1 for the LCD. Since I don't have any /dev/tts directory, the developer told me just to make a link from the LCD to /dev/tts/1, but I don't... (4 Replies)
Discussion started by: jalburger
4 Replies

2. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

3. UNIX for Dummies Questions & Answers

/dev/fd question

what exactly is going on in this piece of code? what is the role of /dev/fd? i know that /dev/fd/0 is somehow linked to standard input, but that's the extent of my knowledge cat header.txt /dev/fd/0 footer.txt (2 Replies)
Discussion started by: momo.reina
2 Replies

4. UNIX for Dummies Questions & Answers

Understanding the output command

Could you please explain me whats happening in the below code, appreciate your help, Thank you. /product/apps/informatica/v7/pc/ExtProc/NewDAC/dacRecBuilder.sh /product/apps/informatica/v7/pc/TgtFiles/NEW_DAC/DAC_Pos_TradeInv_Records.out ... (5 Replies)
Discussion started by: Ariean
5 Replies

5. UNIX for Advanced & Expert Users

How to output 1s endlessly like /dev/zero?

/dev/zero can output 0's (null characters) endlessly. I am looking for a technique to output 1's (0xFF or 0b11111111) endlessly in a similar manner as /dev/zero. The following dd statement writes 4 terabytes of 0's to the drive /dev/sdb. This dd statement does not cause any memory shortage. ... (3 Replies)
Discussion started by: LessNux
3 Replies

6. Shell Programming and Scripting

Understanding the output of TOP

ok, so I have a script im running on a linux box that uses "egrep" a lot. now, when i run this script, i check the TOP to see how much system resource it is using. the "top" command gives the following output: last pid: 25384; load avg: 1.06, 1.04, 0.76; up 351+06:30:24 ... (0 Replies)
Discussion started by: SkySmart
0 Replies

7. UNIX for Dummies Questions & Answers

Understanding nm command output

After running nm command on any object file from out put can we get to know that wheather a symbol is a call to a function or definition of function ? I am searching a class and function definitions inside many .so files. I have 3 files which contain the symbol but I don't know wheather they... (2 Replies)
Discussion started by: yatrik007
2 Replies

8. Shell Programming and Scripting

Understanding the output of fwtmp

Hi all, First time post, so please be gentle. :) I'm writing a Solaris 10 ksh script to retrieve details of logins and logouts using specific user names. The details I want are quite basic - the username, the computer logged in from, and the date and time the user logged in and logged off.... (6 Replies)
Discussion started by: confusedAdmin
6 Replies

9. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

10. Shell Programming and Scripting

Simply question about capturing output to /dev/tty

Suppose another person wrote the following one-line shell script: echo $RANDOM > /dev/tty QUESTION #1: How can the random number, which is output to the terminal by this script, be captured in a variable? QUESTION #2: How can this be done in a cron job? Specific code, whether in ksh or... (1 Reply)
Discussion started by: Paul R
1 Replies
PARTX(8)						      System Manager's Manual							  PARTX(8)

NAME
partx - tell the Linux kernel about the presence and numbering of on-disk partitions SYNOPSIS
partx [-a|-d|-s] [-t TYPE] [-n M:N] [-] disk partx [-a|-d|-s] [-t TYPE] partition [disk] DESCRIPTION
Given a device or disk-image, partx tries to parse the partition table and list its contents. It optionally adds or removes partitions. The disk argument is optional when a partition argument is provided. To force scanning a partition as if it were a whole disk (for example to list nested subpartitions), use the argument "-". For example: partx --show - /dev/sda3 This will see sda3 as a whole-disk rather than a partition. This is not an fdisk program -- adding and removing partitions does not change the disk, it just tells the kernel about the presence and numbering of on-disk partitions. OPTIONS
-a, --add Add the specified partitions, or read the disk and add all partitions. -b, --bytes Print the SIZE column in bytes rather than in human-readable format. -d, --delete Delete the specified partitions or all partitions. -g, --noheadings Do not print a header line. -l, --list List the partitions. Note that all numbers are in 512-byte sectors. This output format is DEPRECATED in favour of --show. Don't use it in newly written scripts. -o, --output list Define the output columns to use for --show and --raw output. If no output arrangement is specified, then a default set is used. Use --help to get list of all supported columns. -r, --raw Use the raw output format. -s, --show List the partitions. All numbers (except SIZE) are in 512-byte sectors. The output columns can be rearranged with the --output option. -t, --type type Specify the partition table type -- aix, bsd, dos, gpt, mac, minix, sgi, solaris_x86, sun, ultrix or unixware. -n, --nr M:N Specify the range of partitions. For backward compatibility also the format <M-N> is supported. The range may contain negative numbers, for example "--nr :-1" means the last partition, and "--nr -2:-1" means the last two partitions. Supported range specifi- cations are: <M> Specifies just one partition (e.g. --nr 3). <M:> Specifies lower limit only (e.g. --nr 2:). <:N> Specifies upper limit only (e.g. --nr :4). <M:N> or <M-N> Specifies lower and upper limits (e.g. --nr 2:4). EXAMPLES
partx --show /dev/sdb3 partx --show --nr 3 /dev/sdb partx --show /dev/sdb3 /dev/sdb All three commands list partition 3 of /dev/sdb. partx --show - /dev/sdb3 Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk). partx -o START -g --nr 3 /dev/sdb Prints the start sector of partition 5 on /dev/sda without header. partx -o SECTORS,SIZE /dev/sda5 /dev/sda Lists the length in sectors and human-readable size of partition 5 on /dev/sda. partx --add --nr 3:5 /dev/sdd Adds all available partitions from 3 to 5 (inclusive) on /dev/sdd. partx -d --nr :-1 /dev/sdd Removes the last partition on /dev/sdd. SEE ALSO
addpart(8), delpart(8), fdisk(8), parted(8), partprobe(8) AUTHORS
Davidlohr Bueso <dave@gnu.org> Karel Zak <kzak@redhat.com> The original version was written by Andries E. Brouwer <aeb@cwi.nl>. AVAILABILITY
The partx command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. 1 Feb 2011 PARTX(8)
All times are GMT -4. The time now is 05:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy