USB problem everyone except me seems to be solving!

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
MadjidHn
Posts: 8
Joined: Sun Sep 04, 2022 11:12 am

USB problem everyone except me seems to be solving!

Post by MadjidHn »

I can't use my usb in ghostbsd, i tried plenty of solutions which one of them the last before i gave up was from "vermaden's blog" almost solved it dsbmd https://vermaden.wordpress.com/2018/10/ ... ble-media/.
But some window showed up telling me i have no permission for "manipulating" my USB!
Last edited by MadjidHn on Sat Nov 05, 2022 12:10 pm, edited 1 time in total.
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Problem everyone except me seems to be solving!

Post by nevets »

Some thoughts...
1. What are the file permissions for "/media" folder?
From root / in a terminal:
# ls -l
Does this report:
"drwxr-xr-x root wheel"
for the /media folder?

2. What file system is on the USB?
Is the appropriate "fusefs" pkg installed for the file system?

3. Sometimes my USB is missed (like the system interrupt is busy) and I need to insert it again in a different slot and wait half a minute.

4. Sometimes, if I didn't unmount [safely remove hardware] the device properly on a Windows system, the issues flag is set and it won't mount on FreeBSD straight away.

5. Sometimes I simply need to run:
# sudo ntfs-3g -o permissions /dev/da0 /media/da0
to get the USB ntfs file system to mount.

Steve
MadjidHn
Posts: 8
Joined: Sun Sep 04, 2022 11:12 am

Re: Problem everyone except me seems to be solving!

Post by MadjidHn »

Thank you steve.
1- There is no "/media" folder when i tried
# ls -l
this is what i got:

total 701
drwx------ 9 m m 9 Sep 3 11:18 .cache
drwx------ 13 m m 16 Sep 5 07:19 .config
-rw-r--r-- 1 m m 962 Sep 3 10:54 .cshrc
drwx------ 3 m m 3 Sep 3 11:07 .dbus
-rw-r--r-- 1 m m 23 Sep 3 11:07 .dmrc
-rw-r----- 1 m m 0 Sep 3 11:08 .gksu.lock
drwxr-xr-x 2 m m 2 Sep 3 11:10 .icons
drwx------ 3 m m 3 Sep 3 11:07 .local
-rw-r--r-- 1 m m 323 Sep 3 10:54 .login
-rw-r--r-- 1 m m 91 Sep 3 10:54 .login_conf
-rw------- 1 m m 301 Sep 3 10:54 .mail_aliases
-rw-r--r-- 1 m m 267 Sep 3 10:54 .mailrc
drwx------ 4 m m 4 Sep 3 11:18 .mozilla
-rw-r--r-- 1 m m 1060 Sep 3 10:54 .profile
-rw-r--r-- 1 m m 695 Sep 3 10:54 .shrc
drwxr-xr-x 2 m m 2 Sep 3 11:10 .themes
-rw------- 1 m m 46 Sep 5 07:15 .Xauthority
-rw-r--r-- 1 m m 18 Sep 3 10:54 .xinitrc
-rwxr-xr-x 1 m m 32 Sep 3 10:54 .xprofile
-rw------- 1 m m 11998 Sep 5 07:26 .xsession-errors
-rw------- 1 m m 144319 Sep 4 23:10 .xsession-errors.old
drwxr-xr-x 2 m m 2 Sep 4 19:18 Desktop
drwxr-xr-x 2 m m 2 Sep 3 11:07 Documents
drwxr-xr-x 2 m m 2 Sep 3 11:07 Downloads
drwxr-xr-x 2 m m 2 Sep 3 11:07 Music
drwxr-xr-x 2 m m 2 Sep 4 12:05 Pictures
drwxr-xr-x 2 m m 2 Sep 3 11:07 Public
drwxr-xr-x 2 m m 2 Sep 3 11:07 Templates
drwxr-xr-x 2 m m 2 Sep 3 11:07 Videos

2- The file system on the USB should be FAT32, how to verify this? (Is the appropriate "fusefs" pkg installed for the file system?).
3- I don't think this is my problem i have tried so many times for so many days with 2 USB in many slots.
4- This is also not it.
5- it reported this:

Error opening '/dev/da0': Operation not permitted
Failed to mount '/dev/da0': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

And then when i replaced 'o' with 'ro' this is what it gave me:

ntfs-3g: Unknown option 'ntfs-3g'.

ntfs-3g 2022.5.17 external FUSE 29 - Third Generation NTFS Driver
Configuration type 1, XATTRS are off, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2021 Jean-Pierre Andre
Copyright (C) 2009-2020 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Plugin path: /usr/local/lib/ntfs-3g

News, support and information: https://github.com/tuxera/ntfs-3g/
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Problem everyone except me seems to be solving!

Post by nevets »

OK
1. The folder contents you listed looks like your "home" folder. This usually resides at
/home/me
where "me" is your login name.

The path to the media folder is different
/media

In a terminal window type
cd /
This puts you in the root folder "/".
Then try listing again with
ls -l
Now you should see media folder permissions listed.

2. FAT should be supported by default.

5. This was for NTFS not FAT which is why it didn't run.
For FAT you would need to type
sudo mount -t msdosfs /dev/da0s1 /media
MadjidHn
Posts: 8
Joined: Sun Sep 04, 2022 11:12 am

Re: Problem everyone except me seems to be solving!

Post by MadjidHn »

Thank you again Steve.
The report for "ls -l" was as expected, this: "drwxr-xr-x root wheel".
I tried "sudo mount -t msdosfs /dev/da0s1 /media", it said: mount_msdosfs: /dev/da0s1: Invalid fstype: Invalid argument.
What is going on, i'm sorry and just lost.
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Problem everyone except me seems to be solving!

Post by nevets »

... Try with the explicit "mount_msdosfs" command instead of just "mount"...
sudo mount_msdosfs /dev/da0 /media/da0

If you still don't see it ...
In a terminal...
cd /media
then list with...
ls

Is there a folder da0 or similar?
If so...
cd da0
then list with...
ls
Do you see your USB files?
MadjidHn
Posts: 8
Joined: Sun Sep 04, 2022 11:12 am

Re: Problem everyone except me seems to be solving!

Post by MadjidHn »

Thank you Steve.
"sudo mount_msdosfs /dev/da0 /media/da0": Operation not permitted.
"cd da0, ls" shows the files but not the ones i need, just some system information but what i put in the USB is not there.
Weird really, isn't GhostBSD supposed to be user friendly but the USB is not working as supposed to like with Windows or some GNU/Linux distro.
I really like it though, and want to keep using it.
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Problem everyone except me seems to be solving!

Post by nevets »

OK.
Let's check hardware... Is the USB hardware detected...

1. Get a readout of the boot report:
sudo grep USB /var/run/dmesg.boot

Do you see a report somewhat like this? This shows my keyboard and mouse connected at boot time....

xhci0: <Intel Sunrise Point USB 3.0 controller> mem 0xdf110000-0xdf11ffff irq 16 at device 20.0 on pci0
usbus0: 5.0Gbps Super Speed USB v3.0
ugen0.2: <Logitech USB Receiver> at usbus0
ukbd0: <Logitech USB Receiver, class 0/0, rev 2.00/29.00, addr 1> on usbus0
ums0: <Logitech USB Receiver, class 0/0, rev 2.00/29.00, addr 1> on usbus0

2. From System > Control Centre > software station > Install the package dmidecode
Now this lists tons of hardware when run without options.
On my system handle 9 is USB data. So try this first... in a terminal...
sudo dmidecode -H 9

Do you see something like...
Handle 0x0009, DMI type 8, 9 bytes
Port Connector Information
Internal Reference Designator: J3A1
Internal Connector Type: None
External Reference Designator: USB1
External Connector Type: Access Bus (USB)
Port Type: USB

If this isn't showing the USB stuff then list everything with...
sudo dmidecode

Then look for the USB entry.

Is the hardware discovered?
MadjidHn
Posts: 8
Joined: Sun Sep 04, 2022 11:12 am

Re: Problem everyone except me seems to be solving!

Post by MadjidHn »

Hello again Steve, and thank you for keeping up.
I tried the first one: (sudo grep USB /var/run/dmesg.boot), and this showed up, note; without the actual USB i'm trying to get working.
"ehci0: <Intel PCH USB 2.0 controller USB-B> mem 0xfbff0000-0xfbff03ff irq 16 at device 26.0 on pci0
usbus0: 480Mbps High Speed USB v2.0
ehci1: <Intel PCH USB 2.0 controller USB-A> mem 0xfbfea000-0xfbfea3ff irq 23 at device 29.0 on pci0
usbus1: 480Mbps High Speed USB v2.0
ugen1.4: <SIGMACHIP USB Keyboard> at usbus1
ukbd0: <SIGMACHIP USB Keyboard, class 0/0, rev 1.10/1.10, addr 4> on usbus1
uhid0: <SIGMACHIP USB Keyboard, class 0/0, rev 1.10/1.10, addr 4> on usbus1"
nevets
Posts: 163
Joined: Tue Jun 23, 2020 3:54 am

Re: Problem everyone except me seems to be solving!

Post by nevets »

If I understand correctly...
If you have the USB IN the USB port, and you THEN start the PC and then run "sudo grep USB /var/run/dmesg.boot"...
you do not see something similar to:
da0: <SRT USB 1100> Removable Direct Access SPC-2 SCSI device
The above example shows a recognised USB stick attached to the device DA0
?

If this is the case it seems to me we are left with:
The USB stick is faulty
The USB port is unpowered [cabling? BIOS setting? Motherboard Jumper? ...]
The USB format is not standard FAT or is improperly formatted.
Note that I don't think exFAT is not automatically supported in default Ghost.
Post Reply