Thank you oshnlvr!
I have done as you said and set up root with BTRFS and everything else as ext4.
I actually don't want to share with Windows. I used to run Windows and only mentioned it because I wanted to have a separate partition for my non-system stuff. And since I don't speak Linux fluently yet, I had to speak Windows. :-) It is my intention to completely drop Windows because I'm sick of my favorite 3rd party apps going unsupported because the developers are sick of MS changing the kernel every two weeks.
I now have my system configured at a base level and need to find a way to back it up for quick restoration should it go boom again. But that's another thread...
Announcement
Collapse
No announcement yet.
Please Help Configuring Thinkpad X201
Collapse
This topic is closed.
X
X
-
Originally posted by TwoFistedJustice View PostWould you recommend BTRFS for all the partitions or just ROOT?
Also, I suggest making the SWAP partition at the beginning or very end of the disk. Then later if you want to re-partition for any reason, SWAP is not in the way.
I've written extensively here about BTRFS and how to use it. One of its primary advantages is the use of subvolumes. The *buntu installers will automatically put the operating system files into a subvolume labeled "@" and the home folders into "@home". This segregates the files but allows them to reside on the same file system - which means all the free space is available to either subvolume. They expand and contract as usage requires. Snapshots and backups can be made directly from the subvolumes making rolling back to a previous state and restoring backups super easy.
The only major caveat is that BTRFS doesn't handle dynamically sized files at this time. Those are primarily only swap files and dynamically sized virtual disk drives. So if you are to use BTRFS as your boot file system, a swap partition is necessary and should be created before installation (makes it easier and it's selected automatically at install time). Virtual disk drives for virtual machines (like VMware or VirtualBox) can be put on a different file system or simply made fixed size rather than dynamic.
Once you're up and running, do some reading about BTRFS - here on this forum and on the Arch Wiki pages. You'll be amazed at what it can do.
Welcome to Linux and KFN.
- Top
- Bottom
Leave a comment:
-
Originally posted by oshunluvr View PostIMO, the best partition setup given what you've offered for information is this:ROOT ~30 to 40GB and using BTRFS file system.Here's my reasoning:
SWAP ~8GB assuming that's equal to your RAM size.
FILES - The remaining.
By using BTRFS for ROOT
- Top
- Bottom
Leave a comment:
-
I'm just going to pile onto most of what jglen490 has already said:
Originally posted by TwoFistedJustice View Post1) Ownership. Some files and non-native applications (Webstorm, Postman, Robomongo, etc) seemed to be owned by root, and others by User.
How do i make it so that User owns all the files that I create and all the non-native applications that I install ?
Am I even barking up the right tree?
One thing to consider - if you're going to experiment with things in your home, simply make a second user and log into that account to experiment. If your experiment works out, you can repeat the process as your regular user. If it doesn't, just delete the second user account and make a new one in it's place.
Originally posted by TwoFistedJustice View Post2) I keep all of my important files on a separate partition. In Windows I used a logical partition D:/ for this. I tried the same thing in Linux and found that some programs, (i.e. Webstorm) couldn't write to that drive. So now I've lost my settings file for Linux.
How do I make it so Webstorm and other applications can fully access my files drive?
Originally posted by TwoFistedJustice View Post3) My partition set up looked something like this:
ROOT ~20G
HOME ~ 30G
SWAP ~ 8G
FILES - The rest of the drive space
What is an optimal partition scheme for Kubuntu given a 256G ssd?
IMO, the best partition setup given what you've offered for information is this:ROOT ~30 to 40GB and using BTRFS file system.Here's my reasoning:
SWAP ~8GB assuming that's equal to your RAM size.
FILES - The remaining.
By using BTRFS for ROOT, the 30GB of space will be shared by the Linux OS and your home. BTRFS uses subvolumes to separately contain files so your home would be in a separate subvolume (container) from the operating system. This allows easier backups of home and the OS without having to divide the free space and potentially waste it. With only 256GB drive, you should be mindful of wasting space.
Originally posted by TwoFistedJustice View Post4) Can I install my applications to Home and then keep them intact if the main OS goes down, as just happened? If so, how?
Originally posted by TwoFistedJustice View Post5) My logs showed there was some kind of driver problem with ACPI.
How do I avoid this?
Code:\- The start-up result is RESULT. Feb 07 12:15:55 BadWolf systemd-udevd[355]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable. Feb 07 12:15:55 BadWolf kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x0000000000001028-0x000000000000102F conflicts with OpRegion 0x0000000000001000-0x000000000000107F (\_SB.PCI0.LPC.PMIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x00000000000011C0-0x00000000000011CF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x00000000000011B0-0x00000000000011BF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: lpc_ich: Resource conflict(s) found affecting gpio_ich Feb 07 12:15:55 BadWolf systemd[1]: Created slice system-systemd\x2dbacklight.slice.
- Top
- Bottom
Leave a comment:
-
Typically, the Thinkpad series of laptops are well supported by all Linux distros. The hardware is pretty common and therefore the needed libraries and other objects are a prt of the basic install. For your "files", which you define about the same way that I define what is in my /home/multimedia, can go under /home as I do or under /mnt as others do. I would not recommend using /media for that purpose - there MIGHT be a conflict with some transient mount such as a USB drive. You can put it in a separate partition on the hard drive or just keep it in a subdirectory under either /home or /mnt and just make sure you provide enough space in the associated partition.
Right now your ACPI issues seem to be warnings and not errors, so if there is something that needs to be installed or updated that can be done within the session. Installs can be done with the Synaptic GUI or apt in konsole. I'm not all that familiar with the specific issue you seem to have withshpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Code:john@john-Desktop:/$ sudo find / -name shpchp* [sudo] password for john: /lib/modules/4.15.0-44-generic/kernel/drivers/pci/hotplug/shpchp.ko /lib/modules/4.15.0-45-generic/kernel/drivers/pci/hotplug/shpchp.ko find: ‘/proc/2023/task/2023/net’: Invalid argument find: ‘/proc/2023/net’: Invalid argument /sys/bus/pci/drivers/shpchp /sys/module/shpchp /sys/module/shpchp/parameters/shpchp_poll_time /sys/module/shpchp/parameters/shpchp_poll_mode /sys/module/shpchp/parameters/shpchp_debug
And then:
Code:john@john-Desktop:/$ dmesg|grep -A 10 -B 10 shpchp [ 13.878608] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ 14.158709] systemd-journald[324]: Received request to flush runtime journal from PID 1 [ 15.342777] lp: driver loaded but no devices found [ 16.036060] ppdev: user-space parallel port driver [ 16.534789] parport_pc 00:01: reported by Plug and Play ACPI [ 16.534832] parport0: PC-style at 0x378, irq 5 [PCSPP,TRISTATE,EPP] [ 16.632060] lp0: using parport0 (interrupt-driven). [ 24.941079] nf_conntrack version 0.5.0 (65536 buckets, 262144 max) [ 25.003682] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 25.308757] wmi_bus wmi_bus-PNP0C14:00: WQAA data block query control method not found [ 25.368703] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 25.369043] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 25.370315] mei_me 0000:00:16.0: enabling device (0000 -> 0002) [ 25.392080] PKCS#7 signature not signed with a trusted key [ 25.400098] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 237 [ 25.426256] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915]) [ 25.426357] snd_hda_intel 0000:01:00.1: Disabling MSI [ 25.426360] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client [ 25.547035] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC892: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line [ 25.547036] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 25.547038] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
Your situation will probably be different, and may be due to installing or plugging in additional hardware not normally a part of your laptop.
- Top
- Bottom
Leave a comment:
-
Thank you jglen940 for you help!
3) "files" are anything I want to keep for a long time: pictures, config files, word docs, etc. Maybe "hoard" (as in "My neighbor is a hoarder who has a hoard") is a better word for this drive than "files". So I have a logical Hoard-drive.
4) Ok I did a bad thing then and installed a couple of apps to Home. Chrome and postman I think. Do you think this may be what kicked me into emergency mode?
5) Nothing that should affect that. I did install MongoDB official version, then I had to uninstall it because it doesn't work, and re-install Ubuntu's native Mongo packages. - Is there a way to fix the ACPI drivers in emergency mode?
- Top
- Bottom
Leave a comment:
-
1) It's generally not a good idea to mess with ownership. A well designed and built user application will always provide for user read and execute of the program file. A system application has to be owned by root, but may provide for a group to which a user may belong if there is some - such as printing. If you go into a konsole and enter the command "groups", it will shows you what groups you are a member of for system applications that you personally are allowed to interact with, like this:Code:john@john-Desktop:/tmp$ groups john adm cdrom sudo dip plugdev lpadmin sambashare john@john-Desktop:/tmp$
Code:john@john-Desktop:/$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 1.6M 1.6G 1% /run /dev/sda2 37G 11G 24G 31% / tmpfs 7.8G 45M 7.8G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sda1 476M 6.1M 469M 2% /boot/efi /dev/sda3 95G 27G 64G 30% /home /dev/sdb1 293G 67G 212G 24% /home/multimedia tmpfs 1.6G 0 1.6G 0% /run/user/119 tmpfs 1.6G 36K 1.6G 1% /run/user/1000
3) which brings up the question of what is "FILES" in you layout. Do you have a separate partition that is used to mount a directory named FILES? Not saying its illegal or anything, just unusual. Also, what do you anticipate storing in FILES?
4) It's usually not a good thing to install applications to /home, precisely because of ownership and permissions issues. An application installed to /home can, and most likely will completely screw permissions on the entire directory. So don't mix data and applications, even if you think you "own" the application because you install the application. The /opt directory is often used for applications that are installed outside the OS's normal packaging system. If you can find an application that uses the Kubuntu Debian packaging system, it will usually behave much better than some others. Snaps and flatpaks are outside the Debian method, also. And even if a particular application is several versions ahead of the Debian version, the Debian version is compiled against the kernel and libraries that are in the current Kubuntu version, so they will run more smoothly. There are exceptions, but you most definitely do not run down a rabbit hole of chasing kernels and libraries that work with some application and not so well with the rest of Kubuntu. There are people who actually build their own Linux from top to bottom. But they are rare birds.
5) Did you install or plugin some hardware, or some non standard app or library before that started to show? Or was that the immediate result after your re-install?
- Top
- Bottom
Leave a comment:
-
Please Help Configuring Thinkpad X201
I'm still new to Linux. My first Kubuntu installation died after about a week. Can't fix it. Maybe someone else could. But I can't. So I'm preparing to reinstall and try again.
I ran into some issues with my first installation, and I'd like to avoid them this time, but I haven't got a clue how.
My system is a Lenovo Thinkpad x201, 8G RAM, 256G ssd
1) Ownership. Some files and non-native applications (Webstorm, Postman, Robomongo, etc) seemed to be owned by root, and others by User.
How do i make it so that User owns all the files that I create and all the non-native applications that I install ?
Am I even barking up the right tree?
2) I keep all of my important files on a separate partition. In Windows I used a logical partition D:/ for this. I tried the same thing in Linux and found that some programs, (i.e. Webstorm) couldn't write to that drive. So now I've lost my settings file for Linux.
How do I make it so Webstorm and other applications can fully access my files drive?
3) My partition set up looked something like this:
ROOT ~20G
HOME ~ 30G
SWAP ~ 8G
FILES - The rest of the drive space
What is an optimal partition scheme for Kubuntu given a 256G ssd?
4) Can I install my applications to Home and then keep them intact if the main OS goes down, as just happened? If so, how?
5) My logs showed there was some kind of driver problem with ACPI.
How do I avoid this?
Code:\- The start-up result is RESULT. Feb 07 12:15:55 BadWolf systemd-udevd[355]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable. Feb 07 12:15:55 BadWolf kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x0000000000001028-0x000000000000102F conflicts with OpRegion 0x0000000000001000-0x000000000000107F (\_SB.PCI0.LPC.PMIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x00000000000011C0-0x00000000000011CF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x00000000000011B0-0x00000000000011BF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\_SB.PCI0.LPC.LPIO) (20170831/utaddress-247) Feb 07 12:15:55 BadWolf kernel: ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver Feb 07 12:15:55 BadWolf kernel: lpc_ich: Resource conflict(s) found affecting gpio_ich Feb 07 12:15:55 BadWolf systemd[1]: Created slice system-systemd\x2dbacklight.slice.
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: