Sponsored Content
Full Discussion: Unable to mount disk
Operating Systems Linux Ubuntu Unable to mount disk Post 302574379 by robo on Thursday 17th of November 2011 07:35:32 AM
Old 11-17-2011
before we mount any drive we must specify a filesystem to it
following code may help you cheers

Code:
[root@redhat-testpc ~]# mkfs --help
mkfs.ext2: invalid option -- -
Usage: mkfs.ext2 [-c|-t|-l filename] [-b block-size] [-f fragment-size]
        [-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes]
        [-m reserved-blocks-percentage] [-o creator-os] [-g blocks-per-group]
        [-L volume-label] [-M last-mounted-directory] [-O feature[,...]]
        [-r fs-revision] [-R options] [-qvSV] device [blocks-count]

 

9 More Discussions You Might Find Interesting

1. AIX

AIX 4.3 - unable to mount one of our VG's

AFter a hardware issue - scsi controller replaced and hadware is now functioning again . Able to mount all VG except one. Need AIX 4.3 experience to assist... Thanks (0 Replies)
Discussion started by: pmcopoc
0 Replies

2. Solaris

/usr unable to mount

Hi All, I need help on this issue and it is a production server. /usr is unable to mount and make system can't even type any commands. Only this show and no changes makes to the system. ERROR: svc:/system/filesystem/root:default failed to mount /usr (see 'svcs -x' for details) ... (3 Replies)
Discussion started by: mailbox80
3 Replies

3. Solaris

Unable to mount Metadevice

Hi, I am running Solaris 8 on a V880 which has recently crashed. It has got a fibre connection to a StorageTrek array containing my database info. Since the crash I have been unable to mount the 2 metadevices which correspond to /spool & /apps - these FS's contain my db info and theredore I... (20 Replies)
Discussion started by: Duffs
20 Replies

4. Fedora

unable to mount NTFS

Hi, I'm new for unix. I tried to mount windows NTFS partition in Fedora unix, but it is saying ntfs not found. The command i used is mount /dev/sdb1 -t ntfs /mnt/drive1 and how to find the available filesystem type?. (1 Reply)
Discussion started by: gwgreen1
1 Replies

5. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

6. UNIX for Dummies Questions & Answers

Unable to mount CDROM

Hi I have created a RHEL6 machine that is hosted on VMWare player that in turn runs off my Windows 7 PC. When I try and mount the CDROM on the RHEL6 box I get the following output: $ mount /dev/cdrom/media mount: can't find /dev/cdrom/media in /etc/fstab or /etc/mtab $ Here is the... (3 Replies)
Discussion started by: accipiter1
3 Replies

7. UNIX for Dummies Questions & Answers

Unable to mount CD rom

hi Am trying to mount a cdrom which has a blank cd into it, using the command: mount -v cdrfs -o ro /dev/cd0 /mnt Am getting this error: # df -Ig Filesystem GB blocks Used Free %Used Mounted on /dev/hd4 0.50 0.19 0.31 38% / /dev/hd2 ... (1 Reply)
Discussion started by: kamaldev
1 Replies

8. Red Hat

Unable to mount.

Hi, I am unable to mount the AIX share on Red Hat Linux 5.5 getting below error on linux server while mounting. reason given by server: unknown nfs status return value: -1 I have checked on AIX side. lssrc -g nfs showing below output. bash-3.00# lssrc -g nfs Subsystem ... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

9. UNIX for Dummies Questions & Answers

Unable to mount NFS

Hello, While mounting NFS below error is coming: # mount -t nfs 10.65.150.69:/lvsnap /lvsnap mount: mount to NFS server '10.65.150.69' failed: RPC Error: Program not registered. Please advise. Best regards, Vishal (2 Replies)
Discussion started by: admin_db
2 Replies
MKFS(8) 						      System Manager's Manual							   MKFS(8)

NAME
mkfs - build a Linux file system SYNOPSIS
mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ] DESCRIPTION
mkfs is used to build a Linux file system on a device, usually a hard disk partition. filesys is either the device name (e.g. /dev/hda1, /dev/sdb2) or the mount point (e.g. /, /usr, /home) for the file system. blocks is the number of blocks to be used for the file system. The exit code returned by mkfs is 0 on success and 1 on failure. In actuality, mkfs is simply a front-end for the various file system builders (mkfs.fstype) available under Linux. The file system-spe- cific builder is searched for in a number of directories like perhaps /sbin, /sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is defined at compile time but at least contains /sbin and /sbin/fs), and finally in the directories listed in the PATH enviroment variable. Please see the file system-specific builder manual pages for further details. OPTIONS
-V Produce verbose output, including all file system-specific commands that are executed. Specifying this option more than once inhibits execution of any file system-specific commands. This is really only useful for testing. -t fstype Specifies the type of file system to be built. If not specified, the default file system type (currently ext2) is used. fs-options File system-specific options to be passed to the real file system builder. Although not guaranteed, the following options are sup- ported by most file system builders. -c Check the device for bad blocks before building the file system. -l filename Read the bad blocks list from filename -v Produce verbose output. BUGS
All generic options must precede and not be combined with file system-specific options. Some file system-specific programs do not support the -v (verbose) option, nor return meaningful exit codes. Also, some file system-specific programs do not automatically detect the device size and require the blocks parameter to be specified. AUTHORS
David Engel (david@ods.com) Fred N. van Kempen (waltje@uwalt.nl.mugnet.org) Ron Sommeling (sommel@sci.kun.nl) The manual page was shamelessly adapted from Remy Card's version for the ext2 file system. SEE ALSO
fs(5), badblocks(8), fsck(8), mkdosfs(8), mke2fs(8), mkfs.bfs(8), mkfs.ext2(8), mkfs.ext3(8), mkfs.minix(8), mkfs.msdos(8), mkfs.vfat(8), mkfs.xfs(8), mkfs.xiafs(8) Version 1.9 Jun 1995 MKFS(8)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy