Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 06 Dec 2019, 07:45
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
BTRFS (file system) + PUPPY????
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [14 Posts]  
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Thu 08 Dec 2016, 22:31    Post subject:  BTRFS (file system) + PUPPY????  

So -- is BTRFS coming to Puppy anytime soon?
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13387
Location: Arizona USA

PostPosted: Thu 08 Dec 2016, 23:31    Post subject:  

What is BTRFS?
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Thu 08 Dec 2016, 23:50    Post subject:  

New file system - in development since '07 -- see the wikipedia entry. Newer kernels are compatible with it.

Some distros are including it for formatting prior to installation. I downloaded MX Linux to try out and it was an option when installing.
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13387
Location: Arizona USA

PostPosted: Fri 09 Dec 2016, 00:02    Post subject:  

So what's it do that FAT32 can't do?
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Fri 09 Dec 2016, 00:09    Post subject:  

"Btrfs is intended to address the lack of pooling, snapshots, checksums, and integral multi-device spanning in Linux file systems...it offers improvements in scalability, reliability, and ease of management" Much more detailed info at the link above.

I try to avoid FAT32 -- perhaps mostly because Barry doesn't recommend it due to reliability issues. When installing Puppy, he advises against it.

Maybe some of it is just my dislike of anything Windoze-related. Wink

Back to top
View user's profile Send private message Visit poster's website 
drunkjedi


Joined: 24 May 2015
Posts: 897

PostPosted: Fri 09 Dec 2016, 02:15    Post subject:  

Open Gparted, from it's menu select show filesystem support, then note down the software written in last column in front of btrfs.

Open PPM, search and install that software.
That should do it.

I believe it's called btrfs-tools. But I don't remember correctly.

If it's not available, you may have to compile it.

I remember seeing it in Fatdog 700 repo.

But will have to check again.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12959
Location: S.C. USA

PostPosted: Fri 09 Dec 2016, 03:35    Post subject:  

Installed btrfs tools.
That gets support into Gparted, but I wonder how other specific Puppy programs will handle it?
Only way to find out is try it, in a Puppy, after you install btrfs tools.
capture17554.png
 Description   
 Filesize   66.97 KB
 Viewed   658 Time(s)

capture17554.png


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Fri 09 Dec 2016, 09:33    Post subject:  

Thanks -- I' ll play with it later today/tomorrow and post back.
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 9082
Location: Perth, Western Australia

PostPosted: Fri 09 Dec 2016, 12:34    Post subject:  

I wrote about btrfs recently on my blog:

http://barryk.org/news/?viewDetailed=00453

Apart from the running-out-of-memory thing, it looks good.

_________________
https://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Burn_IT


Joined: 12 Aug 2006
Posts: 3599
Location: Tamworth UK

PostPosted: Fri 09 Dec 2016, 16:49    Post subject:  

So it looks nice, but doesn't work (consistently)??
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Fri 09 Dec 2016, 18:22    Post subject:  

Installing BTRFS-tools let me work with a BTRFS partition but not install Puppy to it. It's a moot point after reading Barry's post, though...i don't need more headaches.

Barry, if you see this -- THANK YOU THANK YOU THANK YOU again for your labor of "Puppy love." I've used it for a long time and it's become my OS/Distro of choice.
Back to top
View user's profile Send private message Visit poster's website 
Wyk72


Joined: 01 Sep 2009
Posts: 15

PostPosted: Sun 22 Jul 2018, 18:46    Post subject:
Subject description: BTRFS on kernel 4.15
 

I've been using BTRFS for quite some time in my ubuntu setups, it has proven to be a really good "swiss knife" FS that includes advanced features, like RAID, snapshots, compression etc.

I've been reading in the BTRFS wiki that with kernel 4.15:

Overlayfs can now use btrfs as the lower filesystem.

I don't know if it is of any relevance to Puppy development, but maybe the init script can now be modified to include BTRFS support to puppy ? Any benefits/drawbacks ? Worth it ?
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Sat 18 May 2019, 11:35    Post subject:  

Found this thread after posting this http://www.murga-linux.com/puppy/viewtopic.php?p=1028501#1028501 ... so for cross reference purposes I've liked that posting to here.

btrfs inside a file filesystem (i.e. store/use it on/from a ext2/3/4, NTFS .. etc.).

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3665

PostPosted: Tue 15 Oct 2019, 18:02    Post subject:  

Here's another basic outline of using btrfs, but this time using a file filesystem (that can be stored on fat, ext, ntfs ... similar to a save-file). I used Fatdog to check the following commands, Fatdog comes already prepared for btrfs (cat /proc/filesystems indicates btrfs as a supported filesystem, and btrfs-tools are already installed by default).

# Create a 1GB image file (file filesystem)
# I'm using my sdb1 ext3 partition here mounted to /mnt/sdb1

cd /mnt/sdb1
mkdir btrfs
cd btrfs
dd if=/dev/zero of=/mnt/sdb1/btrfs/btrfs.img bs=4096 count=262144

# format it to btrfs
mkfs.btrfs /mnt/sdb1/btrfs/btrfs.img

# Mount it
mkdir -p /mnt/btrfs
mount /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs

# create a btrfs sub volume using
btrfs subvolume create /mnt/btrfs/vol1

# and umount that top level view
umount /mnt/btrfs

# and mount the sub-volume instead
mount -o subvol=vol1 /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs

# .. create a file on that
echo hi >/mnt/btrfs/hello.txt
# ... check it was created
ls /mnt/btrfs/*

# To create a snapshot of that we umount the sub volume, mount the image and ....
umount /mnt/btrfs
mount btrfs.img /mnt/btrfs
btrfs subvolume snapshot /mnt/btrfs/vol1 /mnt/btrfs/vol1-snapshot
umount /mnt/btrfs

# Now you can mount either the original version vol1
mount -o subvol=vol1 /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs
# or its snapshot vol1-snapshot
mount -o subvol=vol1-snapshot /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs

# mount one or the other as above and add/remove files as desired
# you can use a similar approach to create additional snapshots
# fundamentally we're just umount'ing and mount'ing versions as desired

# To remove a snapshot
umount /mnt/btrfs
mount /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs
btrfs subvolume delete vol1-snapshot

# To list available sub-volumes we use the subvolume list command ...
umount /mnt/btrfs
mount /mnt/sdb1/btrfs/btrfs.img /mnt/btrfs
btrfs subvolume list /mnt/btrfs
ID 256 gen 15 top level 5 path vol1
ID 257 gen 13 top level 5 path vol1-snapshot


You could for example create a sub-volume vol1 as above, perhaps load (copy) a entire base puppy filesystem into that, then create a snapshot, perhaps using a name of vol1-basesystem, and then perhaps load a sfs by unsquashing the sfs
unsquashfs -f -d /mnt/btrfs libreoffice.sfs
and perhaps make a snapshot of that with perhaps a name of vol1-libreoffice. You'd then have vol1, vol1-basesystem and vol1-libreoffice with libreoffice also installed. Along with the vol1-snapshot we also created earlier. Not needing all of those we might opt to remove the vol1 and vol1-snapshot snapshots to leave just vol1-basesystem and vol1-libreoffice volumes/snapshots.

We might then create a snapshot of the vol1-libreoffice volume/snapshot as vol1-libreoffice-snapshot ... and then mount/use that, and afterwards remove it ... or whatever.

PS Why the apparent odd choice of dd blocksize and count (bs=4096 count=262144) ... well 4096 byte blocks are squashfs minimum but nbd (network block device) maximum and is a nice round number of 4 times 1024 bytes where 1024 byte blocks tends to sit well with ethernet. So somewhat a 'better' choice than any, rather than good a choice as any.

_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [14 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0557s ][ Queries: 13 (0.0100s) ][ GZIP on ]