Sponsored Content
Top Forums Shell Programming and Scripting Virtual disk to create and partition Post 302419783 by Guccio on Saturday 8th of May 2010 04:54:32 PM
Old 05-08-2010
Virtual disk to create and partition

I have to do this exercise:
  • Create a virtual disk
  • Partition this disk
  • Create File system
  • Mount File System
I'm using Minix (which runs by Qemu as guest machine) on Linux (Host)

Is there anybody who knows how to solve first three point? Smilie
Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Disk Partition

Hi All, While my LINUX SERVER installed we didnt' used all the space for partitions. with what tool I can create a new partition or mount point to use the free space. I tried the command fdisk and diskdruid. They are not working. Thanks in advance With Best regards, Varma. (2 Replies)
Discussion started by: jarkvarma
2 Replies

2. Solaris

New disk - how to partition?

Have a solaris x86 running solaris 9. Root disk - logical - mirrored. I added 2 more disks today - and I have mirrored them using array configuration utility. I did a reconfiguration boot - and now I can see the logical disk using format: I then partitioned this the way I wanted (I hope)... (4 Replies)
Discussion started by: frustrated1
4 Replies

3. HP-UX

Am I running in a virtual partition

How can I tell if HP-UX 11 is running in a virtual partition from the command line? (1 Reply)
Discussion started by: Midcain
1 Replies

4. Solaris

Disk Partition

I have 3 disks to partition in following file system. c1t1d0 = 72gb /prod1 /prod2 /prod3 /prod4 /prod5 I am first time using "format" command to do this. How can i name with specified size. -Adeel (1 Reply)
Discussion started by: deal732
1 Replies

5. Filesystems, Disks and Memory

Partition disk

Hi, Can I partition disk in use or would I damage the file store on it? Regards Mehrdad (1 Reply)
Discussion started by: mehrdad68
1 Replies

6. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

7. HP-UX

HP-UX Virtual Partition

Hi guys can someone please advise... are there 2 types of VM used in HP-UX? because i have seen 2 sets of commands the one uses hpvm* (hpvmstatus) then the other it starts with v* (vparstatus) (2 Replies)
Discussion started by: sbn
2 Replies

8. Red Hat

How to partition your disk?

Hello, I am a new member of the forum. I need an idea on how to partition the disk. My situation is as follows: I have two 3TB disks ognuno.In 6TB total then, but I have to do to force a RAID 1 so my space will be 3TB. I'll have to force install RedHat 5.8 and liquids is to be taken in... (4 Replies)
Discussion started by: Joaquin
4 Replies

9. Solaris

Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture

have been trying to create a 2 GB ramdisk (virtual) to run on my T-2000 simulator (Legion) which has sun4v architecture. I have a SPARC workstation which runs on sun4u architecture with Solaris 10. I have created a ramdisk image using dd command, newfs, then used ufsrestore to restore the... (3 Replies)
Discussion started by: Zam_1234
3 Replies

10. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 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 09:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy