Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: gam on June 04, 2021, 08:26:29 AM

Title: Why I can't mount a usb partition?
Post by: gam on June 04, 2021, 08:26:29 AM
I made a Grub2 bootable usb, with:
-sdb1(HPFS/NTFS) has vmlinux and core.gz
-sdb2 (FAT32) is efi boot partition and contain ntfs-3g.tcz and dependencies.
Grub2 boot the OS very well (I didn't load ntfs-3g, system seemed to select HPFS file system?). But I can't mount /sdb1 to /mnt, although I loaded ntfs-3g,
Code: [Select]
mount: invalid argument
Title: Re: Why I can't mount a usb partition?
Post by: Rich on June 04, 2021, 08:44:22 AM
Hi gam
You also need to post the command you executed that produced that error message.
Title: Re: Why I can't mount a usb partition?
Post by: Juanito on June 04, 2021, 08:45:42 AM
What mount command are you using?

Why not use a linux filesystem?
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 04, 2021, 05:11:11 PM
my terminal
https://imgur.com/N8ILyck (https://imgur.com/N8ILyck)
it seems that ntfs-3g only works internally in sdb2 partition, ntfs-3g doesn't work in the whole usb drive (include sdb1 (HPFS/NTFS) partition)?
Title: Re: Why I can't mount a usb partition?
Post by: Rich on June 04, 2021, 05:31:55 PM
Hi gam
Does it work like this:
Code: [Select]
sudo ntfs-3g /dev/sdb1 /mnt/sdb1
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 04, 2021, 06:19:25 PM
Thanks. But it still has problem
https://anotepad.com/notes/h87i6j27
Title: Re: Why I can't mount a usb partition?
Post by: Rich on June 04, 2021, 06:51:28 PM
Hi gam
Do your partitions exist in the  /dev  directory:
Code: [Select]
ls -l /dev/sdb*
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 04, 2021, 07:07:34 PM
Hi gam
Do your partitions exist in the  /dev  directory:
Code: [Select]
ls -l /dev/sdb*
Yes,
Code: [Select]
$ ls -l /dev/sdb1
brw-rw----       1 root       staff       8,    17 Jun   5 09:03 /dev/sdb1
Title: Re: Why I can't mount a usb partition?
Post by: Rich on June 04, 2021, 07:33:37 PM
Hi gam
Matbe the problem is loading  ntfs-3g  after the device was plugged in. Run this command:
Code: [Select]
sudo udevadm triggerthen see if it mounts.
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 05, 2021, 12:48:45 AM
It still unmount
Code: [Select]
$ sudo udevadm trigger
$ sudo mount -t ntfs-3g /dev/sdb1 /mnt/sdb1
mount: mounting /dev/sdb1 on /mnt/sdb1 failed: No such device

/dev/sdb1 doesn't appear after
Code: [Select]
$ df -aTh
I think ntfs-3g isn't loaded, because:
Code: [Select]
$ sudo ntfs-3g /dev/sdb1 /mnt/sdb1
sudo: ntfs-3g: command not found

Do I need install ntfsprogs.tcz? Or add ntfs-3g in grub.cfg?
Title: Re: Why I can't mount a usb partition?
Post by: Juanito on June 05, 2021, 02:14:12 AM
What does this give:
Code: [Select]
$ fdisk -l
To check if ntfs-3g is loaded:
Code: [Select]
$ tce-status -i | grep ntfs
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 05, 2021, 02:44:12 AM
My command:
Code: [Select]
tc@box:~$  tce-status -i | grep ntfs
tc@box:~$
Nothing happened
Title: Re: Why I can't mount a usb partition?
Post by: Juanito on June 05, 2021, 03:08:40 AM
If nothing happened then ntfs-3g is not loaded.

Try:
Code: [Select]
$ tce-load -i ntfs-3g
$ tce-status -i | grep ntfs
Title: Re: Why I can't mount a usb partition?
Post by: Rich on June 05, 2021, 03:14:40 AM
Hi gam
After you run  tce-load -i ntfs-3g.tcz  try this:
Code: [Select]
hash
sudo ntfs-3g /dev/sdb1 /mnt/sdb1
Title: Re: Why I can't mount a usb partition?
Post by: gam on June 05, 2021, 03:25:26 AM
yes, I did :)
https://anotepad.com/notes/gc9kiha2 (https://anotepad.com/notes/gc9kiha2)
Why Tinycore can't mount HPFS filesystem? Because sdb1 is HPFS/NTFS
Title: Re: Why I can't mount a usb partition?
Post by: Juanito on June 05, 2021, 05:17:24 AM
Why Tinycore can't mount HPFS filesystem? Because sdb1 is HPFS/NTFS

This happens with mbr because it cannot distinguish between exfat/hpfs/ntfs - as long as you formatted the partition for ntfs, you should be able to mount it.
Title: Re: Why I can't mount a usb partition?
Post by: cast-fish on June 05, 2021, 07:05:56 AM
Hello Forum,

TRied to remember using that 3Gntfs extension here.

i remember
1) booting  TCL
2) loading the 3gntfs extension from the repo.
3) made sure no partitions or drives were mounted.
4) my drive showed 4 parts......
5) get the correct execution of the command to run the
extension in 2) above .......
give it the correct argument (flag)
of the correct "fully qualified environment drive path"  to the named partition where my TCL stuff is.....  (it is an NTFS partition)

6) it would mount and PRIME that work in 5) above..... then it would READ extensions from that location in 5) and load them...... if i told it to.

C

ps...but it was not a USB drive....it was a regular SSD drive.

.....is it possible the USB drive has not been correctly configured
as a whole NTFS drive with maybe some partitions inside that Larger whole partition....?

Title: Re: Why I can't mount a usb partition?
Post by: gam on June 06, 2021, 02:14:10 AM
Thanks everyone. I solved :)
Title: Re: Why I can't mount a usb partition?
Post by: cast-fish on June 06, 2021, 10:42:39 AM
Hello Foum and OP,

Great that it is solved.

.. . .  .there is great "worth" in knowing how to start--up systems to get useful "computing operation" from the equipment.....

Yes.

Thx


C