Question

Linux Server Administration - Create a Virtual Machine with two additional disks devices (excluding the operating...

Linux Server Administration -

Create a Virtual Machine with two additional disks devices (excluding the operating system).

On the first disk partition it to have 4 partitions of approximately 5GB in size each – these will be mounted on /mnt/a, /mnt/b, /mnt/c, /mnt/d. On the second disk create two partitions of 10GB in size which will be mounted in /mnt/e, /mnt/f. Once created impose a file system and make them mount at boot time.

What commands did you use to do all this?

Please provide screenshot. Thank you.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

$sudo parted -l

[sudo] password for user:

Model:

Disk /dev/vdc: 1 TB

Sector size (logical / physical): 512B/512B

Partition Table: msdos

Disk Flags:

Number Start       End          Size           Type      File System   Flags

1           1049KB   500MB      500MB        primary ext4              boot

2            501MB    149.51GB 149.51GB   primary                      lvm

$sudo parted /dev/vdc

GNU Parted 3.2

Using /dev/vdc

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted)

$dd if =/dev/vdc of= 5GB_HDD.img bs=1M count=5120

$sudo losetup -Pf -show 5GB_HDD.img

$lsblk

$mkfs.ext2

Add a comment
Know the answer?
Add Answer to:
Linux Server Administration - Create a Virtual Machine with two additional disks devices (excluding the operating...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT