LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2018, 09:32 PM   #1
4LLEYC4T
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Rep: Reputation: Disabled
Slackware installation with f2fs is it possible?


Hello slackers I have been looking into f2fs as a installation option cause, I am wanting to create a sorta portable workstation USB.
Does any one know if f2fs is in slackware 14.2 ? or if theirs a build script for the 14.2 branch their is one for 14.1.
 
Old 01-10-2018, 09:39 PM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by 4LLEYC4T View Post
Hello slackers I have been looking into f2fs as a installation option cause, I am wanting to create a sorta portable workstation USB.
Does any one know if f2fs is in slackware 14.2 ? or if theirs a build script for the 14.2 branch their is one for 14.1.
IF you want a sorta "portable workstation USB", I suggest you to install Slackware in an external hard drive, using the standard filesystems, i.e. EXT4FS.

Some of those thingies are quite small and any of them would be magnitude grades better to host an operating system.

For example, look in the attached image to a cheap Chinese "KingDian P10 Portable 120GB USB 3.0 To Type C External Solid State Drive SSD", which gives you 320MB/s read and 280MB/s write.

Of course, that will do over USB3, over USB2 you will got max 30MB/s for both read and write...

BTW, you can go even more cheap, with a small mSATA enclosure (see the second image) and some small mSATA hard drive, remained from a laptop ugrade.
Attached Thumbnails
Click image for larger version

Name:	AAZ6_131559812001151735TVnF4jnN0G.jpg
Views:	46
Size:	44.6 KB
ID:	26731   Click image for larger version

Name:	5cd24ec805d8ad74bb67847235b53741-2404748-1000_1000.jpg
Views:	42
Size:	64.5 KB
ID:	26732  

Last edited by Darth Vader; 01-11-2018 at 10:19 AM.
 
2 members found this post helpful.
Old 01-10-2018, 10:49 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Slackware does not include f2fs tools and I'm not sure if the tools are required to mount an f2fs partition (if you partitioned it on a different computer or with a different OS). If the tools are required, you'd need to build the package and install it to the installation environment before you'd be able to use it. It's also possible the installer has a specific list of partition types it will install to, so that could add more complexity to the installation process.

