WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument  (Read 279 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 105
Hi guys,

I'm having a problem installing curl.tcz. Here is the error message and what was done to troubleshoot this isssue.

Code: [Select]
tc@box:/$ tce-load -wi curl.tcz
Downloading: curl.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: short write
mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument

tc@box:/$

wget: short write
Quick google shows that someone said this was HDD or memory space issue.
However, df -h & free -m doesn't show any HDD & memory space issue

Code: [Select]
tc@box:/$ free -m
             total       used       free     shared    buffers     cached
Mem:           500         56        444         12          3         23
-/+ buffers/cache:         29        470
Swap:          116          0        116
tc@box:/$


Code: [Select]
tc@box:/$ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  450.6M     12.7M    437.9M   3% /
tmpfs                   250.3M         0    250.3M   0% /dev/shm
/dev/sda1                87.1M     82.4M         0 100% /mnt/sda1
/dev/loop0              232.0K    232.0K         0 100% /tmp/tcloop/ncurses
/dev/loop1              272.0K    272.0K         0 100% /tmp/tcloop/grub-0.97-splash
/dev/loop2                2.1M      2.1M         0 100% /tmp/tcloop/db
/dev/loop3              472.0K    472.0K         0 100% /tmp/tcloop/iproute2
/dev/loop4                1.5M      1.5M         0 100% /tmp/tcloop/openssl
/dev/loop5               16.0K     16.0K         0 100% /tmp/tcloop/libffi
/dev/loop6              128.0K    128.0K         0 100% /tmp/tcloop/gamin
/dev/loop7                1.4M      1.4M         0 100% /tmp/tcloop/glib2
/dev/loop8               36.0K     36.0K         0 100% /tmp/tcloop/udev-lib
/dev/loop9               44.0K     44.0K         0 100% /tmp/tcloop/libusb
/dev/loop10              96.0K     96.0K         0 100% /tmp/tcloop/libpcap
/dev/loop11             272.0K    272.0K         0 100% /tmp/tcloop/tcpdump
/dev/loop12              28.0K     28.0K         0 100% /tmp/tcloop/bzip2-lib
/dev/loop13             256.0K    256.0K         0 100% /tmp/tcloop/pcre
/dev/loop14               1.7M      1.7M         0 100% /tmp/tcloop/nmap-dbs
/dev/loop15              88.0K     88.0K         0 100% /tmp/tcloop/lua-5.23-lib
/dev/loop16               3.3M      3.3M         0 100% /tmp/tcloop/nmap
/dev/loop17             136.0K    136.0K         0 100% /tmp/tcloop/dropbear
/dev/loop18             492.0K    492.0K         0 100% /tmp/tcloop/sqlite3
/dev/loop19             108.0K    108.0K         0 100% /tmp/tcloop/readline
/dev/loop20              88.0K     88.0K         0 100% /tmp/tcloop/liblzma
/dev/loop21              64.0K     64.0K         0 100% /tmp/tcloop/gdbm
/dev/loop22              15.8M     15.8M         0 100% /tmp/tcloop/python3.5
/dev/loop23             500.0K    500.0K         0 100% /tmp/tcloop/netfilter-4.2.9-tinycore
/dev/loop24             448.0K    448.0K         0 100% /tmp/tcloop/iptables
/dev/loop25              13.0M     13.0M         0 100% /tmp/tcloop/perl5
/dev/loop26             356.0K    356.0K         0 100% /tmp/tcloop/file
/dev/loop27              16.0K     16.0K         0 100% /tmp/tcloop/slocate
/dev/loop28              68.0K     68.0K         0 100% /tmp/tcloop/expat2
/dev/loop29             108.0K    108.0K         0 100% /tmp/tcloop/apr
/dev/loop30              84.0K     84.0K         0 100% /tmp/tcloop/apr-util
/dev/loop31             944.0K    944.0K         0 100% /tmp/tcloop/apache2
/dev/loop32              36.0K     36.0K         0 100% /tmp/tcloop/bftpd
tc@box:/$

What should I do next to fix this problem?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6851
    • My Community Forum
Re: mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument
« Reply #1 on: February 04, 2017, 07:27:06 AM »
Increase free space for /tce
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9409
Re: mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument
« Reply #2 on: February 04, 2017, 10:29:39 AM »
/dev/sda1                87.1M     82.4M         0 100% /mnt/sda1

You are out of disk space.
The only barriers that can stop you are the ones you create yourself.

Offline Adam

  • Full Member
  • ***
  • Posts: 105
Re: mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument
« Reply #3 on: February 04, 2017, 06:59:20 PM »
Thanks curaga.

I understand now how Tiny Core works. It's little bit different from other Linux distro, but the best part is ... it's the smallest & lightest distro I ever found.

For each extensions installed, it will be kept at /dev/loop<number> or /tmp/tcloop/<extension name>
Example:
/dev/loop0 or /tmp/tcloop/ncurses
Code: [Select]
tc@box:~$ mount | grep /dev/loop0
/dev/loop0 on /tmp/tcloop/ncurses type squashfs (ro,relatime)
tc@box:~$

This VM box has 12.8 GB HDD space (/dev/sda) and it has been partitioned to /dev/sda1 & /dev/sda2
Code: [Select]
tc@box:~$ fdisk -l

Disk /dev/sda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1   *           1          12       96358+ 83 Linux
/dev/sda2              13        1567    12486522  83 Linux
tc@box:~$

All this information lead me to the next question ...

1. Why only /dev/sda1 being used and not /dev/sda2?
2. What should I do to fully utilized /dev/sda2 too?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6851
    • My Community Forum
Re: mount: mounting /dev/loop33 on /tmp/tcloop/curl failed: Invalid argument
« Reply #4 on: February 04, 2017, 07:34:35 PM »
1) TC mounts only the partition where the /tce directory found, all others left intact

2) Mount it either manually or in a boot script, see /opt/bottlocal.sh
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."