Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Linux Installation

I need to create
/u00   40Gb
/u01  10Gb
/u02  10Gb
what is the command to create teh above
0
taaz
Asked:
taaz
  • 5
  • 5
  • 3
2 Solutions
 
parparovCommented:
Do you need to create the partitions on an existing installation?
Or do you need to make them during the install?
0
 
taazAuthor Commented:
can you give me the commands in
 both scenarios
0
 
Kerem ERSOYPresidentCommented:
Hi,

If you have enough spare space on your disk all you gonna do is to create the partitions first.. Since a disk could have a maximum of 4 primary partitions and I assume that you have at least 2 partitions (3 for most Linux installations) I'll suggest you to create an extended partition.

For I see the current situation could you post the output of this commands:

fdisk -l

Cheers,
K.


0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
taazAuthor Commented:
i installed the linux on vmware.

$ fdisk -i
fdisk: invalid option -- 'i'

Usage:
 fdisk [options] <disk>    change partition table
 fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks

Options:
 -b <size>                 sector size (512, 1024, 2048 or 4096)
 -c                        switch off DOS-compatible mode
 -h                        print help
 -u <size>                 give sizes in sectors instead of cylinders
 -v                        print version
 -C <number>               specify the number of cylinders
 -H <number>               specify the number of heads
 -S <number>               specify the number of sectors per track

0
 
Kerem ERSOYPresidentCommented:
> $ fdisk -i
> fdisk: invalid option -- 'i'

it is not i(I)  but l (L)

0
 
Kerem ERSOYPresidentCommented:
as usage indicates here:

Usage:
 fdisk [options] <disk>    change partition table
fdisk [options] -l <disk> list partition table(s)
 fdisk -s <partition>      give partition size(s) in blocks
0
 
taazAuthor Commented:
sorry

fdisk -I  gives the same out put as fdisk -i
0
 
Kerem ERSOYPresidentCommented:

> fdisk -I  gives the same out put as fdisk

How is this possible. The previous error stated that the -l option is available in usage.. is there anything wrong ??

May be you should try it once more with sudo ...
0
 
taazAuthor Commented:

   fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000956e8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          39      307200   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              39        3660    29084672   83  Linux
/dev/sda3            3660        3917     2064384   82  Linux swap / Solaris
[root@localhost tariq]#
0
 
parparovCommented:
Did you put a capital L by mistake?
0
 
taazAuthor Commented:
thks
0
 
parparovCommented:
It's a VMWare. That means, you need to assign more drivespace by VMWare host to this Linux. You'll need approximately 64GB more to make the three partitions you wanted.

Then, the easiest way to configure the partitions would be a curses-based partition editor like nparted.
0
 
Kerem ERSOYPresidentCommented:
You're welcome.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 5
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now