Another, possibly easier, option than Darth Vader's would be to use Slackware Live. It is an unofficial project by Eric Hameleer's who is one of the core Slackware team members (he also developed what eventually became Slackware64 back when Slackware was only 32bit, so he knows what he's doing ). With his iso2usb.sh script, it can write the contents of the Slackware Live iso to a USB device and optionally enable persistence (the ability for changes to persist between reboots), encryption, or install separate modules providing things like multilib, skype, or wine.

This will likely be much easier than doing a regular install to a USB drive as you'd need to worry about persistence with your devices (make sure the system can still boot if /dev/sda changes to /dev/sdb).

https://docs.slackware.com/slackware:liveslak

As for a build script, there is a SlackBuild for f2fs_tools on SBo for 14.2.

https://slackbuilds.org/repository/1...em/f2fs_tools/
 
2 members found this post helpful.
Old 01-12-2018, 04:58 PM   #4
4LLEYC4T
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the info on buying a external SSD vader the reason I looking into f2fs is cause i can't afford those sorta thing's at the moment.
I know of Alienbob's work and your right his contributions too Slackware are awesome i was doing my best to avoid live persistence but it looks like this might be my only option although i do have one more question is btrfs or zfs even an option using on a USB ?
 
Old 01-12-2018, 05:02 PM   #5
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Nothing else than their own FAT32 filesystem is proper for those flash drives. I do not enter in details, that was discussed till death in this forum, but an USB flash drive is precisely NOT a SSD.

And if you cannot afford an external SSD drive, probably you can afford an ultra cheap Chinese USB2 2.5" enclosure, where you dump whatever old 2.5" drive recovered from a old laptop.

Even there, in Eastern Europe, an enclosure like this costs like 2 cigarettes packs. Brand new is cheaper than a 8GB flash drive.

https://www.okazii.ro/carcasa-usb-ra...dou-a179828685

To have as comparation about what is worth 25 RON in Romania, to note that one cigarettes pack usually costs around 15-20 RON, depending on brand.

AND, also these thingies can give you also that 30MB/s, while the flash drives (if you are lucky, and use their proper filesystem) may gives you 6MB/s ...

Last edited by Darth Vader; 01-12-2018 at 05:54 PM.
 
Old 01-12-2018, 05:30 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by 4LLEYC4T View Post
I know of Alienbob's work and your right his contributions too Slackware are awesome i was doing my best to avoid live persistence but it looks like this might be my only option although i do have one more question is btrfs or zfs even an option using on a USB ?
You should be able to format the drive whatever format you want... but if you want to install Slackware using a non-normal filesystem, as long as the bootloader supports it and you load the correct modules into the initrd (or build them into the kernel), I'd imagine you're not limited on what filesystems you can use. But getting it set up would be extra work (especially zfs since it isn't included with Slackware).

Is there a reason you don't want to use Slackware Live with persistence?
 
Old 01-12-2018, 05:31 PM   #7
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Because he wants an "upgradeable" workstation on an USB stick?

Last edited by Darth Vader; 01-12-2018 at 05:38 PM.
 
Old 01-12-2018, 06:03 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Darth Vader View Post
Because he wants an "upgradeable" workstation on an USB stick?
You can upgrade Slackware Live. If you do it within the OS using slackpkg, it will take some extra space, but you can update it using Eric's iso2usb.sh script (using the -r or --refresh options) with a new ISO.
 
Old 01-12-2018, 06:19 PM   #9
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by bassmadrigal View Post
You can upgrade Slackware Live. If you do it within the OS using slackpkg, it will take some extra space, but you can update it using Eric's iso2usb.sh script (using the -r or --refresh options) with a new ISO.
Yep. Also, what those looking to install natively a Linux in a flash drive ignore in a gracious way, is that a live system read from flash the files in a compressed form, then the throughput is about 2-3 times higher than from a native filesystem.

WHEN the overall flash drive speed is about 6MB/s with some luck, that matter. Really matter.
 
Old 01-13-2018, 12:15 PM   #10
4LLEYC4T
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Vader points the main reason i am trying to skip out on any Live persistence usage, Looking at blogs and benchmarks from phoronix made f2fs look like a great solution for a USB portable pendrive linux.
Bassmadrigal point's a very good point too is that alienbob's live slack is closely the sorta solution i am looking for, but I argue f2fs seems like a hidden gem of sorts it's either my noobie thinking or my idiosyncrasy making f2fs the next greatest thing since slice bread and this leaves me almost having to distro hop.
But i would like too thank you guys for your input !
 
Old 01-13-2018, 12:28 PM   #11
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Look, I will say again: an USB flash is not a hard drive, and is not purposed to host an operating system, even you use F2FS or other "magic tools" ...

And, anyways today is more cheaper, even in the "second world", to get an 80GB external 2.5" hard drive, than a questionable 16GB flash drive.

And it has plenty of space and is very capable to efficiently host an operating system.

So, I will conclude (harshly) that trying to install an non-live operating system in a flash drive is plain stupid, no offense!

There is an saying: use the right tools for the right job.

Last edited by Darth Vader; 01-13-2018 at 12:31 PM.
 
Old 01-15-2018, 09:53 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Another case to add NAND friendly FS as an option for installing Slackware on , JFFS2, F2FS.
 
Old 08-23-2019, 04:51 AM   #13
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
This thread is a bit old, but f2fs-tools are in the main tree of -current since Wed Nov 28 07:25:32 UTC 2018.

Actually, I tried to move my Slackware to an f2fs root yesterday, and I found a problem which may be worthy of noting here.

The problem is that as later as kernel 4.19.67, f2fs still doesn't support extended attributes/posix capabilities.

As far as I am aware, none of the packages of the base Slackware uses xattr, however people who want to install stuff from slackbuilds.org would need to be aware that some packages would not work or would require tuning.

In my case there were (easily noticed) JACK and fbterm. Also, I don't have a separate /var partition, so some of my docker subvolumes also didn't manage to get successfully migrated to the new partition.

I heard that some newer kernels, released somewhere after 5.1 can do xattr on f2fs, but I haven't tried, and we don't have it in -current yet.
 
Old 08-26-2019, 01:05 AM   #14
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
If you're on current and want to use f2fs with the "generic" kernel
you will have to include crc32 with f2fs in the initrd as it isn't
done automatically. Without crc32 f2fs will not work at all.

Also fallocate does not produce a usable swap file on f2fs.
You will have to do it the old fashioned way (dd).

Last edited by rogan; 08-26-2019 at 01:09 AM.
 
Old 08-26-2019, 03:36 AM   #15
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
fsck also claims that one of my f2fs partitions are corrupted
on every boot. Even if I unmount it, run a manual fsck on it,
and reboot without mounting it before.

You probably don't want to use f2fs for anything serious right now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Filesystem f2fs on SSD? alfredo10 Linux - Laptop and Netbook 5 09-07-2017 05:13 PM
How to use f2fs encryption? xyzone Linux - Security 1 06-01-2016 07:24 AM
Installing Ubuntu 14.04 on a F2FS partition slazerezals Linux - Software 7 05-01-2014 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration