hey assistent, I am stuck in recovery mod for my opensuse machine. I accidently deleted…
- User
hey assistent, I am stuck in recovery mod for my opensuse machine. I accidently deleted my swap file, and now sistem won't boot. How to resize a current parition and create a swap file
- Assistant
- User
no no. let's take 1 step at the time. First how to see my paritions
- Assistant
To view the partitions on your openSUSE system, you can use several command-line tools. Here's how you can do it:
Using
lsblklsblkis a command-line utility to display information about all available block devices.-
Open a terminal or use the command line in recovery mode.
-
Run the following command:
lsblk
This will show you a tree-like structure of all block devices along with their partitions. It displays device names, sizes, and the mount points if any.
Using
fdisk -
- User
Ok so, this is my parition /dev/nvme1n1p2 witch hase 852Gb. I want to make a 60GB parition out of it
- Assistant
- User
I don't want a live usb I want from local host. How to parition from here and please take it step by step with fewer steps at the time
- Assistant
- User
Look, let's take it again more simply. I have this /dev/nvme1n1p2. How to resize it
- Assistant
Alright, let's go through the process of resizing your partition () using command-line tools step-by-step while keeping it simple. Since you're trying to resize a partition currently in use (likely your root filesystem), it's important to be aware that resizing it directly without unmounting typically requires a live environment or involves some risk of data corruption.