LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-24-2023, 04:02 AM   #46
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488

Quote:
So how would I assure that my sticks/filesystem is "ntfs-3g"?
As indicated above, it is not ntfs-3g but ntfs which as also stated, it New Technology File System which was first used by windows in 1993. Obviously, it has been modified and updated since then.

https://en.wikipedia.org/wiki/NTFS

From the images you posted, your flash drive shows as sdb so use either GParted or Parted to get the filesystem type. With Parted, open a terminal and simply enter: sudo parted -l (this will list partitions and filesystems) If you are or were sharing the USB stick between windows and Ubuntu, it would need to be ntfs as windows default systems cannot read or write to Linux filesystems.

As pointed out above, you seem to have a lot of errors on the stick and it may be bad.
 
Old 02-25-2023, 11:26 AM   #47
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
Thanks for this yancek.
As soon as I can, I'll study these replies & try to sort it out.

"Gparted" was the next term I meant to ask about.
I don't know what that means.
 
Old 02-26-2023, 04:19 AM   #48
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
"Gparted" was the next term I meant to ask about.
GParted is a graphical partition manager functioning basically as parted partition manager but with a graphical interface which makes it easier for some to understand. You can read about it at their site at the link below. GParted is also on any Ubuntu installation media so it is available and you don't need to download it.

https://gparted.org/

Last edited by yancek; 02-26-2023 at 04:20 AM. Reason: corrections
 
Old 03-05-2023, 04:34 PM   #49
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 779
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
mount error

Hi Molly

It took a while to get back to this thread: I live in a remote mountain wilderness, and we got burried in snow, lost electricity for 4 days; and then our pack of dogs got lost in a second winter storm, and I have been driving 4x4 with chains around wasting fuel for 3 more days; but they came home on their own and its been a day and they're still sleeping.

Back to this fun thread,in regards to the first round of screen shots you posted, in the one called "Screenshot LNUX PROB COMMANDS4.png" I found this informative:
Code:
user@user-ThinkPad-T430:~$ sudo mount /dev/sdb1 /mnt/tmp
mount: /mnt/tmp: mount point does not exist.
Your distro didn't automatically include that directory to temporarily mount devices to.

No worries, you can just make the directory. A mountpoint can be any directory, but it is best to use unused empty directories.
As a side note, if you were to mount a file system on a device to a directory that already had contents, the next time you viewed the contents of that directory, you would see the mounted-device's file system, and it would appear that all the old contents are missing, or have been deleted: they're not. The mapping to files for that directory got changed by the mount command to now look at a separate device. As soon as you unmount the device from that mount point, the old contents are back. So that is scary cause it looks like stuff is gone, and because you wouldn't want to mount over a part of the running file system that is in use by the linux system, because your system wouldn't be able to find essential components that it uses.
So that's why I use an unused empty directory, and you can make one anywhere you want, but I suggest /mnt/tmp, and here is how:
Code:
sudo mkdir -p /mnt/tmp
  • You already know what sudo does.
  • "mkdir" is the command-line shell's shorthand for "make directory"
  • The "-p" flag instructs the make directory command to make any parent directories if they don't exist, in this case, /mnt: if /mnt didn't exist, then it would have to be made first, before making /mnt/tmp, and the -p flag tell is to do that. You could do it like "/sudo mkdir -p /mnt/molly/loves/linux/tmp" and the -p flag would create the entire nest of parent directories that contain the new directory, tmp, that you are making. But that many nested directories was just to illustrate the -p (parent directory) flag, and you don't really need to do it to create an unused directory to be your mountpoint.
  • And of course the "/mnt/tmp" is the path to the directory you want made
And another side note about feeding paths to console commands: whether or not you start your path with a forward slash, "/", is extremely extremely important, crucial, vital, essential, and a detail that must always be closely checked:
  • if the "/" is present, the console command is instructed that, in order to find where in the file system it should operate, it should start at the beginning, the highest-level directory, the root file, represented by "/", which I think of as the entire filing cabinet; and then the command proceeds to focus on the first directory after the slash, and so on. Pathnames like this that start with this slash are called absolute pathnames.
  • Without that initial "slash" the console command begins operation from whatever directory is in focus (called the working directory). Pathnames without the initial slash are called "relative pathnames" because they are relative to the working directory. When you first open up a console terminal, the working directory defaults to your user's home folder, /home/youruser. However, this path is typed so frequently, that a shortcut has been assigned to it: "~". In your screenshot, your prompt at your console terminal looked like this:
    Code:
    user@user-ThinkPad-T430:~
    This prompt tells you that you are logged in as user user, to host user-Thinkpad-T430, to this working directory: /home/user! To save space in command-line prompts and typing paths, it reported the /home/user as a tilde. Thus you can use a "~" and "/home/user" interchangeably when typing paths to console commands.
After /mnt/tmp/ has been created, rerun that mount command and, this time, it will succeed:
Code:
sudo mount /dev/sdb1 /mnt/tmp
After mounted, you'll be able to view contents by changing directories to the directory you are now using as a mountpoint, (the "cd" command) and then listing the contents with the "ls" command (list):

Code:
sudo cd /mnt/tmp
sudo ls -lah
the "-lah" is three flags together, the same as "-l -a -h", and each one gives instructions to the list command about how you want it to list the contents to you:
  • "-l" instructs list to use an entire line for each file in the contents, and to use long format, which is handy because, in addition to the name of the file, it also displays which user owns the file, which group owns the file, the permission settings on the file, when the file was last modified, and the size of the file, which is why it needs an entire line.
  • The -a meens to list all files, including hidden files (files whose names start with a dot, are not normally visible when viewing contents of directories, unless this "-a" flag is present), and the
  • "-h" tells the list command to display file sizes in units suitable for human comprehension, so to report 10000 bytes as 1M.

Once we see the long listing of the contents of /dev/sdb1 listed at /mnt/tmp, we can proceed to verify and edit if necessary the ownerships and permissions of the files to make sure your regular user can access them.

Last edited by slac-in-the-box; 03-05-2023 at 04:38 PM. Reason: corrections
 
1 members found this post helpful.
Old 03-07-2023, 09:03 PM   #50
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
A million Thanks slac & yancek.
You are totally awesome.

I've been urgently job hunting & then starting a new job or two.
Sitting down to study instrux & go for the actions is high priority now.
Need to do major project & sorting this a.s.a.p. is indispensable.
(It just locked another stick! AAAaaarrrrghghgh!!!)
 
Old 03-10-2023, 04:04 AM   #51
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
I live in a remote mountain wilderness...our pack of dogs...
Wow sounds kool... Wish I lived "in a remote mountain wilderness..." with a pack of dogs!

Getting snowed in is serious though. I sympathize with your tribulations. Been there, done that... at moments...
 
Old 03-10-2023, 04:08 AM   #52
MollyLinux
Member
 
Registered: Jan 2023
Location: Ireland
Distribution: Don't know what that means
Posts: 44

Original Poster
Rep: Reputation: 9
Another point of ignorance:
Don't know what is meant by "distro" or one's "distribution".
 
Old 03-10-2023, 04:17 AM   #53
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,294
Blog Entries: 3

Rep: Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719Reputation: 3719
Quote:
Originally Posted by MollyLinux View Post
Don't know what is meant by "distro" or one's "distribution".

A "distro" is short for distribution which is short for software distribution. It is a complete set of a kernel, userspace utilities, and applications. On the dekstop it also includes a graphical interface. Popular desktop examples include Linux Mint, Manjaro, or MX Linux. Popular server-oriented examples include Debian (or Devuan), Alpine, or Rocky. Components can be mixed and matched or reconfigured to make one distro look and act like another, within some limits.

For a list of "all" of them, see DistroWatch, or see the big timeline: https://commons.wikimedia.org/wiki/F...n_Timeline.svg
 
1 members found this post helpful.
Old 03-10-2023, 04:20 AM   #54
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
Don't know what is meant by "distro" or one's "distribution".
Ubuntu is an example of one. Others include Slackware, Debian, Linux Mint and 500+ more. They all use the Linux kernel as a base and have many variations in software A more detailed description can be found at the link to the OpenSuse site below.

https://www.suse.com/suse-defines/de...-distribution/.
 
1 members found this post helpful.
Old 03-10-2023, 04:21 AM   #55
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 allend View Post
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...
Thanks so much for this. Apologies for my delayed reply.
I think you're the only one who's really responded about this; which may be the crux of the matter.

However, I haven't a clue what the above quotation means exactly.
What do you mean "dirty bit"?

Maybe I could "UNMOUNT", THEN put the computer to sleep, then pull it out; just to be sure no sudden loose cannon actions that wipe out my stick...
 
Old 03-10-2023, 04:33 AM   #56
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 this, which is another of the most helpful replies, which I'm only now able to sit down & try to really act on.

Yes, because of the problems on Linux & not being able to find answers about it, for years I've tried to keep all stick actions on the Windows side.
That means that new sticks would be formatted on the Windows side, FAT32.
I suppose you're telling me that this made my sticks all NTFS.

Does this mean that my sticks will be NTFS-3g if I format them on the Linux side?

THANKS
P.S.
"Old computers (& RPi) with lightweight distros
Ultra small desktop computers & thin clients"
(I realize that this is part of your signature. Sounds like it might be me, too (if I knew what "distros" means.) My lenovo thinkpad is ten years old, re-furb'ed.)
 
Old 03-10-2023, 04:39 AM   #57
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 michaelk View Post
Out of curiosity have you tried repairing the filesystem yet?
No, thanks, haven't gotten that far yet.
I'm afraid of hitting the ejector seat
& losing all my files.
(I've seen this done by "repair" operations.)

At the moment they're just locked.
They haven't been actually destroyed.
I'd rather hang onto them, locked, than risk losing them.
 
Old 03-10-2023, 05:02 AM   #58
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
...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.
What "arrow" where??

Quote:
Originally Posted by hazel View Post
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.
There is no account on my computer named "molly" or "root".
When the computer refers to me as "me" it is referring to "user":
the one and only user account ever on this computer.
There is not nor has ever been any other.

Going back to the Screenshot of the Stick's "Properties" dialog box:
It recognizes me, logged on as "user", as the owner of the stick,
with full Read-Write Permissions.

"Group" "user" is locked out: Access only.

And with this, I am locked out: "user" (the one & only user account ever, who is (& seems to be recognized as) "root".
Correct me if I'm wrong, but this seems to be THE PROBLEM that all the 40+ messages here & all this verbiage is about.
THIS is THE PROBLEM which needs to be fixed.


Deeply indebted for all your kind efforts & patience.

Any suggestions? Or am I missing it in bleary screen blindness & limited techno capacities?
 
Old 03-10-2023, 05:03 AM   #59
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Quote:
Originally Posted by MollyLinux View Post
Yes, because of the problems on Linux & not being able to find answers about it, for years I've tried to keep all stick actions on the Windows side.
That means that new sticks would be formatted on the Windows side, FAT32.
I suppose you're telling me that this made my sticks all NTFS.
No, if you formatted them as FAT, then they're FAT. This was the original DOS/Windows filesystem and it's still the preferred one for memory sticks because just about every OS has a driver for it. But since Windows XP, all hard drive partitions have been formatted as ntfs.
Quote:
Does this mean that my sticks will be NTFS-3g if I format them on the Linux side?
Depends what you format them as. Since Linux can handle multiple formats, you can create sticks with FAT, VFAT or ext4 filesystems. VFAT (the Windows-95 format) tends to be preferred as it can be used easily with both Windows and Linux. I don't know if Linux can create ntfs sticks but I can't see any use for these anyway since Windows can read vfat perfectly well.

ntfs-3g isn't a format. It's a software package that allows the Linux kernel to write to ntfs partitions as well as reading them.
 
1 members found this post helpful.
Old 03-10-2023, 05:16 AM   #60
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Quote:
Originally Posted by MollyLinux View Post
What "arrow" where??
The one shown in your screen shot presumably.I can't remember any more what that looked like.
Quote:
There is no account on my computer named "molly" or "root".
When the computer refers to me as "me" it is referring to "user":
the one and only user account ever on this computer.
There is not nor has ever been any other.
Well, that's unusual. When you install Linux, you are always asked to create a user account for yourself but most people don't call it "user" because that's confusing. They call it by their name or nickname.
Quote:
Going back to the Screenshot of the Stick's "Properties" dialog box:
It recognizes me, logged on as "user", as the owner of the stick,
with full Read-Write Permissions.

"Group" "user" is locked out: Access only.

And with this, I am locked out: "user" (the one & only user account ever, who is (& seems to be recognized as) "root".
Correct me if I'm wrong, but this seems to be THE PROBLEM that all the 40+ messages here & all this verbiage is about.
THIS is THE PROBLEM which needs to be fixed.
Probably not. The system should be able to distinguish the user ID "user" from the group ID of the same name. After all, most distros these days create a separate named group for each individual user. And it is quite common for the default access for the group to be read only. No, I don't think that is the problem, but someone else might have a different view.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:29 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