LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-01-2014, 09:21 PM   #16
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629

I just run flash drives like they were regular drives. They almost never really wear out. They suffer size/price so I get a new larger one. They suffer getting left in pants and go through washer. They suffer esd and shock but they almost never just wear out.
 
Old 07-02-2014, 07:19 AM   #17
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by jefro View Post
I just run flash drives like they were regular drives. They almost never really wear out. They suffer size/price so I get a new larger one. They suffer getting left in pants and go through washer. They suffer esd and shock but they almost never just wear out.
I totally agree. There are certainly a ton of users who are going to relate their stories of how a flash drive died on them, this is the randomness of life. My personal experiences are more along the lines of what jefro says there.

OP I wonder how the original proposed project went?

I also do wonder if anyone has seen or knows of any utilities which would the health of any given flash drive? There's extending the life, but there's also variances in manufacturing and as a result you can take two identical drive models and one is a klunker where the other one lasts for years. With magnetic drives there is an interface; I thought through ACPI, which advanced disk analysis tools can use to assess the amount of usage and time in service; no direct judgements but at least statistics where someone can make their own assessment. Does anything similar exist for flash drives?

Quote:
Originally Posted by nix84 View Post
I have a laptop on order and am planning the install of Slackware, Fedora, and Umbuntu on flash drives. I am currently running Slackware 13.37 partitioned as shown here:
Code:
df -H
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       8.5G  799M  7.3G  10% /
/dev/sda2       8.5G  5.1G  3.1G  63% /usr
/dev/sda5        11G  1.9G  8.2G  19% /opt
/dev/sda6       2.2G  212M  1.8G  11% /var
/dev/sda7        25G  3.2G   20G  14% /home
/dev/sda8        25G  182M   24G   1% /tmp
tmpfs           655M     0  655M   0% /dev/shm
The laptop has 2 USB-2 ports, but will probably use 1 port at a time. I will be multi-booting and in order to minimize "sdc" writes, it is currently my plan to put /boot, /usr, and /sbin for each distro on a flash drive and /root, /opt, /var, /home, and /tmp on the hard drive, in separate partitions for each distro.
I am wondering if there might be a better way to configure to leave most of the read only system code on the flash drive. The purpose of this is to improve the life of the flash drives.
Thanks for UR suggestions
 
Old 07-02-2014, 07:23 AM   #18
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
This is what I was referring too, the drive needs to support SMART:

http://www.linuxquestions.org/questi...6/#post5148427
 
Old 07-02-2014, 04:26 PM   #19
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by mattallmill View Post
As a useful addendum to this thread, I came across this article, which shows the way to convert flash drives from the default proprietary FAT32 format to a fully open UDF format.
alright, but why would one want to do this? True, FAT32 has that file size limit of 4GB. But apart from DVD images, virtual HDDs for a VM or very large video files I haven't yet had a situation where that limit actually mattered. True, FAT32 is proprietary and not officially documented, but yet widely known thanks to diligent reverse engineering of many experts, and is supported by a vast scale of systems from big servers across desktop systems down to the embedded sector - just think of digital cameras or hard disk video recorders or TV units with PVR function on external USB media.

And even if file size did matter, UDF would be about the last thing I'd choose, especially for compatibility reasons. If you're going to use the external media with Linux only, you can safely use ext2/3/4. But if compatibility with Windows machines AND files beyond 4GB are a necessary requirement, UDF is a lottery game. Better even to use NTFS, which is proprietary, but supported by all contemporary Linux distros out of the box.

Incidentally, the only context where I encountered UDF so far is CD packet writing - with all the counter-indications mentioned above. So from my point of view, UDF is a dead birth.

[X] Doc CPU
 
Old 07-02-2014, 04:42 PM   #20
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Just because you don't come across the file size limits of FAT doesn't mean nobody else does. I admit I probably came across it first when "trying to back up DVDs for friends" but now when I'm sometimes backing up VM hard drives, distribution DVDs or just long videos (the file I was copying earlier in this thread is the free Bergensbanen video) I couldn't cope wit ha limit on file size.
I'm not sure that UDF is the answer but my experience with Linux's NTFS support leaves a lot to be desired so I don't feel it is a better choice.
Any reverse engineering of FAT32 is also potentially illegal, you understand, since these wonderful new laws like the "digital millennium copyright act" came into existence. It really is time we stopped giving MS reason to spread FUD and used a different file system.
 
Old 07-02-2014, 05:25 PM   #21
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by 273 View Post
I'm copying a 23.5GB file to my UDF formatted drive as I type -- it seems it will take an hour or so but if it works with my Windows XP and 8.1 VMs I'll be looking to use it for my backups.
Why, oh why can't manufacturers use this file system to get around MS patent FUD and file size restrictions? I still do not understand why Google haven't stomped all over FAT or why Tomtom decided to pay for FAT rather than use an alternative and tell MS to go away.
This evening I copied just over 22GB to two flash disks. So far Windows (XP up), Slackware and NetBSD have had no problems reading from and writing to these UDF-formatted disks. As you say, why oh why? Here in UDF we have a decent file system which is inter-operable across different operating systems. I am completely new to UDF but for the life of me I can't understand why this thing didn't take off long ago and leave all the others in the dust.

If Pat is reading this, I would like to politely ask for the inclusion of udftools in Slackware. It is a small utility and in my opinion once the benefits of UDF are known then UDF becomes as important a filesystem for portable devices as ext{2,3,4} is for HDDs.
 
Old 07-03-2014, 06:28 AM   #22
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by 273 View Post
Just because you don't come across the file size limits of FAT ...
oh, mind you - I do, and frequently so with video files (raw MPEG TS recordings from TV).

Quote:
Originally Posted by 273 View Post
[...] my experience with Linux's NTFS support leaves a lot to be desired so I don't feel it is a better choice.
NTFS itself leaves a lot to be desired, most of all stability and reliability. Back in the time I used Windows, I usually avoided NTFS, as I've experienced several serious Windows crashes (from NT4.0 up to XP) that left the file system damaged beyond repair. On a FAT (FAT12,16,32) volume, similar accidents would typically corrupt a handfull of files, but on the whole leave the system recoverable. FAT is, let me say, robust and sturdy because of its simplicity.

Quote:
Originally Posted by 273 View Post
Any reverse engineering of FAT32 is also potentially illegal
Well, I shouldn't have used the term "reverse engineering", because I meant something slightly different: The available information about the FAT family is sufficient for programmers to implement their own FAT file system driver. And many did; FAT16/FAT32 implementations are available from third-parties in a great variety.

[X] Doc CPU
 
Old 07-03-2014, 06:48 AM   #23
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Doc CPU View Post
Well, I shouldn't have used the term "reverse engineering", because I meant something slightly different: The available information about the FAT family is sufficient for programmers to implement their own FAT file system driver. And many did; FAT16/FAT32 implementations are available from third-parties in a great variety.

[X] Doc CPU
Well, yes, but any FAT implementation is potentially subject to a Microsoft injunction or demand for payment. You only have to look to Tomtom being effectively killed off by Microsoft over it, the Microsoft tax on every Android handset sold in the US and the US legal system's handing over of No-IP to Microsoft to see that anything even vaguely related to Microsoft can and does cause problems to all involved. In these days where the US legal system has declared itself for sale to the highest bidder I find myself not wanting to rely upon any software product a US firm may have even the slightest claim to.

Last edited by 273; 07-03-2014 at 06:49 AM. Reason: typo'
 
Old 07-03-2014, 07:11 AM   #24
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Why would there be a Microsoft tax on Android devices? Android uses ext4. It can read FAT-formatted cards, but it doesn't use that filesystem otherwise.
 
Old 07-03-2014, 07:14 AM   #25
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by sgosnell View Post
Why would there be a Microsoft tax on Android devices? Android uses ext4. It can read FAT-formatted cards, but it doesn't use that filesystem otherwise.
It uses FAT that's enough. Doesn't matter whether some devices never use FAT -- the code is there and the US government wants MS to get its cut.
http://www.zdnet.com/microsofts-most...id-7000015094/
 
Old 07-03-2014, 08:15 AM   #26
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Some posters here have brought up the question of UDF being compatible with modern OS's. Here is an article that explains that issue in detail.
 
Old 07-03-2014, 11:38 AM   #27
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by rtmistler View Post
Splitting hairs I know, but you're not going to "extend the life" of a flash drive, it's life is determined by the statistical amount of write cycles it can sustain; therefore in that - newer is better because as hardware technology improves, the amount of write cycles a re-writeable flash drive can sustain gets better. What you're looking to do is extend the "use period" for your flash drives.
Actually for newer flash chips the possible number of erase cycles for each erase block did take a large hit. But number of erase-cycles multiplied by the number number of erase blocks did increase. Modern SSDs are huge. 16 GB for is two complete overwrites for an ancient 8 GB SSD (with 100k erase cycles) of an early netbook, but nothing for a modern 1 TB SSD (with 3k erase cycles NAND). Conclusion: These newer Flash cells wear down 32 times faster, but there are 128 times more of them, so it doesn't matter.
 
Old 07-03-2014, 11:54 AM   #28
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by mattallmill View Post
As a useful addendum to this thread, I came across this article, which shows the way to convert flash drives from the default proprietary FAT32 format to a fully open UDF format. The required udftools program is available on SBo.

In addition to being a fully open standard, UDF can handle files larger than 4GB with ease. I might not need the capability now, but when I do, having it available to me is invaluable.
There are multiple issues with UDF in Linux. The Linux implementation of UDF is bitrot code, so it is only safe for ready-only use. The udftools haven't been updated for decade, too. USB flash drives expect to operated with large blocksizes like 32 KiB (for FAT32). Setting the block size to 512 as proposed on the blog will kill the flash memory with read-modify-write cycles.

The specifications of FAT12, FAT16 and FAT32 are public, patents only cover LFNs ("long file names") and will expire in this decade. The proprietary successor is "Exfat", but even that is better supported by Linux than UDF. The right way to deal with such stuff, is using an alternative LFN solution on top of FAT (like the OS/2 one), making it incompatible with Windows 95. But in the mobile sector (where MS makes most of its FAT license money) Windows becomes irrelevant anyway.
 
2 members found this post helpful.
  


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
Extending lifetime of embedded flash D1ver Linux - Embedded & Single-board computer 2 04-02-2011 04:53 PM
Need help extending battery life CapnStank Linux - Laptop and Netbook 4 09-17-2010 06:24 PM
"Cap-less" USB Thumb/Flash drives - difference in life expectancy? SilversleevesX General 2 08-03-2010 12:05 PM
LXer: Extending Ubuntu's Battery Life LXer Syndicated Linux News 0 02-29-2008 05:30 PM
Best practices to prolong the life of flash drives? ewolf Linux - Hardware 3 12-05-2007 01:14 PM

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

All times are GMT -5. The time now is 06:45 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