Find the answer to your Linux question:
Results 1 to 4 of 4
I have a system whit a PXA300 (arm), 512 Mb nand flash JFFS2 and a debian distro. It have a very slow boot. At start it executes in rcS.d the ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    9

    slow boot

    I have a system whit a PXA300 (arm), 512 Mb nand flash JFFS2 and a debian distro.
    It have a very slow boot.
    At start it executes in rcS.d the attachment script.
    I have insert in the script some echo to see where is the problem:

    at line 288
    ...
    #
    # Remount root to final mode (rw or ro).
    #
    # See the comments above at the previous "mount -o remount"
    # for an explanation why we try this twice.
    #
    echo 1
    if ! mount -n -o remount,$rootopts,$rootmode $fstabroot / 2>/dev/null
    then
    echo 2
    mount -n -o remount,$rootopts,$rootmode /
    fi

    #
    # We only create/modify /etc/mtab if the location where it is
    # stored is writable. If /etc/mtab is a symlink into /proc/
    # then it is not writable.
    #
    echo 3
    init_mtab=no

    ...

    when I start the system, the messagges in this section is:
    1
    (wait for long time, like 5 minutes)
    3

    the only instruction that it executes is
    if ! mount -n -o remount,$rootopts,$rootmode $fstabroot / 2>/dev/null.

    can you help me to speed up the boot?
    Attached Files Attached Files

  2. #2
    Linux Engineer Kieren's Avatar
    Join Date
    Aug 2007
    Location
    England
    Posts
    845
    It seems to hang when trying to mount a drive. To see the full command that's causing the hang after your "echo 1" line add the following:

    Code:
    echo "Trying: mount -n -o remount,$rootopts,$rootmode $fstabroot"
    What is the output from that?
    Linux User #453176

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    9
    Trying: mount -n -o remount,defaults,rw /dev/root

  4. #4
    Just Joined!
    Join Date
    Jun 2009
    Posts
    9
    I read that it's depends to jffs2 file system. This fs it's particularly slow to the boot for large memory because it must check all inodes.
    in fact I try to reduce the root partition and the boot it's more fast.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...