Sponsored Content
Operating Systems Solaris no command works after i created new partition!!! Post 302531602 by chidori on Friday 17th of June 2011 08:49:48 AM
Old 06-17-2011
no command works after i created new partition!!!

This was my intial setup of the partition table.
Code:
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     259 - 2666        4.70GB    (2408/0/0)  9863168
  1       swap    wu       3 -  258      512.00MB    (256/0/0)   1048576
  2     backup    wm       0 - 4091        7.99GB    (4092/0/0) 16760832
  3 unassigned    wm    2667 - 2916      500.00MB    (250/0/0)   1024000
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 alternates    wu       1 -    2        4.00MB    (2/0/0)        8192

I created on partition of 500mb space long back and left it for future use.
Code:
3 unassigned    wm    2667 - 2916      500.00MB    (250/0/0)   1024000

Today i wanted to set a tag to it and then mounted it.

Code:
Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[2667]:
Enter partition size[1024000b, 250c, 2916e, 500.00mb, 0.49gb]:
partition> l
Ready to label disk, continue? y

partition> p
Current partition table (unnamed):
Total disk cylinders available: 4092 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm     259 - 2666        4.70GB    (2408/0/0)  9863168
  1       swap    wu       3 -  258      512.00MB    (256/0/0)   1048576
  2     backup    wm       0 - 4091        7.99GB    (4092/0/0) 16760832
  3        usr    wm    2667 - 2916      500.00MB    (250/0/0)   1024000
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        2.00MB    (1/0/0)        4096
  9 alternates    wu       1 -    2        4.00MB    (2/0/0)        8192

Code:
# mount /dev/dsk/c0d0s3 /usr

Once i mounted it no command works.. only cd command works.. i am a newbie. can some one please tell me what mistake i did here . and is there any way to correct it.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

2. UNIX for Dummies Questions & Answers

Command only works in it's own directory

Unix/Darwin/MacOSX Terminal -- and I'm a newby. I have a file called 'symfony' here: /opt/sf/data/bin/symfony If I go: cd /opt/sf/data/bin and then, ./symfony -V It responds with the version number (like it should) Great. However, if I go to another directory: (1 Reply)
Discussion started by: pipp
1 Replies

3. Solaris

Created a partition and modified vfstab, recieve error after reboot

Hi there Should mention, I am Oracle DBA. Installed Solaris 10 on VM Ware. Created a partition, no hassle there. Modified vfstab, but made a typo, after reboot, received error message. See attached... Any ideas, be greatly appreciated. (2 Replies)
Discussion started by: Ackers
2 Replies

4. Shell Programming and Scripting

help with shell script: cp command not working, but mv command works...

Hello. I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct. We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies

5. Shell Programming and Scripting

SH script, variable built command fails, but works at command line

I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes CC=`which gcc` CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies

6. Programming

How Readelf command works?

Hello all I want to read program header of a executable without using readelf. I know it can be tough. I will do the programming myself. Just give me a hint of it. Thanks ---------- Post updated at 05:02 AM ---------- Previous update was at 04:58 AM ---------- basically i want to count... (3 Replies)
Discussion started by: aditya08
3 Replies

7. Shell Programming and Scripting

How the below command works?

hi, can any one explain the below command. run it and see and if you understand please tell me. File=s1_abc.txt.xls.pdf MOD_File=$(echo ${File%.*}_`date +%Y%m%d_%H%M%S%N`.${File##*.}) i asked somedays before and got the above code. i needed to add date time stamp just before the last... (2 Replies)
Discussion started by: Little
2 Replies

8. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

9. Shell Programming and Scripting

Cp command works on command line but not in bash

The below command moves all the .vcf files into the directory. cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
Discussion started by: cmccabe
2 Replies

10. Shell Programming and Scripting

Command works at command line but not from cron

Oracle Linux 6. Trying to set up a simple monitoring of memory usage. This command does exactly what I want at the command line: echo $(date +%Y-%m-%d" "%H:%M:%S) $(grep PageTables /proc/meminfo) >> /home/oracle/meminfo.logBut when I put it in my crontab: * * * * * echo $(date +%Y-%m-%d"... (2 Replies)
Discussion started by: edstevens
2 Replies
disktab(4)						     Kernel Interfaces Manual							disktab(4)

NAME
disktab - Disk description file SYNOPSIS
#include <sys/disklabel.h> DESCRIPTION
The disktab database describes disk geometries and disk partition characteristics. It is used to initialize the disk label on the disk. The format is patterned after the termcap terminal database. Entries in a disktab file consist of a number of : (colon) separated fields. The first entry for each disk gives the names which are known for the disk, separated by | (vertical bar) characters. The last name given should be a long name fully identifying the disk. The following list indicates the normal values stored for each disk entry: Type Description str Type of disk (for example, removable, win- chester) str Type of controller (for example, SMD, ESDI, floppy) num Number of sectors per track num Number of tracks per cylinder num Total number of cylinders on the disk num Number of sectors per cylinder, nc*nt default num Number of sectors per unit, sc*nc default num Sector size in bytes, DEV_BSIZE default bool Controller supports bad144-style bad sector forwarding num Rotation speed, rpm, default 3600 num Sector skew per track, default 0 num Sector skew per cylinder, default 0 num Headswitch time, usec, default 0 num One-cylinder seek time, usec, default 0 num Sector interleave (n:1), default 1 num Drive-type-dependent parameters num Boot block size, default BBSIZE num Superblock size, default SBSIZE num Block size for partition `a' (bytes) num Block size for partition `d' (bytes) num Block size for partition `e' (bytes) num Block size for partition `f' (bytes) num Block size for partition `g' (bytes) num Block size for partition `h' (bytes) num Fragment size for partition `a' (bytes) num Fragment size for partition `d' (bytes) num Fragment size for partition `e' (bytes) num Fragment size for partition `f' (bytes) num Fragment size for partition `g' (bytes) num Fragment size for partition `h' (bytes) num Offset of partition `a' in sectors num Offset of partition `b' in sectors num Offset of partition `c' in sectors num Offset of partition `d' in sectors num Offset of partition `e' in sectors num Offset of partition `f' in sectors num Offset of partition `g' in sectors num Offset of partition `h' in sectors num Size of partition `a' in sectors num Size of partition `b' in sectors num Size of partition `c' in sectors num Size of partition `d' in sectors num Size of partition `e' in sectors num Size of partition `f' in sectors num Size of partition `g' in sectors num Size of partition `h' in sectors str Partition type of partition `a' (4.2BSD file system, swap, etc.) str Partition type of partition `b' str Partition type of partition `c' str Parti- tion type of partition `d' str Partition type of partition `e' str Partition type of partition `f' str Partition type of partition `g' str Partition type of partition `h' EXAMPLES
The following is an example disktab entry: rz25|RZ25|DEC RZ25 Winchester: :ty=winchester:dt=SCSI:ns#62:nt#9:nc#1492: :oa#0:pa#131072:ba#8192:fa#1024: :ob#131072:pb#262144:bb#8192:fb#1024: :oc#0:pc#832527:bc#8192:fc#1024: :od#393216:pd#146437:bd#8192:fd#1024: :oe#539656:pe#146437:be#8192:fe#1024: :of#686096:pf#146437:bf#8192:ff#1024: :og#393216:pg#439311:bg#8192:fg#1024: :oh#0:ph#0:bh#8192:fh#1024: FILES
/etc/disktab RELATED INFORMATION
Functions: getdiskbyname(3) Files: disklabel(4) Commands: disklabel(8), newfs(8) delim off disktab(4)
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy