LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-10-2023, 09:59 AM   #31
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9

Quote:
Originally Posted by slac-in-the-box View Post
Awesome! That screenshot says it all:
Deeply indebted for these very detailed instructions.

Today I've managed to make a proper screenshot of your post, so I can read, view, refer it to more effectively, when offline.

Hopefully tomorrow or so I can give a try on the actions you suggest.

A million THANKS
 
Old 02-10-2023, 10:02 AM   #32
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
QUESTION:
I get email alerts about this thread (Thank you.)
But sometimes I click the link, & it displays the thread, but only
as it looked 2 weeks ago!
Many recent posts are not visible.
I struggle with this for a while & sometimes manage to view the latest. Sometimes not.

Any thoughts to enlighten the benighted much appreciated.
THANKS
 
Old 02-10-2023, 11:03 AM   #33
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by MollyLinux View Post
When I was a child, a relative excitedly rang to say, "Guess what, at my new job, we have a Computer!" He took me to see it. It filled the entire basement, and had to be kept at a certain temperature by air conditioning at all times.
I remember those! We had one where I worked. The room where it lived had to be kept dust-free with suction pads at the door. and the machine ops worked shifts around the clock to justify the expense of buying it. You coded on forms which a key-punch operator translated into a pack of punched cards. They were run in overnight and you got a list of compilation errors in the morning. I bet it took weeks to get a program working.
 
1 members found this post helpful.
Old 02-10-2023, 05:08 PM   #34
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 496

Rep: Reputation: 182Reputation: 182
Quote:
I bet it took weeks to get a program working.
One difference programming then is you really went over your application many times with a fine toothed comb, so to speak, before submitting it. Not like today where we get lazy and let the compiler find the syntax errors!
 
1 members found this post helpful.
Old 02-12-2023, 05:55 AM   #35
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,383

Rep: Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762
Quote:
Since then, I NEVER trust any "Eject" function anywhere.

I insert a stick while the computer is awake.

To remove a stick, I close all windows where it's open.
Then put the computer to SLEEP.
Then pull out the stick.
Then wake it up.

I'm wondering now if something in that process might ever have gone awry.
With the FAT filesystem, you need to consider the 'dirty bit' at bit 0 of byte 0x41 (61) of the first sector.
With Linux, when a FAT filesystem is mounted, this 'dirty bit' is immediately set and will not be cleared until the filesystem is unmounted.
The behaviour in Windows is similar, although later Windows versions may delay setting the bit until something is actually written.
So, you should always eject a device with a FAT filesystem in both Windows and Linux.
If you do not, then when you again plug the device, Windows will prompt to perform a scan to repair the stick.
Linux gives the error message that you posted:
Quote:
Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Quote:
One day... that prompt appeared. I started pulling out the stick. In the midst of the second or so that it was coming out, Linux suddenly started writing to the stick.

Everything on it was erased.
The FAT filesystem keeps at least one backup copy of the file allocation table on the device. It would likely have been possible to have restored the primary file allocation table on the device from a backup copy with fsck.vfat.

Last edited by allend; 02-12-2023 at 05:58 AM.
 
1 members found this post helpful.
Old 02-13-2023, 04:58 PM   #36
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by hazel View Post
...which a key-punch operator translated into a pack of punched cards.
Were you ever a key-punch operator?
"Do not fold, spindle, or mutilate!"
 
Old 02-13-2023, 05:10 PM   #37
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Out of curiosity have you tried repairing the filesystem yet?
 
Old 02-13-2023, 05:11 PM   #38
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
I'm back here in the bleary hours again, making screenshots of instructions; which I haven't enough brain cells to read with comprehension at the moment.

Astrological conditions are due to change in a few days: to more optimum climate for technical projects.
So I might do well to wait to try these action then. (Better not take any chances!)
(By the way, when I say GOBBLEDYGOOK I don't mean reasonably normal code in which one can make out anything intelligible.
I mean this:
https://drive.google.com/file/d/1lvM...ew?usp=sharing
(What Windows did to my files. Can anyone can read this? Or have a clue what it means?
But that's a moot point now. I'm resigned I have to arrange never to put a stick into Windows again.)
THANKS to all here. And to rokytnji for the How-to book links!
 
Old 02-15-2023, 01:40 PM   #39
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 782
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Quote:
Originally Posted by MollyLinux View Post
By the way, when I say GOBBLEDYGOOK I don't mean reasonably normal code in which one can make out anything intelligible.
I do see, acknowledge, and agree with your distinction between different types of gobbledygook

Regarding the stuff that flashes by in dmesg and during startup... well, even though that is reasonably normal output, when I first saw it, so much in it was cryptic and mysterious enough, that I've called it gobbledygook plenty myself throughout years of being mystified.

But regarding the gobbledygook in your screenshot, some of which look like hieroglyphs: just a guess, but it could be related to mismatches in font and language settings between the windows and linux environments--even within the same os, there can be such mismatches, such as when utf-8 based language and font systems try interacting with ascii based systems... most everything modern has jumped forward to using utf-8 because it supports all the fonts necessary for foreign languages as well, and so has better support for internationalization...

utf8 became default in slackware linux in version 15, which was only recently released, and I am not familiar with every distro of linux's default setting, nor windows--they all provide methods to set it system wide, but if the user has not done that, and the default utf8 of one system is sharing text with a system that defaults to older ascii system, then the system without the right font to display the text, will try what it thinks is the right font, creating some crazy glitchy outputs with hieroglyphs and runes and math symbols, and there might even be font sets of clip art...

that's just a guess as to why the output in your screenshot was so foreign...

Last edited by slac-in-the-box; 02-15-2023 at 01:44 PM.
 
Old 02-22-2023, 03:31 AM   #40
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
Greetings, & many thanks for all your very kind & knowedgeable assistance.

Linking zip folders with a minimum of Terminal SCREENSHOTS to show what happened when I did fsck etc. *
(When it did the same thing to 245 files, I tried to show only one screen; while trying to include every action which appeared.)
Includes Screenshots of PERMISSIONS box AFTER fix operations.
Terminal Screenshots: 1st time thru Commands
https://drive.google.com/file/d/1ikD...ew?usp=sharing

Terminal Screenshots: 2nd time thru Commands
https://drive.google.com/file/d/1cim...ew?usp=sharing
What Linux was detecting as a problem seems to be
the files reduced to Goobledygook by Windows,
(which I tried several times to delete; can't seem to be deleted by either Windows or Linux (even if apparently empty)

After running Commands:

PERMISSIONS info for this Stik UNCHANGED.

NOTE "Me" seems to have full access i.e. Create & Delete.
But USER (the actual account I have to use to get into my computer) is still Read-Only
QUESTION 1: "user" v "Me" v "root"
In all the extremely helpful info provided here, of course not all questions have been answered yet.
And/but wasn't this the first one?
(re info in PERMISSIONS Screenshots):
HOW does "Me" (as in pathetic little carbon-based entity I)
become the same as "user"??
(the account I have to use to get into my computer?)
HOW & WHY are they different here, with different permissions?

Yes, I realize perhaps one is "root" me. (user@user perhaps...?)
But how do I get the computer to recognize user IS ROOT?
QUESTION 2: "Not cleanly unmounted"
Begging pardon if I've missed anything due to bleary screen blindness,
but no one seems to have said anything / found fault with my described practice of putting the computer to sleep to remove sticks.
I suspect the "not cleanly unmounted" is the same problem which caused me to eschew trusting sticks in Linux years ago: when I hit "eject"; but Linux started writing to the stick while it was in the process of being pulled out, erasing the entire contents.
QUESTION 3:
IS Linux "asleep" when it says it is / when I tell it to "suspend"?
Something alarming happened the other day.
One of the extra sticks I've been using
happens to have one of those little flashing lights in it.

Usually, put the computer to sleep. The lights stops flashing. Pull out stick. No probs.

Except the other day, I put it to sleep, the little "moon" indicator comes on, I go to pull the stick,
and notice the light on the stick is FLASHING.
There is some activity: the computer is doing some bleeding thing with the stick when it's supposed to be asleep!

Only most of my sticks don't actually have little flashing lights anymore.
So this could happen anytime, while the computer seems to be asleep, moon indicator on, etc.
Would welcome any thoughts.
With a million thanks

~~~~~~~~~~~~~~~~~~~~~~~~~~ *
"Fortune favors fools."
 
Old 02-22-2023, 04:33 AM   #41
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by MollyLinux View Post
QUESTION 1: "user" v "Me" v "root"
In all the extremely helpful info provided here, of course not all questions have been answered yet.
And/but wasn't this the first one?
(re info in PERMISSIONS Screenshots):
HOW does "Me" (as in pathetic little carbon-based entity I)
become the same as "user"??
(the account I have to use to get into my computer?)
HOW & WHY are they different here, with different permissions?

Yes, I realize perhaps one is "root" me. (user@user perhaps...?)
But how do I get the computer to recognize user IS ROOT?
WoW! You really had a lot of errors on that drive! Thank God I don't have to dual-boot with Windows!

The permissions window that you saw was provided by your graphical file manager and the labels are designed to be easily understood by newbies but imho they've just made it more complicated. So here is the more basic level of truth:

Every file and every directory on Linux is owned by a user and a group. The user in this case is you (called "me" in this display but the actual name is the name you log in with). The group that you belong to (and that all your files belong to by default) was assigned by the system when you created your user account. Most modern Linux systems create a unique group for each user with the same name, but some have a group called user or users for all personal users. If you click on the arrow, you should see what group names are available.

When a file is created, it belongs to the user who created it. If you created it as root, then it belongs to root and to the root group. But if you created it as molly and then become root, the file's ownership does not change unless you change it. And only root can change the personal owner of a file.
Quote:
QUESTION 2: "Not cleanly unmounted"
Begging pardon if I've missed anything due to bleary screen blindness,
but no one seems to have said anything / found fault with my described practice of putting the computer to sleep to remove sticks.
To unmount a disk "cleanly", you have to use the umount command. This will synchronise the disk to the latest versions of its files and then remove it from the mount list. Only then should you unplug it. Just waiting, or even putting the computer to sleep, isn't good enough.
Quote:
QUESTION 3:
IS Linux "asleep" when it says it is / when I tell it to "suspend"?
Yes. There is also a state called hibernation when the computer copies the contents of memory to disk and then switches itself off completely. When you start it up again, it will go back to where it left off. But in the suspend/sleep state, a thin current of electricity keeps the memory working until you wake the system up again.
Quote:
Something alarming happened the other day.
Except the other day, I put it to sleep, the little "moon" indicator comes on, I go to pull the stick,
and notice the light on the stick is FLASHING.
There is some activity: the computer is doing some bleeding thing with the stick when it's supposed to be asleep!
That's why you should always use the umount command. There shouldn't be an more disk acrivity after that.
 
1 members found this post helpful.
Old 02-23-2023, 02:25 AM   #42
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by fatmac View Post
If you made the filesystem on you pendrive in MS Windows & it is NTFS, you need ntfs-3g on your Linux system to access your files in read/write mode, plus you need the pendrive to belong to you, via permissions, then you will be able to use it as you wish.

https://en.wikipedia.org/wiki/NTFS-3G
Thanks for that. I did read this before, but in a blur, before I got a chance to sit down & really study all the info here.

So how would I assure that my sticks/filesystem is "ntfs-3g"?
(I'll try to study the wikipedia page you've kindly linked, cuz I haven't a clue at this writing what NFTS means.)
 
Old 02-23-2023, 02:28 AM   #43
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,359
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
Quote:
Originally Posted by MollyLinux View Post
Thanks for that. I did read this before, but in a blur, before I got a chance to sit down & really study all the info here.

So how would I assure that my sticks/filesystem is "ntfs-3g"?
(I'll try to study the wikipedia page you've kindly linked, cuz I haven't a clue at this writing what NFTS means.)
NTFS (New Technology File System) is an unsteady file system (aka disk format) used by m$ systems. You can examine your device for it using GParted, if you are careful. It will be in one of your desktop's system menus.
 
Old 02-23-2023, 04:17 AM   #44
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
ntfs-3g is a software package that allows your Linux kernel to write to ntfs-formatted partitions. By itself, the kernel can read these disks but not write to them. Trust Microsoft to invent a file format that no other system can use properly!
 
Old 02-23-2023, 11:59 AM   #45
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
NTFS would be more resilient to errors then FAT.

The operating system buffers writes and the system is probably flushing data to the drive before it goes to sleep. How long it takes depends on how much data you were trying to write. Because writing to disk especially a flash drive is slower most writes happen in the background.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to setup PAM to lock out after so many login attempts is locking me out JockVSJock Linux - Security 0 05-11-2016 10:48 PM
LXer: Microsoft Denies Locking out Linux Stories LXer Syndicated Linux News 0 09-26-2011 03:50 PM
Secure Boot for Windows 8- Locking Out Linux Mr. Bill Linux - News 1 09-26-2011 09:37 AM
LXer: Will Windows 8 succeed in locking out GNU/Linux? LXer Syndicated Linux News 4 09-21-2011 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:34 PM.

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