What is something *new* you have learned about Linux within the past 7 days?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Just because Linux says copying is finished, doesn't mean it is!
Depends on how you mount the device. You can mount a device so that it does not buffer like that. Such as at the end of a USB stick write. Whether that is a good thing or not, I'm still deciding. It has not given me an problems yet.
Depends on how you mount the device. You can mount a device so that it does not buffer like that. Such as at the end of a USB stick write. Whether that is a good thing or not, I'm still deciding. It has not given me an problems yet.
Hard drives are full embedded computers these days with all the disadvantages that entails. I notice that many of the newer devices keep running for at least a few seconds even after being unmounted and ejected from the system even when sync has been used. The system shows the device has detached but the LED on the device blinks for a few more seconds and that data loss entails if it is powered off by force first.
Many disk utilities now mix and match sectors, GB, and GiB in a most confusing manner making it very hard to estimate size. It does not matter much except in some edge cases, such as swap or mirroring, etc. These random changes in units bit me recently on a fresh installation where I had misallocated a few kB too little space on a swap partition such that the "suspend to RAM" option would lock the system fatally it time it was invoked. So what I learned is that the graphical disk utilities, such as in the installer or on the live images, don't give enough information (or use consistent units) to allow fine tuning of the partition sizes.
Depends on how you mount the device. You can mount a device so that it does not buffer like that. Such as at the end of a USB stick write. Whether that is a good thing or not, I'm still deciding. It has not given me an problems yet.
Care to share how you do that?
I suppose this is a specific option in the fstab or mount command.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,165
Rep:
Quote:
Originally Posted by Michael Uplawski
...And that anything listening on “l o c a l h o s t” had better be equipped for IPv6, these days.
Not true I don't use ipv6 and apache works fine, as does calibre server minidlna etc etc, try not to make sweeping statments like this as it can be off putting for noobs
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,165
Rep:
Just as a little FYI, if I enable ipv6 on my TV ( a low end LG smart TV ), the inbuilt netflix app wont connect so not even the big company's are fully using v6 yet.
@Keith,
This is not necessarily true.
The problem could also come from your router or your ISP's infrastructure,
either at the IP level or the DNS level.
Care to share how you do that?
I suppose this is a specific option in the fstab or mount command.
I have been mounting my usb "stuff" for a while now with
Code:
mount -o async,flush /dev/sdb1 /mount/point
And that is for NTFS and FAT devices. Hard drives and usb sticks. You don't have to coddle ext4 devices.
They write all at once when mounted like that, when the copy process is done, it's done. No waiting for 10-15 seconds for the buffer to write to stick. Now, whether that is a good thing or not, I'm still watching it. I haven't had any corrupt data so far. There are also other mount flags that will affect how a device is written to.
Quote:
The system shows the device has detached but the LED on the device blinks for a few more seconds and that data loss entails if it is powered off by force first.
Yup, a NTFS volumne will certainly do that.
I use the NTFS3 that is in the kernel, dropped ntfs-3g a good while back. But, I am not sure that NTFS3 may still have a bug or two. Knowing how picky a NTFS is, I always treat them with special care. A couple of weeks ago, I had a NTFS external HD, that I didn't do anything wrong to. I'm careful with them. It started acting weird out of the blue. So, I stuck it into a win10 machine, run its disk checker on it, something wrong, let windows fix it, problem gone. If NTFS weren't so handy for everything to access, windows, linux, BSD, smart bluray players etc, I would stop using it.
I'm using arch, and for the last year or so, every new kernel brings a different behavior writing to usb devices. One kernel writes smooth and steady, the next kernel writes like a roller coaster. Or... I don't know what else to blame for that.
They are reading, caching, writing differently.
You can even get a different result by making a RAM drive, copying a big file up into it, then writing from it to an external usb device. And I don't mean faster speed. I would expect reading from RAM to be faster that reading from a hard drive. I'm referring to a steady write process. Such as:
Code:
mkdir /mnt/ram
mount tmpfs /mnt/ram -t tmpfs -o size=4G
mount -o async,flush /dev/sdb1 /mount/point
cp HugeFile.mp4 /mnt/ram/
cp /mnt/ram/HugeFile.mp4 /mount/point/
That will write at a steady speed, limiting factor is USB bus and USB device speed.
Whereas this is all over the place.(Depends on Kernel)
Code:
mount -o async,flush /dev/sdb1 /mount/point
cp HugeFile.mp4 /mount/point/
This month that is, next months update, which brings a new kernel, may by altogether different. And NTFS volumes are the worst. EXT4 doesn't have any problems.
Anyway, that's my 2 cents of what I've seen for the last year or so, with the different kernels. No data loss, just weird usb writing.
If someone has any better insight on this, go ahead and post.
On thursday the 19th, I learned to modify GRUB "gfxterm" theme to display #000 text on #000 background.
Meaning; having multiple menu entries and infinite "wait", it now expects multiple "arrow down" and "enter" to boot anything.
So if I put entry 7 as default, booting the 1st entry requires 6 "arrow up", and since it does not display a thing; it works kinda like a sanity check.
On thursday the 19th, I learned to modify GRUB "gfxterm" theme to display #000 text on #000 background.
Meaning; having multiple menu entries and infinite "wait", it now expects multiple "arrow down" and "enter" to boot anything.
So if I put entry 7 as default, booting the 1st entry requires 6 "arrow up", and since it does not display a thing; it works kinda like a sanity check.
Do the numbers have a special meaning as regards sanity?
I know that it is true that one service stopped working because someone had chosen to modify something in the way I described. This very developer may be especially mad, but if the service is important to me, I cannot care about that.
It could be interesting to have a statistic of some kind, showing how computer users divide into those who take decisions empirically, those who would not move a finger before they haven't seen the code and ... whatever remains. I am quite obsessed with not caring anyway.
Do the numbers have a special meaning as regards sanity?
Sure they do, booting the thing and not knowing it requires 6 arrows down is futile. And GRUB could have a LOT of entries.
It's basically a sanity check for the one booting the machine, not the kind of software sanity check you would expect by its definition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.