Sponsored Content
Full Discussion: Unknown fstype?
Operating Systems Solaris Unknown fstype? Post 302451152 by hadimotamedi on Monday 6th of September 2010 12:42:26 AM
Old 09-06-2010
I labeled it again and newfs its slice 0,3,6 but cannot mount it from 'is not this fstype' error message.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Fstype list

Does anyone have a list of all the fstypes? I don't know what fstype to use when mounting the cdrom... Cheers;) (5 Replies)
Discussion started by: satan404
5 Replies

2. UNIX for Dummies Questions & Answers

unknown host

Hello all I'm new to this site and I have to say that ,it is just awesome. I was able to get most of my questions answered by reading the archives. I've been a UNIX programmer for a while now but new to administration. I just installed SunOS 5.9 on my desktop ( i86pc) . Everything... (3 Replies)
Discussion started by: luft
3 Replies

3. UNIX for Dummies Questions & Answers

unknown utility

Hi everyone, I am a beginner in Linux and Shell scripting.I am migrating a couple of shell scripts from Solaris platform to Linux platform.In one script i saw a usage as : /base/article/ocilib/lobfile $username/$password $filename $filepath I didn't understand what this represents.The... (2 Replies)
Discussion started by: DILEEP410
2 Replies

4. Solaris

PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10

Hello, I have a problem - I created a chrooted jail for one user. When I'm logged in as root, everything work fine, but when I'm logged in as a chrooted user - I have many problems: 1. When I execute the command ping, I get weird results: bash-3.00$ usr/sbin/ping localhost ... (4 Replies)
Discussion started by: Przemek
4 Replies

5. UNIX for Advanced & Expert Users

unknown test operator

Hi, I have the following shell script : Nbr_BD_Link=0 Nbr_BD_Link=` sqlplus sysadm/${PSWD}@${DB_Name} << EOF | tail -4 | head -1 2>/dev/null set head off feedback off ; select count(*) from dba_db_links ; exit ; EOF ` echo ${Nbr_BD_Link} if ; then ... (4 Replies)
Discussion started by: big123456
4 Replies

6. HP-UX

su: Unknown id: root

Hi, I am facing an issue with HP-UX box. -bash-4.0$ uname -a HP-UX ctsintco B.11.31 U ia64 2795347624 unlimited-user license When ever iam doing a su - root, it is showing the below error -bash-4.0$ su - root Password: su: Unknown id: root Can you pls. let me know how to over come... (2 Replies)
Discussion started by: ysrikanth
2 Replies

7. AIX

Unknown VGs

Hi Guys, I found on one of the server there are 2 VG's which I dont have any Idea of who created .. as below bash-3.00$ lsvg old_rootvg rootvg datavg altinst_rootvg altinst_rootvg under is meant for alternate disk installation.. But I'm not sure for which version of OS it was... (5 Replies)
Discussion started by: kkeng808
5 Replies

8. Linux

rpm -ba unknown option

i am trying to build a simple rpm pacakage. i am trying this example from this link Creating the Spec File i created rpm folder in my home directory of rpmbuild account. in that i have sub folders BUILD,RPMS, SRPMS,SPECS .... in SPECS folder i have a cdplayer spec file named... (1 Reply)
Discussion started by: anand121
1 Replies

9. Shell Programming and Scripting

Unknown fs on usb?

Error mounting: mount exited with exit code 1: helper failed with: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or soThis happens when I try... (17 Replies)
Discussion started by: 1in10
17 Replies

10. Shell Programming and Scripting

Unknown command '\;'

Hello, I am running ubuntu 16.04 . Below script gives: "unknown command '\;' counter=105 while read COL1 COL2 COL3 do let counter++ url="http://localhost/test/$COL1.$COL2.$COL3"; mysql -uroot -D mydatabase -pmypasswd -e "SELECT video_id FROM video_series_files WHERE id IN \ (SELECT... (12 Replies)
Discussion started by: baris35
12 Replies
check_usage(3)						     Library Functions Manual						    check_usage(3)

