Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-10-2018, 09:32 PM
|
#1
|
LQ Newbie
Registered: Jan 2018
Posts: 3
Rep: 
|
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.
|
|
|
01-10-2018, 09:39 PM
|
#2
|
Senior Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727
|
Quote:
Originally Posted by 4LLEYC4T
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.
Last edited by Darth Vader; 01-11-2018 at 10:19 AM.
|
|
2 members found this post helpful.
|
01-10-2018, 10:49 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
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.
|
01-12-2018, 04:58 PM
|
#4
|
LQ Newbie
Registered: Jan 2018
Posts: 3
Original Poster
Rep: 
|
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 ?
|
|
|
01-12-2018, 05:02 PM
|
#5
|
Senior Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727
|
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.
|
|
|
01-12-2018, 05:30 PM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by 4LLEYC4T
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?
|
|
|
01-12-2018, 05:31 PM
|
#7
|
Senior Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727
|
Because he wants an "upgradeable" workstation on an USB stick? 
Last edited by Darth Vader; 01-12-2018 at 05:38 PM.
|
|
|
01-12-2018, 06:03 PM
|
#8
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
Quote:
Originally Posted by Darth Vader
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.
|
|
|
01-12-2018, 06:19 PM
|
#9
|
Senior Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727
|
Quote:
Originally Posted by bassmadrigal
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. 
|
|
|
01-13-2018, 12:15 PM
|
#10
|
LQ Newbie
Registered: Jan 2018
Posts: 3
Original Poster
Rep: 
|
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 !
|
|
|
01-13-2018, 12:28 PM
|
#11
|
Senior Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727
|
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.
|
|
|
01-15-2018, 09:53 PM
|
#12
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,281
|
Another case to add NAND friendly FS as an option for installing Slackware on , JFFS2, F2FS.
|
|
|
08-23-2019, 04:51 AM
|
#13
|
Member
Registered: Jul 2007
Posts: 749
|
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.
|
|
|
08-26-2019, 01:05 AM
|
#14
|
Member
Registered: Aug 2004
Distribution: Slackware
Posts: 216
Rep: 
|
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.
|
|
|
08-26-2019, 03:36 AM
|
#15
|
Member
Registered: Aug 2004
Distribution: Slackware
Posts: 216
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 09:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|