I'm trying to do this assginement in the schools (VM network) and every time I try to create a partition I'm told it is out of range. I'm sure i'm just making a silly error, but could someone point out what i'm doing or in the right direction. Here is the assignement just so it's clearly exactly what i'm working on and a picture of my issue. Thanks to everyone in advanced.
Run the mount command
- Run
fdisk
to create a partition on /dev/sdb
a.
Make it a primary partition 1GB in size, starting at the beginning of free space
b. Create another partition that’s 768M in size
c.
Create one last primary partition that’s 5GB in size
d. Write the partition table and exit
- Run
partprobe
and show me the new partitions have been created
How can you see what size the partitions are?
Now format the first 1G partition with ext4 and create a mount point /testDisk
Use
e2label
to apply the label of realpart to the file system. Also show what command you could use to verify
label succeeded. Make sure to show me both steps.
Mount the new file system to /testDisk
Show me how to see how much space is available on the new device
Make the second 768MB partition a swap filesystem and add to existing swap space live
a.
Show me how you see how much swap you have both before and after you’ve successfully added swap
- Use
blkid
to view information so far
Set the swap and /testDisk filesystems to mount on boot, using the UUID format
Use rsync to copy the entire /boot directory to your new /testDisk partition
a.
rsync –arvP /boot /testDisk
- Create an forensic image using dd
a.
dd if=/dev/sdb1 of=/tmp/testDisk.img
- Mount the image files as if it were a real disk and compare ls outputs
a.
mkdir /testDisk.img
b. mount –o loop /tmp/testDisk.img /testDisk.img
c.
ls -alF /testDisk/boot/
d. ls –alF /testDisk.img/boot
[link] [comments]