NAME
check_usage - Checks whether a disk partition is in use LIBRARY
Filesystem Library (libfilsys.a) Shared Filesystem Library (libfilsys.so) SYNOPSIS
#include <sys/disklabel.h> #include <overlap.h> int check_usage( const char *special, int flag); PARAMETERS
Points to a special device file. Specifies the scope of usage checking. Valid values are: Checks the usage of the specified partition and all overlapping partitions. Checks the usage of the specified partition only. DESCRIPTION
The check_usage function checks whether the special device file is in use, that is, whether it contains a valid file system, is part of LSM, or is being used by a database or for swap space. If the flag OV_CHECK_ALL is set, check_usage() also checks to ensure that the range of blocks to be used does not overlap with blocks already in use or marked to be in use by an overlapping partition. If the flag OV_CHECK_EXACT is set, usage checking is limited to the specified partition only. The check_usage function checks whether the special device file is in use by comparing it with all mounted file systems (both UFS and AdvFS), swap devices, and LSM disks. It also reads the disk label to check the fstype field of the specified partition and any overlapping partitions. If any partition is marked as being in use, the appropriate error is returned. Before allocating a partition, an application should check that none of the overlapping partitions is in use. When an application uses a partition, it should mark its use by setting the fstype field in the partition map in the disk label. See <sys/disklabel.h> for a list of the supported file system types that can be set using the set_usage() function. EXAMPLES
The following function illustrates the use of check_usage() and possible error messages that could be printed based on the return values from check_usage(). #define DKTYPENAMES #include <stdio.h> #include <sys/disklabel.h> #include <overlap.h> #define STR_ERR_OPEN "Error: %s is open and in use. " #define STR_ERR_OPEN_OVERLAP "Error: Partition overlapping %s is open and in use. " #define STR_ERR_INVALID_DEV "Error: %s is an invalid device or cannot be opened. " #define STR_ERR_DEFAULT_FSTYPE "Error: %s is marked in the disk label as in use by %s. " #define STR_WARN_FSTYPE_OVERLAP "Warning: partition(s) which overlaps %s are marked in use. " #define STR_WARN_MULT_OVERLAP "Warning: %s and overlapping partition(s) are marked in use. " #define STR_WARN_INVAL_DISKLBL "Warning: the disklabel for %s does not exist or is corrupted. " int get_usage(char *special) { int ret; /* * Check if the specific partition and any * overlapping partition is in use. */ ret = check_usage(special, OV_CHECK_ALL); if (ret == 0) { /* * Specified partition is available for use. */ return (0); } else { /* * Specified partition has a valid fstype. */ if ( (ret > 0) && (ret <= FSMAXTYPES) ) { fprintf(stderr, STR_ERR_DEFAULT_FSTYPE, special, fstypenames[ret]); return(-1); } } /* * Print appropriate error messages for the rest of * the return values. */ switch (ret) { case OV_ERR_OPEN_OVERLAP: /* * Check if the specified partition is open. */ ret = check_usage(special, OV_CHECK_EXACT); if (ret == OV_ERR_OPEN_OVERLAP) fprintf(stderr, STR_ERR_OPEN, special); else fprintf(stderr, STR_ERR_OPEN_OVERLAP, special); break; case OV_ERR_INVALID_DEV: fprintf(stderr, STR_ERR_INVALID_DEV, special); break; case OV_ERR_INVALID_DSKLBL: fprintf(stderr, STR_WARN_INVAL_DISKLBL, special); break; case OV_ERR_FSTYPE_OVERLAP: fprintf(stderr, STR_WARN_FSTYPE_OVERLAP, special); break; case OV_ERR_MULT_FSTYPE_OVERLAP: fprintf(stderr, STR_WARN_MULT_OVERLAP, special); break; } return (-1); } RETURN VALUES
The check_usage function returns the values described here. Logical names for the return values are listed in parentheses. Checks suc- ceeded. The range of blocks is not open or marked for use. Note that for the mount command, you get a warning message if the fstype is set to FS_UNUSED; it should be set to FS_BSDFFS. Either the specified special device file or an overlapping partition is open or marked for use. Either the special device file name is invalid or the device cannot be opened. Overlapping partitions are marked for use, that is, they have a value set for fstype. Note that the command disklabel -s can be used to unset any partitions that should not be marked for use. The specified partition and overlapping partitions have the fstype field set. The disk label is not present or is corrupted. You should install a disk label and set the fstype field of any partitions that are in use. You should correct any changes to the partition layout before trying to use the newfs command on a partition. An error was encountered during the checks. Either /etc/fdmns or /etc/fdmns/domain for an in-use domain does not exist or is corrupted. An error was encountered during the checks. The special device file for an in-use swap device does not exist. This indicates a failure in updating the disk label. The specified partition is set to an fstype, which is the return value. Refer to <sys/disklabel.h> for information on valid fstype values. RELATED INFORMATION
Commands: disklabel(8) Functions: set_usage(3) delim off check_usage(3)
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy