Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: improper shutdown - root unionfs and power off

  1. #1
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423

    improper shutdown - root unionfs and power off

    I have done some own customization on knoppix but I am not sure if it is originally like that or it's due to my own customization, the problem I have is my customized knoppix is not shutting down properly.

    I have a knoppix-data.img which is unioned together with the readonly compressed imaged ( root file system ), the problem is that knoppix-data.img is not unmounted properly when I shutdown, and everytime it requires a fsck in the next reboot.

    Anyone else has the same problem ?

    In addition, my system sometimes did not power off properly, when it executes /etc/init.d/knoppix-halt, it will give 'input/output error' at certain line number of the script, and the machine will not power off. The problem is that it only happens intermittently - not always.

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    After checking the web, it seems that the unable to power off thingie is due to bug in kernel 2.6.32.11.

  3. #3
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Sorry for giving confusing information but I think I finally fixed the problem of "intermittent" improper power off problem.

    Here is the portion of the original /etc/init.d/knoppix-halt :-

    case "$0" in *halt|*poweroff) poweroff -f ;;
    *) reboot -f ;;
    esac

    Somehow at that stage of the execution, the file system access
    can encounter error, thereby giving 'input/output error'.
    So I replace it with :-

    case "$0" in *halt|*poweroff) echo o > /proc/sysrq-trigger ;;
    *) echo b > /proc/sysrq-trigger ;;
    esac

    After that it seems to be able to consistantly power off the notebook.

  4. #4
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    What remain unanswered is :-

    1. The knoppix-data.img aufs2 with the readonly compressed loop root file system remained
    mounted, as such the file system is not clean when the system halted.

    2. Why is there a file system error at that point in time when the system was trying to run
    '/sbin/poweroff' ? ( I tried to run 'auplink' also failed ).

  5. #5
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by kl522 View Post
    What remain unanswered is :-

    1. The knoppix-data.img aufs2 with the readonly compressed loop root file system remained
    mounted, as such the file system is not clean when the system halted.

    2. Why is there a file system error at that point in time when the system was trying to run
    '/sbin/poweroff' ? ( I tried to run 'auplink' also failed ).
    Did you run a self-test on the disk? Bad burns (common) and bad downloads (less common) can cause weird problems like this. Try one of these (as fits your disk) at boot time:
    Code:
    knoppix testcd
    knoppix testdvd
    Cheers!
    Krishna

  6. #6
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    By the way, this is a hard disk install, ie the ( remastered ) readonly compressed rootfs is sitted on the ntfs
    harddisk.

    I have myself to blame if it is my ( remaster/customization ) fault. But if I remember correctly, since day one of
    using vanilla knoppix 6.2, the knoppix-data.img was never unmounted properly which resulted in the need
    to fsck when booted ( the fsck is coded in minirt.gz).

  7. #7
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by kl522 View Post
    By the way, this is a hard disk install, ie the ( remastered ) readonly compressed rootfs is sitted on the ntfs
    harddisk.

    I have myself to blame if it is my ( remaster/customization ) fault. But if I remember correctly, since day one of
    using vanilla knoppix 6.2, the knoppix-data.img was never unmounted properly which resulted in the need
    to fsck when booted ( the fsck is coded in minirt.gz).
    I don't have a file knoppix-data.img in my setup; knoppix-data.aes is in my KNOPPIX folder (which comes from the "poor mans install" only, I think), an encrypted "persistent store" that is merged with the KNOPPIX file in that folder to become the effective filesystem. The difference is most likely due to hd-install nature of your setup.

    Cheers!
    Krishna

  8. #8
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by krishna.murphy View Post
    I don't have a file knoppix-data.img in my setup; knoppix-data.aes is in my KNOPPIX folder (which comes from the "poor mans install" only, I think), an encrypted "persistent store" that is merged with the KNOPPIX file in that folder to become the effective filesystem. The difference is most likely due to hd-install nature of your setup.

    Cheers!
    Krishna
    I was able to repeat this problem with vanilla knoppix 6.2. I haven't concluded what is the reason yet, but this is how I repeat it, so some of the information given here might be spurious or unimportant :-

    1. Install knoppix onto a flash using knoppix 6.2 Live CD.
    2. The flash is > 1G, knoppix will create it as 2 partitions.
    knoppix-data.img will be stored in the first partition (VFAT),
    directory /mnt-system/KNOPPIX.
    3. I chose the maximum size of the knoppix-data.img, which
    I think it is roughly ~300 M.
    4. Test boot a few times, knoppix-data.img was cleanly unmounted.

    Moving on :-
    5. I re-create the second partition as ntfs, and copy the
    entire KNOPPIX directory (together with knoppix-data.img ),
    and rename the existing KNOPPIX directory to KNOPPIX.bak
    ( All these performed offline )
    6. Then I reboot the system, now /mnt-system is sit on /dev/sda2.
    I check knoppix-data.img to see if it is unmounted cleanly,
    yet it did.

    Moving on :-
    7. I increased the size of knoppix-data.img to much bigger ( 2.5G),
    can copy a huge /home directory ( about 800 M ) to knoppix-data.img
    file system. Again all these performed offline.
    8. Now test boot/reboot, knoppix-data.img is never cleanly unmounted
    after that ( even though I e2fsck on it each time I repeat test ).

    Now I am not sure if a huge knoppix-data.img which is causing the problem,
    or there are something in the /home which causes it to be unable to unmount
    properly.

  9. #9
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    Quote Originally Posted by kl522 View Post
    I was able to repeat this problem with vanilla knoppix 6.2. I haven't concluded what is the reason yet, but this is how I repeat it, so some of the information given here might be spurious or unimportant :-

    1. Install knoppix onto a flash using knoppix 6.2 Live CD.
    How did you do this - using the built-in flash install utility?
    2. The flash is > 1G, knoppix will create it as 2 partitions.
    My flash is 8GB, and the file system seems to be VFAT with but one partition, FWIW.
    knoppix-data.img will be stored in the first partition (VFAT),
    directory /mnt-system/KNOPPIX.
    3. I chose the maximum size of the knoppix-data.img, which
    I think it is roughly ~300 M.
    4. Test boot a few times, knoppix-data.img was cleanly unmounted.
    Great - problem solved.
    Moving on :-
    5. I re-create the second partition as ntfs, and copy the
    entire KNOPPIX directory (together with knoppix-data.img ),
    and rename the existing KNOPPIX directory to KNOPPIX.bak
    ( All these performed offline )
    6. Then I reboot the system, now /mnt-system is sit on /dev/sda2.
    I check knoppix-data.img to see if it is unmounted cleanly,
    yet it did.

    Moving on :-
    7. I increased the size of knoppix-data.img to much bigger ( 2.5G),
    can copy a huge /home directory ( about 800 M ) to knoppix-data.img
    file system. Again all these performed offline.
    8. Now test boot/reboot, knoppix-data.img is never cleanly unmounted
    after that ( even though I e2fsck on it each time I repeat test ).

    Now I am not sure if a huge knoppix-data.img which is causing the problem,
    or there are something in the /home which causes it to be unable to unmount
    properly.
    Maybe it would be worth trying ext2 or ext3 filesystems instead of the always warned-against NTFS.

  10. #10
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by krishna.murphy View Post

    Maybe it would be worth trying ext2 or ext3 filesystems instead of the always warned-against NTFS.
    For the purpose of testing and getting down to the bottom of things, yes I tested using ext2 on partition 2, and yes, now it is unmounted cleanly.

    Testing aside, in my actual setup, because my flash is a slower device compared to hard disk, that's why I chose to 'host' knoppix-data.img on an existing NTFS harddisk/partition ( and I want to retain by original NTFS ). It's a lot faster than doing it on a flash. But this testing also revealed that there is indeed a problem with hosting knoppix-data.img on NTFS.

Page 1 of 3 123 LastLast

Posting Permissions

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


Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R730XD Server 2x E5-2620 V4=16 Cores | H330 | 32GB RAM | 2x trays picture

Dell PowerEdge R730XD Server 2x E5-2620 V4=16 Cores | H330 | 32GB RAM | 2x trays

$594.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w

$359.99



Dell PowerEdge R640  8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU picture

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU

$315.00



Dell PowerEdge R730XD 24B Barebones 2x Heatsinks 2x PSU No CPU/RAM/Raid/Nic picture

Dell PowerEdge R730XD 24B Barebones 2x Heatsinks 2x PSU No CPU/RAM/Raid/Nic

$149.99



DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45 picture

DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45

$939.00



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99