Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating mountpoint in Linux from rawdevices without lv's Post 302928296 by cjcox on Wednesday 10th of December 2014 02:39:08 PM
Old 12-10-2014
Raw device has a filesystem? If so, then you should just be able to mount /dev/sda (for example). If there is no filesystem, there's nothing to mount really. You can treat it like a "stream" though (for example, like tape). Usually, you'll want to put a filesystem on it... but sure, you can do that without a partition. I suppose I'm trying to guess at what you are actually wanting (?)
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

HPUX : identify NFS mountpoint

Is there a way to identify a directory as the start of an NFS mountpoint in HPUX 11.0? Using existing utilities & without root priv. If you stat the directory and use the S_ISNWK macro you can find network special files that way. The requirement will have to go through other channels if I need... (5 Replies)
Discussion started by: jim mcnamara
5 Replies

2. AIX

Do I need /etc/sysconfig/rawdevices on AIX

When install Oracle 10, for linux, I need input entries in /etc/sysconfig/rawdevices . However, for AIX, do I need input somthing in /etc/sysconfig/rawdevices ? (1 Reply)
Discussion started by: rainbow_bean
1 Replies

3. Solaris

problem in restoring mountpoint in Solaris

Hi, I am restoring the existing mount point on Solaris and getting below mentioned error mount: /dev/dsk/c0t2d0s6 is already mounted or /billing is busy I uses truss command to see the output and snapshot is below. Please help me to restore the mount point, # truss -fa mount -F... (3 Replies)
Discussion started by: helplineinc
3 Replies

4. Shell Programming and Scripting

Get mountpoint from filename

Dear Guru's Given a full filename /a/b/c/d/file.txt how do i determine what part is the mount point ( say /a/b). Cheers, Karel (6 Replies)
Discussion started by: karelb
6 Replies

5. UNIX for Dummies Questions & Answers

Testing NAS /mountpoint accessible

Hello. What's the best way to ensure that a NFS filesystem mounted from a disk-cabine (NAS) is accessible? My proposal: 1. ping to the ip of the cabine 2. verify filesystem is mounted 3. touch a file inside the /mountpoint Any other suggestions? Thank you! (2 Replies)
Discussion started by: asanchez
2 Replies

6. UNIX for Advanced & Expert Users

rawdevices help

why raw devices are used (6 Replies)
Discussion started by: robo
6 Replies

7. UNIX for Advanced & Expert Users

Filesystem and partition, mountpoint

Hello All, I am new to System/plat-form administration work. Right now I am facing some issues while creating the filesystem and mounpoint. I am using Linux 6.0 SuSE 11. Last time I was used one command to partition the given space along with filesystem in SuSE 9 and it was done in GUI mode but... (0 Replies)
Discussion started by: nvkuriseti
0 Replies

8. UNIX for Advanced & Expert Users

Unable to format new mountpoint

Can some one help me i try to mkfs new mountpoint from storageIBM but give some problem # mkfs -t ext3 /dev/sdd1 mke2fs 1.39 (29-May-2006) /dev/sdd1 is apparently in use by the system; will not make a filesystem here! my os is redhat 5.3 using fdisk # fdisk -l Disk /dev/sda: 298.9... (4 Replies)
Discussion started by: vickyid04
4 Replies

9. AIX

Space not getting released on the mountpoint

root@atldc-oragrid-ux01:/oragrid_01> du -sg * 0.58 11gR2gridBase 47.31 Grid_11203 4.17 app 0.00 lost+found 0.01 oraInventory root@atldc-oragrid-ux01:/oragrid_01> cd Grid_11203 root@atldc-oragrid-ux01:/oragrid_01/Grid_11203> du -sg *|sort 0.00 JRE 0.00 OPatch_old 0.00 ... (11 Replies)
Discussion started by: Vishal_dba
11 Replies

10. Shell Programming and Scripting

Mountpoint monitoring script

Hi, I am new to shell scripting. I prepared a very simple script to monitor mount points but not geting desired output. df -h|awk -F' ' '{ if ($5 >= 80) print "CRITICAL\n" $NF " mount point has reached " $5;}'|sed -n '3,$p' When I run above script in Sun solaris box it is executing... (8 Replies)
Discussion started by: sv0081493
8 Replies
guestunmount(1) 					      Virtualization Support						   guestunmount(1)

NAME
guestunmount - Unmount a guestmounted filesystem SYNOPSIS
guestunmount mountpoint guestunmount --fd=<FD> mountpoint DESCRIPTION
guestunmount is a utility to clean up mounted filesystems automatically. guestmount(1) mounts filesystems using libguestfs. This program unmounts the filesystem when a program or script has finished with it. guestunmount is a wrapper around the FUSE fusermount(1) program, which must exist on the current "PATH". There are two ways to use guestunmount. When called as: guestunmount mountpoint it unmounts "mountpoint" immediately. When called as: guestunmount --fd=FD mountpoint it waits until the pipe "FD" is closed. This can be used to monitor another process and clean up its mountpoint when that process exits, as described below. FROM PROGRAMS You can just call "guestunmount mountpoint" from the program, but a more sophisticated way to use guestunmount is to have it monitor your program so it can clean up the mount point if your program exits unexpectedly. In the program, create a pipe (eg. by calling pipe(2)). Let "FD" be the file descriptor number of the read side of the pipe (ie. "pipefd[0]"). After mounting the filesystem with guestmount(1) (on "mountpoint"), fork and run guestunmount like this: guestunmount --fd=FD mountpoint Close the read side of the pipe in the parent process. Now, when the write side of the pipe (ie. "pipefd[1]") is closed for any reason, either explicitly or because the parent process exits, guestunmount notices and unmounts the mountpoint. If your operating system supports it, you should set the "FD_CLOEXEC" flag on the write side of the pipe. This is so that other child processes don't inherit the file descriptor and keep it open. Guestunmount never daemonizes itself. FROM SHELL SCRIPTS Since bash doesn't provide a way to create an unnamed pipe, use a trap to call guestunmount on exit like this: trap "guestunmount mountpoint" EXIT INT QUIT TERM OPTIONS
--fd=FD Specify the pipe file descriptor to monitor, and delay cleanup until that pipe is closed. --help Display brief help and exit. -q --quiet Don't display error messages from fusermount. The return status is still set (see "EXIT STATUS" below). --no-retry --retry=N By default, guestunmount will retry the fusermount operation up to 5times (that is, it will run it up to 6times = 1try + 5retries). Use --no-retry to make guestunmount run fusermount only once. Use --retry=N to make guestunmount retry "N" times instead of 5. guestunmount performs an exponential back-off between retries, waiting 1second, 2seconds, 4seconds, etc before each retry. -V --version Display the program version and exit. ENVIRONMENT VARIABLES
"PATH" The fusermount(1) program (supplied by FUSE) must be available on the current "PATH". EXIT STATUS
This program returns 0 if successful, or one of the following error codes: 1 Program error, eg. could not allocate memory, could not run fusermount. See the error message printed for more information. 2 The mount point could not be unmounted even after retrying. See the error message printed for the underlying fusermount error. 3 The mount point is not mounted. SEE ALSO
guestmount(1), fusermount(1), pipe(2), "MOUNT LOCAL" in guestfs(3), http://libguestfs.org/, http://fuse.sf.net/. AUTHORS
Richard W.M. Jones ("rjones at redhat dot com") COPYRIGHT
Copyright (C) 2013 Red Hat Inc. LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. BUGS
To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools When reporting a bug, please supply: o The version of libguestfs. o Where you got libguestfs (eg. which Linux distro, compiled from source, etc) o Describe the bug accurately and give a way to reproduce it. o Run libguestfs-test-tool(1) and paste the complete, unedited output into the bug report. libguestfs-1.22.6 2013-08-24 guestunmount(1)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy