#Partition

43 messages · Page 1 of 1 (latest)

chrome sky
#

Is there a way to create a partition on HDD as BTRFS (For Snapshots)? I Missed during setup / install. New to linux.. My LM 22.3 Cinnemon is installed on nvme and I Have a HDD of 4 TB, I want to allocate 500GB for snalshots and format it as BTRFS but I am not getting that option anywhere. Currently its formatted as ext4. New to linux.. this is just 1st week..

sand aurora
#

if the linux OS is on an ext4 partition, you can use BTRFS for the backup drive, but it will still only work with rsync method

chrome sky
#

oh, then no use of formatting it as btrfs? Dats wat ur saying?

sand aurora
#

it's your choice

#

do you want to erase whole 4 tb drive?

#

or just shrink a part of it?

chrome sky
#

No I mean if there are no positives / benefits of doing it, I would prefer not to mess with what is already up and running..

sand aurora
#

show result of sudo parted -l from big terminal please

chrome sky
#

Yeah shrink 500 GB of it, format as BTRFS and use for snapshots if that much is enough

chrome sky
# sand aurora show result of `sudo parted -l` from big terminal please

mandar@Linux-PC:~$ sudo parted -l
[sudo] password for mandar:
Model: ATA WDC WDS240G2G0A- (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 240GB 240GB primary ext4

Model: ATA ST4000DM004-2CV1 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 32.8kB 4001GB 4001GB ext4 Basic data partition

Model: ATA ST4000DM004-2CV1 (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 2147GB 2147GB ext4 Basic data partition
2 2147GB 4001GB 1853GB ext4 Basic data partition

Model: KINGSTON SNVS500G (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 500GB 500GB ext4

mandar@Linux-PC:~$

sand aurora
#

show lsblk -f

chrome sky
#

mandar@Linux-PC:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 ext4 1.0 OLD-SSD 0dd283ba-d9fc-4b4a-a3ea-09a4ec411082 22.5G 85% /mnt/OLD-SSD
sdb
└─sdb1 ext4 1.0 Data d3b33c02-d9cd-4726-87cb-c813d099f211 2.9T 13% /mnt/Data
sdc
├─sdc1 ext4 1.0 Personal 7e901ce0-58e2-4cd2-801c-8ee75dd67192 1.7T 5% /mnt/Personal
└─sdc2 ext4 1.0 Business 596aedf7-23db-43b4-8bd0-83669fa82d6b 1.6T 1% /mnt/Business
nvme0n1
├─nvme0n1p1 vfat FAT32 986D-92AD 504.8M 1% /boot/efi
└─nvme0n1p2 ext4 1.0 eb7e8e94-2580-4fa2-98b0-b7aa87758ab5 304.4G 28% /
mandar@Linux-PC:~$

sand aurora
#

ok linux is on ext4

#

may as well not touch any of the hdd's

#

they're already all ext4

#

the only

chrome sky
#

Yeah all on ext4, but I wanted to go for BTRFS (If it can perform better) on SDB1 with 500 GB partition.. I dunno.. watched few videos on YOutube saying BTRFS is better for snapshots, so wanted to go for it.. but as ur suggesting that it wont bebenefetial, then no point in doing that..

sand aurora
#

it wont make a difference or "perform better"

chrome sky
#

just 1st week on Linux and already reinstalled it once and recently reverted with Timewshift 1 time..

chrome sky
sand aurora
#

the point is to direct timeshift to use one of those drives , say the sdb. which seems to be set to automatically mount to /mnt/Data

#

I will however refer you to a vid with a cool tip for your data drives.

chrome sky
#

yeah all are automounted.. i used disks option to do that.. earlier those were not mounting automatically.. now they r

chrome sky
sand aurora
#

this guy in vid has tons of good info, and is relaxing to listen to

chrome sky
#

who? can u send me the link of any 1 of his video pls? wil sub then

sand aurora
#

i link from timestamp

chrome sky
#

Also if u can do me 1 more favor.. can u pls suggest me a book or something to understand Linux..

sand aurora
#

the part for the optimization

#

but u can watch all as well

#

before u do it, look at df -h command now (FSAVAIL)

#

and note the "filesystem available" column

chrome sky
#

Yeah, M already Sub to this channel.. Thanks 🙂

#

mandar@Linux-PC:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 5.2M 3.2G 1% /run
efivarfs 128K 48K 76K 39% /sys/firmware/efi/efivars
/dev/nvme0n1p2 457G 130G 305G 30% /
tmpfs 16G 374M 16G 3% /dev/shm
tmpfs 5.0M 20K 5.0M 1% /run/lock
/dev/nvme0n1p1 511M 6.2M 505M 2% /boot/efi
/dev/sdb1 3.6T 463G 3.0T 14% /mnt/Data
/dev/sdc2 1.7T 19G 1.6T 2% /mnt/Business
/dev/sdc1 2.0T 90G 1.8T 5% /mnt/Personal
/dev/sda1 220G 186G 23G 90% /mnt/OLD-SSD
tmpfs 3.2G 248K 3.2G 1% /run/user/1000
mandar@Linux-PC:~$

sand aurora
#

sdb1, sdc1, sdc2 you may want to optimize to 0 as he says

#

nvme0n1p2 you may want to optimize to 1

#

sda1 , also ext4. if it's data only u can optimize to 0

chrome sky
#

what does that even mean? Brother.. piity on me pls.. Linux is already complicated.. what ur telling must b valuable.. but I am not understanding what you are telling me.. Sorry is I am sounding SIlly

sand aurora
#

just listen to the vid for 10 minutes from timestamp

chrome sky
#

what is 0 1 etc? All have data.. but sdb 1 has timeshift backups too along with data

#

ok ok.. will do

#

sorry for wasting ur time..