Pi for all
We are pretty much there, but there are still a couple of people without a personal Pi.
Also, be sure you can SSH into your Pi without a password. If you aren’t there yet, look at the SSH/OpenSSH/Keys page.
repeating last week
- Comparison of file systems
- Design of File Allocation Table (FAT) file system
- Microsoft EFI FAT32 File System Specification
- ext4 disk layout
- extents, sequential lists, trees, extants
- Directory search — sequential list, b-trees, Htrees
- NTFS internals in CS 537 at University of Wisconsin
- Software RAID on Linux
- Ubuntu Wiki on LVM
- a much longer Beginner’s Guide to LVM
- short Ubuntu Wiki on XFS
- long Red Hat documentation on XFS
A lab part
Test the aliases
Your Pi should have two aliases, specified with a canonical name record: lastname-pi.cs.unca.edu and pi-lastname.cs.unca.edu Make sure that these are available.
Also, verify that you have password-less ssh to your Pi as required in Homework 6.
Finally, if you are using a Pi you own, you need to send me its hardware address and give me non-sudo account on your Pi; so I can check homework assignments you complete on your Pi.
A file exercise — Homework 7 — due 21 March
Make sure your Pi doesn’t have any logical volumes. Run pvscan, vgscan and lvscan to find logical volume structures. Use lvremove, vgremove and pvremove to delete them.
Keep the partitions for / (/dev/mmcblk0p2) and /boot (/dev/mmcblk0p1); but delete all others.
Partition your Pi to match the following and, after you have carefully checked your partititions, reboot.
Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 131071 122880 60M c W95 FAT32 (LBA) /dev/mmcblk0p2 131072 16908287 16777216 8G 83 Linux /dev/mmcblk0p3 16908288 27394047 10485760 5G 83 Linux /dev/mmcblk0p4 27394048 31422463 4028416 1.9G 83 Linux
Now format /dev/mmcblk0p4 to be an ext4 file system.
Within the /dev/mmcblk0p3 partition create
a volume group
csci373VG with three logical volumes:
msdos373LV with 32 MB,
ext373LV with 2 GB, and
xfs373LV with 2 GB.
The ubutu LVM wiki will
show you how to do this.
Run pvdisplay, vgdisplay and lvdisplay to verify that you have performed this correctly. Check out the following capture of the output of lvdisplay to see if you got it right.
Create mount points for your four and modify /etc/passwd so these these are mounted at boot time. Check out an edited capture of the output of df-out.txt to see if you got it right.