WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Why I can't mount a usb partition?  (Read 5086 times)

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Why I can't mount a usb partition?
« on: June 04, 2021, 11: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
« Last Edit: June 04, 2021, 11:34:21 AM by gam »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Why I can't mount a usb partition?
« Reply #1 on: June 04, 2021, 11:44:22 AM »
Hi gam
You also need to post the command you executed that produced that error message.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Why I can't mount a usb partition?
« Reply #2 on: June 04, 2021, 11:45:42 AM »
What mount command are you using?

Why not use a linux filesystem?

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #3 on: June 04, 2021, 08:11:11 PM »
my terminal
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)?
« Last Edit: June 04, 2021, 08:21:18 PM by gam »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Why I can't mount a usb partition?
« Reply #4 on: June 04, 2021, 08:31:55 PM »
Hi gam
Does it work like this:
Code: [Select]
sudo ntfs-3g /dev/sdb1 /mnt/sdb1

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #5 on: June 04, 2021, 09:19:25 PM »
Thanks. But it still has problem
https://anotepad.com/notes/h87i6j27
« Last Edit: June 04, 2021, 09:23:54 PM by gam »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Why I can't mount a usb partition?
« Reply #6 on: June 04, 2021, 09:51:28 PM »
Hi gam
Do your partitions exist in the  /dev  directory:
Code: [Select]
ls -l /dev/sdb*

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #7 on: June 04, 2021, 10: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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Why I can't mount a usb partition?
« Reply #8 on: June 04, 2021, 10: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.

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #9 on: June 05, 2021, 03: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?
« Last Edit: June 05, 2021, 04:03:59 AM by gam »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Why I can't mount a usb partition?
« Reply #10 on: June 05, 2021, 05: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

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #11 on: June 05, 2021, 05:44:12 AM »
My command:
Code: [Select]
tc@box:~$  tce-status -i | grep ntfs
tc@box:~$
Nothing happened
« Last Edit: June 05, 2021, 06:11:58 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Why I can't mount a usb partition?
« Reply #12 on: June 05, 2021, 06: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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: Why I can't mount a usb partition?
« Reply #13 on: June 05, 2021, 06: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

Offline gam

  • Jr. Member
  • **
  • Posts: 53
Re: Why I can't mount a usb partition?
« Reply #14 on: June 05, 2021, 06:25:26 AM »
yes, I did :)
https://anotepad.com/notes/gc9kiha2
Why Tinycore can't mount HPFS filesystem? Because sdb1 is HPFS/NTFS
« Last Edit: June 05, 2021, 06:28:18 AM by gam »