motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

/data was not extended to use all available remaining space

Open M-M-M-M opened this issue 6 years ago • 2 comments
trafficstars

issue

During installation /data is not using all the remaining disk space. On a 1 GB SD Card:

# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               213.0M    190.6M      7.5M  96% /
devtmpfs                 53.7M         0     53.7M   0% /dev
tmpfs                    57.9M     16.0K     57.9M   0% /dev/shm
tmpfs                    57.9M    156.0K     57.7M   0% /tmp
/dev/mmcblk0p1           29.9M     12.7M     17.3M  42% /boot
/dev/mmcblk0p3           62.8M      3.6M     54.4M   6% /data
/dev/mmcblk0p3           62.8M      3.6M     54.4M   6% /home/ftp/sdcard
/dev/mmcblk0p3           62.8M      3.6M     54.4M   6% /home/ftp/storage

Expecting is that /data should use more than 62.8M : ~700 MB

motionEyeOS Version

motioneyeos-raspberrypi-20190911.img

Installed by formating SD Card by using SD Card Formatter and copying the image by using balenaEtcher unwoder Windows 10.

Board Model

Raspberry Pi Model B Rev 1

Log Files

boot.log

---- booting motionEyeOS 20190911 ----
 * Detecting disk device: /dev/mmcblk0
 * Creating data partition: done
 * Formatting data partition: done
 * Mounting data partition: done
 * Creating required data files: done
 * Setting empty root password: done
 * Mounting filesystems: done
 * Loading kernel modules: done
 * Setting hostname: done
 * Configuring CPU frequency: done
 * Starting syslogd: done
 * Starting throttle watcher: done
 * Starting eudev: done
 * Starting watchdog: done
 * Starting rngd: done
 * Configuring wired network: dhcp
 * Setting current date using http: Wed Oct 16 07:54:05 UTC 2019
 * Starting http date updater: done
 * Starting crond: done
 * Starting sshd: done
 * Starting proftpd: done
 * Starting smbd: done
 * Starting nmbd: done
 * Starting motioneye: done
 # Interface eth0 has IP address 192.168.4.56/22
 # Default gateway is 192.168.4.1
 # DNS server address is 192.168.4.210

dmesg.log

---- booting motionEyeOS 20190911 ----
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.65 (root@274f3346931c) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1 Wed Sep 11 01:37:08 UTC 2019
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 8 MiB at 0x07400000
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x49c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: coherent_pool=1M bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbswap=1 vc_mem.mem_base=0xec00000 vc_mem.mem_size=0x10000000  dwc_otg.fiq_fix_enable=1 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait ro rootflags=noload panic=10 quiet loglevel=1 ipv6.disable=1
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109888K/131072K available (6990K kernel code, 636K rwdata, 2084K rodata, 468K init, 797K bss, 12992K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0x(ptrval) - 0x(ptrval)   (6991 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   ( 468 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 637 kB)
                      .bss : 0x(ptrval) - 0x(ptrval)   ( 798 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 25274 entries in 75 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000032] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000079] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000200] bcm2835: system timer (irq = 27)
[    0.000613] Console: colour dummy device 80x30
[    0.000641] console [tty1] enabled
[    0.000701] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060341] pid_max: default: 32768 minimum: 301
[    0.060877] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060898] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.062304] CPU: Testing write buffer coherency: ok
[    0.063640] Setting up static identity map for 0x8200 - 0x8238
[    0.065006] devtmpfs: initialized
[    0.075679] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.076098] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.076128] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.077472] pinctrl core: initialized pinctrl subsystem
[    0.079050] NET: Registered protocol family 16
[    0.082318] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.089570] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.089586] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.089722] Serial: AMBA PL011 UART driver
[    0.093029] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.137876] bcm2835-dma 20007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[    0.140415] SCSI subsystem initialized
[    0.140682] usbcore: registered new interface driver usbfs
[    0.140958] usbcore: registered new interface driver hub
[    0.141133] usbcore: registered new device driver usb
[    0.160942] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-09 17:28, variant start_x
[    0.170953] raspberrypi-firmware soc:firmware: Firmware hash is 0e6daa5106dd4164474616408e0dc24f997ffcf3
[    0.183389] clocksource: Switched to clocksource timer
[    0.290103] VFS: Disk quotas dquot_6.6.0
[    0.290233] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.290560] FS-Cache: Loaded
[    0.290912] CacheFiles: Loaded
[    0.310107] NET: Registered protocol family 2
[    0.311435] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.311498] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.311528] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.311560] TCP: Hash tables configured (established 1024 bind 1024)
[    0.311732] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.311766] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.312186] NET: Registered protocol family 1
[    0.313295] RPC: Registered named UNIX socket transport module.
[    0.313308] RPC: Registered udp transport module.
[    0.313313] RPC: Registered tcp transport module.
[    0.313319] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.314730] hw perfevents: no irqs for PMU, sampling events not supported
[    0.314793] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.319203] Initialise system trusted keyrings
[    0.319761] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.334901] FS-Cache: Netfs 'nfs' registered for caching
[    0.336219] NFS: Registering the id_resolver key type
[    0.336272] Key type id_resolver registered
[    0.336280] Key type id_legacy registered
[    0.336308] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.341905] Key type asymmetric registered
[    0.341922] Asymmetric key parser 'x509' registered
[    0.342038] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.342502] io scheduler noop registered
[    0.342516] io scheduler deadline registered
[    0.343136] io scheduler cfq registered (default)
[    0.343152] io scheduler mq-deadline registered
[    0.343159] io scheduler kyber registered
[    0.346017] bcm2708_fb soc:fb: FB found 1 display(s)
[    0.398049] Console: switching to colour frame buffer device 240x67
[    0.437829] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1920x1080
[    0.442152] bcm2835-rng 20104000.rng: hwrng registered
[    0.442711] vc-mem: phys_addr:0x00000000 mem_base=0x0ec00000 mem_size:0x10000000(256 MiB)
[    0.444170] vc-sm: Videocore shared memory driver
[    0.444965] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    0.469068] brd: module loaded
[    0.485100] loop: module loaded
[    0.486119] Loading iSCSI transport class v2.0-870.
[    0.487282] usbcore: registered new interface driver smsc95xx
[    0.487320] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.515490] dwc_otg 20980000.usb: base=(ptrval)
[    0.716100] Core Release: 2.80a
[    0.716121] Setting default values for core params
[    0.716167] Finished setting default values for core params
[    0.916751] Using Buffer DMA mode
[    0.916768] Periodic Transfer Interrupt Enhancement - disabled
[    0.916776] Multiprocessor Interrupt Enhancement - disabled
[    0.916790] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.916924] Dedicated Tx FIFOs mode
[    0.917883] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = c7514000 dma = 0x47514000 len=9024
[    0.917915] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.917929] dwc_otg: Microframe scheduler enabled
[    0.918145] WARN::hcd_init_fiq:457: FIQ on core 0
[    0.918165] WARN::hcd_init_fiq:458: FIQ ASM at c04fd4e8 length 36
[    0.918198] WARN::hcd_init_fiq:497: MPHI regs_base at c8810000
[    0.918233] dwc_otg 20980000.usb: DWC OTG Controller
[    0.918308] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.918394] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.918457] Init: Port Power? op_state=1
[    0.918466] Init: Power Port (0)
[    0.918943] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    0.918966] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.918979] usb usb1: Product: DWC OTG Controller
[    0.918990] usb usb1: Manufacturer: Linux 4.19.65 dwc_otg_hcd
[    0.919003] usb usb1: SerialNumber: 20980000.usb
[    0.920331] hub 1-0:1.0: USB hub found
[    0.920460] hub 1-0:1.0: 1 port detected
[    0.921705] dwc_otg: FIQ enabled
[    0.921716] dwc_otg: NAK holdoff enabled
[    0.921723] dwc_otg: FIQ split-transaction FSM enabled
[    0.921742] Module dwc_common_port init
[    0.922306] usbcore: registered new interface driver usb-storage
[    0.922851] mousedev: PS/2 mouse device common for all mice
[    0.924690] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    0.925222] bcm2835-cpufreq: min=700000 max=700000
[    0.926092] sdhci: Secure Digital Host Controller Interface driver
[    0.926105] sdhci: Copyright(c) Pierre Ossman
[    0.926924] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[    0.927250] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.927965] ledtrig-cpu: registered to indicate activity on CPUs
[    0.928128] hidraw: raw HID events driver (C) Jiri Kosina
[    0.928460] usbcore: registered new interface driver usbhid
[    0.928470] usbhid: USB HID core driver
[    0.929758] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    0.932297] [vc_sm_connected_init]: start
[    0.943292] [vc_sm_connected_init]: end - returning 0
[    0.945725] Initializing XFRM netlink socket
[    0.945810] NET: Registered protocol family 17
[    0.945992] Key type dns_resolver registered
[    0.948240] registered taskstats version 1
[    0.948276] Loading compiled-in X.509 certificates
[    0.960257] uart-pl011 20201000.serial: cts_event_workaround enabled
[    0.960423] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    0.964419] sdhost: log_buf @ (ptrval) (47513000)
[    1.012011] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.014123] of_cfs_init
[    1.014299] of_cfs_init: OK
[    1.015633] Waiting for root device /dev/mmcblk0p2...
[    1.046403] random: fast init done
[    1.075869] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.078461] mmc0: new high speed SD card at address b368
[    1.080380] mmcblk0: mmc0:b368 00000 954 MiB
[    1.084186]  mmcblk0: p1 p2
[    1.113533] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: noload
[    1.113652] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.115476] devtmpfs: mounted
[    1.120314] Freeing unused kernel memory: 468K
[    1.120330] This architecture does not have kernel memory protection.
[    1.120337] Run /sbin/init as init process
[    1.143766] Indeed it is in host mode hprt0 = 00021501
[    1.353530] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.353829] Indeed it is in host mode hprt0 = 00001101
[    1.594171] usb 1-1: New USB device found, idVendor=0424, idProduct=9512, bcdDevice= 2.00
[    1.594200] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.595760] hub 1-1:1.0: USB hub found
[    1.595976] hub 1-1:1.0: 3 ports detected
[    1.913672] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.044251] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[    2.044279] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.047757] smsc95xx v1.0.6
[    2.146883] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:9e:07:a6
[    2.243615] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.374943] usb 1-1.2: New USB device found, idVendor=1908, idProduct=2311, bcdDevice= 1.00
[    2.374972] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.374986] usb 1-1.2: Product: USB2.0 PC CAMERA
[    2.375001] usb 1-1.2: Manufacturer: Generic
[    6.619163] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    9.105144] random: smbpasswd: uninitialized urandom read (8 bytes read)
[    9.148158] random: smbpasswd: uninitialized urandom read (12 bytes read)
[   10.882080] media: Linux media interface: v0.10
[   10.928500] videodev: Linux video capture interface: v2.00
[   10.977969] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   10.981228] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   10.981253] [vc_sm_connected_init]: start
[   10.982294] [vc_sm_connected_init]: installed successfully
[   10.988557] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   10.998280] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   11.840814] i2c /dev entries driver
[   13.371075] udevd[262]: starting version 3.2.7
[   13.420301] random: udevd: uninitialized urandom read (16 bytes read)
[   13.424539] random: udevd: uninitialized urandom read (16 bytes read)
[   13.424858] random: udevd: uninitialized urandom read (16 bytes read)
[   13.533952] udevd[263]: starting eudev-3.2.7
[   14.862605] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   14.957377] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[   14.957405] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[   14.986204] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[   14.986230] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[   15.026723] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[   15.026750] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[   15.316343] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   15.470286] bcm2835_audio soc:audio: card created with 8 channels
[   15.773286] uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (1908:2311)
[   15.790920] uvcvideo 1-1.2:1.0: Entity type for entity Processing 2 was not initialized!
[   15.790958] uvcvideo 1-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[   15.799862] input: USB2.0 PC CAMERA: USB2.0 PC CAM as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[   15.801254] usbcore: registered new interface driver uvcvideo
[   15.801270] USB Video Class driver (1.1.1)
[   17.675940] random: crng init done
[   17.675970] random: 1 urandom warning(s) missed due to ratelimiting
[   18.947621] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   20.482622] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC1E1
[   27.334254] IPv6: Loaded, but administratively disabled, reboot required to enable
[   27.561220] system date is 2019-10-16 07:54:05
[   62.589337] bcm2835-codec bcm2835-codec: get_q_data: Invalid queue type 1
[   62.658625] bcm2835-codec bcm2835-codec: get_q_data: Invalid queue type 

M-M-M-M avatar Oct 16 '19 08:10 M-M-M-M

1.080380] mmcblk0: mmc0:b368 00000 954 MiB

That's a 1GB SD card (if we're being generous and if the host detected it correctly). motionEyeOS reserves the first 1GB to boot and root partitions. The rest goes to data :)

ccrisan avatar Oct 16 '19 18:10 ccrisan

Let's close this issue.

axelsimon avatar Nov 16 '22 01:11 axelsimon