Yeah, it is divided across partitions - should be ok as LVM is designed to work that way. Eg. You add a pool of disks or partitions to LVM, and then when you create or expand filesystems, it carves the space out of a pool of disks. If you have a mix of disks that have a big difference in performance, ideally you'd want to group similarly performing disks into their own volume groups, but for partitions on the same disk there is no need really. Also later if you decide you want more space you can literally throw in another disk and perform the same steps on it to expand any filesystems you see fit.
The method you mentioned with gparted is also valid but more risky and I have never personally done it myself. LVM I work with everyday though and confident you could get that extra space without unnecessary risk to the data.
It looks like you have 3 partitions on /dev/sda, with around 70g unallocated.
You want to fdisk /dev/sda, and press n to create a new partition. Once done, w to write the changes.
You should now have a /dev/sda4, which you want to put under LVM control: pvcreate /dev/sda4
The command pvscan should now display sda3 and sda4, but the word "pve" will be missing from sda4.
You want to add sda4 to the pve volume group: vgextend pve /dev/sda4.
The command pvscan should now show "pve" next to both partitions.
Now you have extra space to play with for expanding or creating filesystems. Eg. To add 10g to a filesystem: lvextend -r -L +10g /dev/pve/some_filesystem.
The path in the cmd above should correspond to the path listed in the first column of df -h output. And don't miss the + symbol before the 10g, otherwise it will resize it to 10g instead of adding 10g.
I'm not a hardware guy but seems like it might be hard to find an 8core cpu that pulls less than 50w under load, let alone factoring in the rest of the computer. Have you looked at the protectli products? The vp4670 has 6 cores, is fanless, and draws a max of 55w.
Try the boot disk in another machine and see if it works? If I personally got this error message and I was sure the disk worked, I would look into hardware issues starting with a memtest boot disk.
I see a lot of mention of fdisk and people not directly answering your questions.
My understanding is that fdisk does not support gpt partitions which most modern disks are likely to be using. Additionally, fdisk is interactive, and while you can certainly work around that easily in scripts, parted usage is non-interactive.
Based on that, I would think parted would be the tool to go with since it is easily scriptable and has support the more modern GPT layout. (though I am certainly no expert in partitioning tools)
You can already launch graphical windows from inside tmux/screen assuming you are in a graphical environment, so not quite sure what you are asking. Can you draw a picture?
I saw your question was already answered but wanted to point out that stopping a service does not prevent it from starting again after a reboot. If your intent was to leave it off permanently, it needs to be set as disabled.
In my case it did. The unix team was hiring internally and I knew many people applying who were with the company much longer than me, but I was the only one who had a cert so it made the decision easy for them. YMMV but it can never hurt to have a cert on your resume.
Is that a thing? I feel like more often than not there is /lib/somelib.so that's a symlink to somelib-version.so and you can only symlink to one version at a time.
Maybe my understanding is completely off there but I do think that kind of helps illustrate why sometimes dealing with a docker image is easier.
Edit: maybe that's what was meant by dev version of a library and I missed it
There are some technical reasons other posts have already mentioned but for me personally it's because it leaves my system pristine. If I don't like whatever app I've installed I can "docker rm" it, and it's gone. It doesn't leave dot files in my home folder, conf files littering /etc, unneeded dependencies hanging around, etc.
Speaking of dependencies- those ship with the container. So if you have an app that requires a specific version of a library, then install another app that requires a different version of that library you are in a predicament. With a docker image, each app maintains their independent library and if I remove those apps later, the dependencies go with it.
Ease of use is another good one. Sure, it's usually easier to follow the install guide for a given app rather than learn docker. But if you learn docker, every app now installs the same way with the same cmds you used to install the last one, negating the need for following a different install process for different apps. Nowadays for complex apps not in my distro's repo, I go looking for docker images first because I know it will be easier and quicker to get running. If I do happen to goof the install, or break it during configuration, I can quickly and easily start from a clean slate via docker rm.
Since around 2001 I've ran linux on my server + windows on my desktop, because I just use the best tool for the job. Flash forward to when win10 came out, I ran it for a couple yrs and never could get used to it so swapped to linux on the desktop instead.
When I saw win11 I thought "I'm sure glad I swapped when I did." But if Microsoft ever does stop heading in their current direction and release something more akin to an updated XP or win7, I would certainly consider moving back - but it would have to be the better desktop solution. (I only swapped away when I felt it no longer was.)
If I am being honest, "learning linux" isnt something you do by using the desktop environment - you need shell experience. You don't need to ditch windows for that. Instead, just access a shell over ssh. You'll need to install linux on another device or VM. Don't spend any money here, any old trash machine will do the job. Otherwise virtualbox is free and works fine and will enable you to get your feet wet with virtualization at the same time.
Then just perform your usual work under /mnt/bindmount.
When finished:
umount /mnt/bindmount
rmdir /mnt/bindmount
Edit: this works because the filesystem being replicated via a bindmount does not include other filesystems below it. This means it's also useful for removing files that have been "mounted over" (eg: a bunch of stuff got written to /var/log/storage2 before it was mounted, but now your app is live and you can't unmount)
Setting up sudo without a password requires the root account, as does the single user mode that was mentioned by another commenter. So neither of these options meet your teacher's criteria.
If you want to make your own, you should start by checking the source code on projects who have already implemented this type of work such as tcpdump, p0f, dsniff, nmap, etc.
Not really sure to be honest, but you might try to enable scaling under settings to reduce the quality shown in the playback preview - I have seen that recommended before.
Yeah, it is divided across partitions - should be ok as LVM is designed to work that way. Eg. You add a pool of disks or partitions to LVM, and then when you create or expand filesystems, it carves the space out of a pool of disks. If you have a mix of disks that have a big difference in performance, ideally you'd want to group similarly performing disks into their own volume groups, but for partitions on the same disk there is no need really. Also later if you decide you want more space you can literally throw in another disk and perform the same steps on it to expand any filesystems you see fit.
The method you mentioned with gparted is also valid but more risky and I have never personally done it myself. LVM I work with everyday though and confident you could get that extra space without unnecessary risk to the data.
It looks like you have 3 partitions on /dev/sda, with around 70g unallocated.
You want to fdisk /dev/sda, and press n to create a new partition. Once done, w to write the changes.
You should now have a /dev/sda4, which you want to put under LVM control: pvcreate /dev/sda4
The command pvscan should now display sda3 and sda4, but the word "pve" will be missing from sda4.
You want to add sda4 to the pve volume group: vgextend pve /dev/sda4.
The command pvscan should now show "pve" next to both partitions.
Now you have extra space to play with for expanding or creating filesystems. Eg. To add 10g to a filesystem: lvextend -r -L +10g /dev/pve/some_filesystem.
The path in the cmd above should correspond to the path listed in the first column of df -h output. And don't miss the + symbol before the 10g, otherwise it will resize it to 10g instead of adding 10g.
Hope this helps!
I'm not a hardware guy but seems like it might be hard to find an 8core cpu that pulls less than 50w under load, let alone factoring in the rest of the computer. Have you looked at the protectli products? The vp4670 has 6 cores, is fanless, and draws a max of 55w.
Try the boot disk in another machine and see if it works? If I personally got this error message and I was sure the disk worked, I would look into hardware issues starting with a memtest boot disk.
I see a lot of mention of fdisk and people not directly answering your questions.
My understanding is that fdisk does not support gpt partitions which most modern disks are likely to be using. Additionally, fdisk is interactive, and while you can certainly work around that easily in scripts, parted usage is non-interactive.
Based on that, I would think parted would be the tool to go with since it is easily scriptable and has support the more modern GPT layout. (though I am certainly no expert in partitioning tools)
You can already launch graphical windows from inside tmux/screen assuming you are in a graphical environment, so not quite sure what you are asking. Can you draw a picture?
I saw your question was already answered but wanted to point out that stopping a service does not prevent it from starting again after a reboot. If your intent was to leave it off permanently, it needs to be set as disabled.
In my case it did. The unix team was hiring internally and I knew many people applying who were with the company much longer than me, but I was the only one who had a cert so it made the decision easy for them. YMMV but it can never hurt to have a cert on your resume.
/usr/local/bin would be a good choice for that.
Nice, this is definitely good info to know!
Is that a thing? I feel like more often than not there is /lib/somelib.so that's a symlink to somelib-version.so and you can only symlink to one version at a time.
Maybe my understanding is completely off there but I do think that kind of helps illustrate why sometimes dealing with a docker image is easier.
Edit: maybe that's what was meant by dev version of a library and I missed it
There are some technical reasons other posts have already mentioned but for me personally it's because it leaves my system pristine. If I don't like whatever app I've installed I can "docker rm" it, and it's gone. It doesn't leave dot files in my home folder, conf files littering /etc, unneeded dependencies hanging around, etc.
Speaking of dependencies- those ship with the container. So if you have an app that requires a specific version of a library, then install another app that requires a different version of that library you are in a predicament. With a docker image, each app maintains their independent library and if I remove those apps later, the dependencies go with it.
Ease of use is another good one. Sure, it's usually easier to follow the install guide for a given app rather than learn docker. But if you learn docker, every app now installs the same way with the same cmds you used to install the last one, negating the need for following a different install process for different apps. Nowadays for complex apps not in my distro's repo, I go looking for docker images first because I know it will be easier and quicker to get running. If I do happen to goof the install, or break it during configuration, I can quickly and easily start from a clean slate via docker rm.
Since around 2001 I've ran linux on my server + windows on my desktop, because I just use the best tool for the job. Flash forward to when win10 came out, I ran it for a couple yrs and never could get used to it so swapped to linux on the desktop instead.
When I saw win11 I thought "I'm sure glad I swapped when I did." But if Microsoft ever does stop heading in their current direction and release something more akin to an updated XP or win7, I would certainly consider moving back - but it would have to be the better desktop solution. (I only swapped away when I felt it no longer was.)
I personally still call it win, short for winning. Bind win+enter to terminal for a double dose of winning.
Relevant
If I am being honest, "learning linux" isnt something you do by using the desktop environment - you need shell experience. You don't need to ditch windows for that. Instead, just access a shell over ssh. You'll need to install linux on another device or VM. Don't spend any money here, any old trash machine will do the job. Otherwise virtualbox is free and works fine and will enable you to get your feet wet with virtualization at the same time.
I do it with bind mounts.
mkdir /mnt/bindmount
mount -o bind /var/log /mnt/bindmount
Then just perform your usual work under /mnt/bindmount.
When finished:
umount /mnt/bindmount
rmdir /mnt/bindmount
Edit: this works because the filesystem being replicated via a bindmount does not include other filesystems below it. This means it's also useful for removing files that have been "mounted over" (eg: a bunch of stuff got written to /var/log/storage2 before it was mounted, but now your app is live and you can't unmount)
If you are using bash, you might get some detail regarding this with: type -a pacman
FWIW, exact same thing shown here
Setting up sudo without a password requires the root account, as does the single user mode that was mentioned by another commenter. So neither of these options meet your teacher's criteria.
If you want to make your own, you should start by checking the source code on projects who have already implemented this type of work such as tcpdump, p0f, dsniff, nmap, etc.
Have you tried creating the folder? As root: mkdir /modules
Also, see if you can get a feel for which line is causing the error: grep -C2 /modules /etc/profile.
Not really sure to be honest, but you might try to enable scaling under settings to reduce the quality shown in the playback preview - I have seen that recommended before.
Can you upload a screen shot?
I tried several recently and settled on shotcut, would highly recommend if it has the features you require.