element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Pi Desktop - Strange Behavior on First Reboot
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 12 replies
  • Answers 2 answers
  • Subscribers 668 subscribers
  • Views 3317 views
  • Users 0 members are here
  • raspberry_pi
  • raspberry pi 3b+
  • pi desktop
  • reboot
  • disk check
Related

Pi Desktop - Strange Behavior on First Reboot

sjmarty
sjmarty over 6 years ago

I have a 3B+ and the Pi Desktop case.

 

After installing the application package, I shutdown the Pi and then upon powering it back up, it starts to do a disk check.  I've ran through these steps several times with a fresh Raspbian image each time and without fail, I always get this disk check when powering back up for the first time after installing the package.  I've tried both the "official" v1.1.0 and the "unofficial" v1.1.7 packages and get the same results.

 

Is this expected behavior?

  • Sign in to reply
  • Cancel
Parents
  • jomoenginer
    0 jomoenginer over 6 years ago

    Please post what commands you are using to install the packages and what you are running or doing to shutdown the Pi?

     

    Also, have a look at the output of 'dmesg' to see if there are any messages that would give an indication of an issue.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sjmarty
    0 sjmarty over 6 years ago in reply to jomoenginer

    Before installing the desktop application package, reboots and/or shutdowns do not trigger the disk check.  This only happens the first reboot after I install the Pi desktop package.

     

    I am installing the package with the command...

     

    sudo dpkg -i pidesktop-base.deb

     

    I have performed the shutdown via the GUI (Pi | Shutodown | Shutdown) and via the command line with...

     

    sudo shutdown and/or sudo reboot

     

    Any means of shutting down after installing the package result in the disk check.

     

    I think I may have found what's causing the disk check but I don't know why it's happening...

     

    When the Pi boots up the first time after installing the desktop package, the date appears to have been reset to 2016-11-03 @ 13:16:43 EDT.  This is from the system log after the first reboot...

     

    Nov 03 13:19:28 raspberrypi systemd[1]: Started Show Plymouth Boot Screen.

    Nov 03 13:19:28 raspberrypi systemd[1]: Started Forward Password Requests to Plymouth Directory Watch.

    Nov 03 13:19:28 raspberrypi systemd[1]: Reached target Paths.

    .

    .

    Nov 03 13:19:28 raspberrypi kernel: bcm2835_alsa bcm2835_alsa: card created with 8 channels

    Nov 03 13:19:28 raspberrypi systemd-timesyncd[241]: System clock time unset or jumped backwards, restoring from recorded timestamp: Thu 2019-02-28 19:10:11 EST

    Feb 28 19:10:11 raspberrypi systemd[1]: Time has been changed

    Feb 28 19:10:11 raspberrypi systemd[1]: Started Network Time Synchronization.

    Feb 28 19:10:11 raspberrypi systemd[1]: Reached target System Time Synchronized.

    Feb 28 19:10:11 raspberrypi systemd[1]: Startup finished in 3.727s (kernel) + 2min 46.642s (userspace) = 2min 50.369s.

    Feb 28 19:10:12 raspberrypi kernel: brcmfmac: F1 signature read @0x18000000=0x15264345

    .

    .

    Feb 28 19:10:12 raspberrypi systemd[1]: Started Load/Save RF Kill Switch Status.

    Feb 28 19:10:12 raspberrypi kernel: input: Logitech K400 Plus as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.2/0003:046D:C52B.0003/0003:046D:404D.0004/input/input0

    Feb 28 19:10:12 raspberrypi kernel: logitech-hidpp-device 0003:046D:404D.0004: input,hidraw1: USB HID v1.11 Keyboard [Logitech K400 Plus] on usb-3f980000.usb-1.1.3:1

    Feb 28 19:10:12 raspberrypi systemd[1]: Starting File System Check on /dev/disk/by-partuuid/9e2ad8bb-01...

    Feb 28 19:10:12 raspberrypi systemd-udevd[274]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.

    Feb 28 19:10:12 raspberrypi systemd-fsck[328]: fsck.fat 4.1 (2017-01-24)

    Feb 28 19:10:12 raspberrypi systemd-fsck[328]: /dev/sda1: 181 files, 44776/88440 clusters

    Feb 28 19:10:12 raspberrypi systemd[1]: Started File System Check on /dev/disk/by-partuuid/9e2ad8bb-01.

    Feb 28 19:10:12 raspberrypi systemd[1]: Mounting /boot...

    Feb 28 19:10:12 raspberrypi systemd[1]: Mounted /boot.

    Feb 28 19:13:27 raspberrypi systemd[1]: Time has been changed

    Feb 28 19:13:27 raspberrypi systemd-udevd[260]: Process '/usr/sbin/th-cmd --socket /var/run/thd.socket --passfd --udev' failed with exit code 1.

    Feb 28 19:13:30 raspberrypi kernel: logitech-hidpp-device 0003:046D:404D.0004: HID++ 4.1 device connected.

    Feb 28 19:13:30 raspberrypi systemd[1]: Listening on Syslog Socket.

     

    Any clue why installing this package would reset the system clock and is this causing the disk check?

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colporteur
    0 colporteur over 6 years ago in reply to sjmarty

    G'Day,

    I am willing to run your scenario if I can get a few more details.

     

    What is the name of the Raspbian base operating system you starting with?

    Confirm if you complete a software update/upgrade before attempting this install?

    I can then run you pkg install and see if the problem exists.

     

    Sean

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • sjmarty
    0 sjmarty over 6 years ago in reply to colporteur

    Thank you!

    colporteur  wrote:

    What is the name of the Raspbian base operating system you starting with?

    2018-11-13-raspbian-stretch-full.img

    colporteur  wrote:

    Confirm if you complete a software update/upgrade before attempting this install?

    Yes, I have done this both with and without doing a full software update/upgrade and get the disk check either way.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 6 years ago in reply to sjmarty

    I see the same thing with a Raspberry Pi A+ running the latest Raspbian image:

    cat /etc/os-release 
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

     

    Message in /var/log/syslog during power on.

    Mar  1 08:24:01 jomoaplus systemd[1]: Found device /dev/disk/by-partuuid/03b8a6fc-01.
    Mar  1 08:24:01 jomoaplus systemd[1]: Starting File System Check on /dev/disk/by-partuuid/03b8a6fc-01...
    Mar  1 08:24:01 jomoaplus systemd-fsck[210]: fsck.fat 4.1 (2017-01-24)
    Mar  1 08:24:01 jomoaplus systemd-fsck[210]: /dev/mmcblk0p1: 183 files, 44781/88440 clusters
    Mar  1 08:24:01 jomoaplus systemd[1]: Started File System Check on /dev/disk/by-partuuid/03b8a6fc-01.
    Mar  1 08:24:01 jomoaplus systemd[1]: Mounting /boot...
    Mar  1 08:24:01 jomoaplus systemd[1]: Mounted /boot.

     

    This is what is seen if I reboot after a few minutes

    Mar  1 08:49:29 jomoaplus systemd[1]: Found device /dev/disk/by-partuuid/03b8a6fc-01.
    Mar  1 08:49:29 jomoaplus systemd[1]: Starting File System Check on /dev/disk/by-partuuid/03b8a6fc-01...
    Mar  1 08:49:29 jomoaplus mtp-probe: checking bus 1, device 2: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1"
    Mar  1 08:49:29 jomoaplus mtp-probe: bus: 1, device: 2 was not an MTP device
    Mar  1 08:49:29 jomoaplus systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    Mar  1 08:49:29 jomoaplus systemd-fsck[198]: fsck.fat 4.1 (2017-01-24)
    Mar  1 08:49:29 jomoaplus systemd-fsck[198]: /dev/mmcblk0p1: 183 files, 44781/88440 clusters
    Mar  1 08:49:29 jomoaplus systemd[1]: Started File System Check on /dev/disk/by-partuuid/03b8a6fc-01.
    Mar  1 08:49:29 jomoaplus systemd[1]: Mounting /boot...
    Mar  1 08:49:29 jomoaplus systemd[1]: Mounted /boot.
    Mar  1 08:49:29 jomoaplus systemd[1]: Reached target Local File Systems.

     

     

    Something seems to be causing this to be triggered although it does not seem to find an issue.  It might be just that the the filesystem was just checked for any issues and a full fsck was not performed.

    Perhaps it is from the setting in /boot/cmdline.txt.

    dmesg |grep fsck
    [    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1360 bcm2708_fb.fbheight=768 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 root=PARTUUID=03b8a6fc-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash
    [    2.225162] systemd[1]: Listening on fsck to fsckd communication Socket

     

    cat /boot/cmdline.txt |grep fsck
     dwc_otg.lpm_enable=0 root=PARTUUID=03b8a6fc-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash
    pi@jomoaplus:~ $

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sjmarty
    0 sjmarty over 6 years ago in reply to colporteur

    colporteur  wrote:

     

    G'Day,

    I am willing to run your scenario if I can get a few more details.

     

    What is the name of the Raspbian base operating system you starting with?

    Confirm if you complete a software update/upgrade before attempting this install?

    I can then run you pkg install and see if the problem exists.

     

    Sean

    Did you need any additional information from me to give this a try?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • sjmarty
    0 sjmarty over 6 years ago in reply to colporteur

    colporteur  wrote:

     

    G'Day,

    I am willing to run your scenario if I can get a few more details.

     

    What is the name of the Raspbian base operating system you starting with?

    Confirm if you complete a software update/upgrade before attempting this install?

    I can then run you pkg install and see if the problem exists.

     

    Sean

    Did you need any additional information from me to give this a try?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • colporteur
    0 colporteur over 6 years ago in reply to sjmarty

    G'Day,

    Sorry man unable to follow through. This week I am out of town and not near my development bench. Maybe next week.

     

    Sean

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube