Announcing nFlux Linux; a Fluxbox oriented trinity of distros!
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Today I have uploaded the new and improved nFluxOS arch and slackware
versions.
These two versions fix the persistent usb problems and I hope maybe I also
fixed some of the locales problems too, I hope
they also now come as a .zip file with iso, md5sum, and some info files too
Please read the README, it regards the persistency issues with squashfs 4.0
Slackware version now includes the sawfish desktop module
on the iso! ARCH version already had it
err...what os' do you have hdd installed to your 2 netbooks?
windows or what?
how many computers you got and what they are?
I'm just curious
One homebuilt PC-Box: Gigabyte GA-EP45-UDLR (Intel P45 chipset) mobo with Intel Q9400 CPU(4 cores), graphics-card: MSI N210-MD512H (NVidia G210 chip), 4GB RAM HDD's: 2x250GB 2,5", 1x500GB 3,5". The 2,5"-drives can be internally connected as SATA-drives via dockingstation or as external drives connected via eSATA- or USB 2.0-interface. 3,5" drive is externally connected over eSATA- or USB 2.0-interface.
I own one Samsung NC10.
Installed OS'there: Windows XP, Antix 8.5, Ubuntu Studio Lucid with Abogani's realtime-kernel, FluxFlux-SL 2009.
Please boot the live-stick into the console mode- but without persistent store. Then login and start the desktop. Please report whether it freezes with you or not.
It shows (difference shown between arrows) the expected cleanup of the corrupted EXT3-journal because of the missing sync of the persistent store on /dev/sdb2 before the hard reset.
my bad; I'm gonna suspend the ARCH iso's till I get it fixed...
Ritchie may have found the solution via Slax's "cleanup" script
found in /root/linux-live-6.3.0_x86/initrd/
Update
doing as below it seems to work for mine on usb
EDIT: Grab /bin/ash from the slackware nfluxos .!!
Transfer slackware /bin/ash to nFluxOS_archj4/rootcopy/bin
and put the rc.shutdown from below in nFluxOS_archj4/rootcopy/etc
edited out- dont change /bin/ash to /bin/bash in /mnt/live/cleanup
do as above
here is the modified /etc/rc.shutdown with cleanup script run highlighted
Code:
#!/bin/bash
#
# /etc/rc.shutdown
#
. /etc/rc.conf
. /etc/rc.d/functions
run_hook shutdown_start
# avoid staircase effect
/bin/stty onlcr
echo " "
printhl "Initiating Shutdown..."
echo " "
# avoid NIS hanging syslog-ng on shutdown by unsetting the domainname
if [ -x /bin/domainname ]; then
/bin/domainname ""
fi
if [ -x /etc/rc.local.shutdown ]; then
/etc/rc.local.shutdown
fi
# Find daemons NOT in the DAEMONS array. Shut these down first
if [ -d /var/run/daemons ]; then
for daemon in $(/bin/ls -1t /var/run/daemons); do
if ! in_array $daemon ${DAEMONS[@]}; then
stop_daemon $daemon
fi
done
fi
# Shutdown daemons in reverse order
let i=${#DAEMONS[@]}-1
while [ $i -ge 0 ]; do
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then
ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}
fi
let i=i-1
done
# Terminate all processes
stat_busy "Sending SIGTERM To Processes"
run_hook shutdown_prekillall
/sbin/killall5 -15 &> /dev/null
/bin/sleep 5
stat_done
stat_busy "Sending SIGKILL To Processes"
/sbin/killall5 -9 &> /dev/null
/bin/sleep 1
stat_done
run_hook shutdown_postkillall
stat_busy "Saving Random Seed"
RANDOM_SEED=/var/lib/misc/random-seed
[ -d $(dirname $RANDOM_SEED) ] || mkdir -p $(dirname $RANDOM_SEED)
: > $RANDOM_SEED
/bin/chmod 0600 $RANDOM_SEED
POOL_FILE=/proc/sys/kernel/random/poolsize
if [ -r $POOL_FILE ]; then
POOL_SIZE=$(/bin/cat $POOL_FILE)
else
POOL_SIZE=512
fi
/bin/dd if=/dev/urandom of=$RANDOM_SEED count=1 bs=$POOL_SIZE &> /dev/null
stat_done
stat_busy "Saving System Clock"
if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ]; then
/bin/rm -f /etc/localtime
/bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
fi
HWCLOCK_PARAMS="--systohc"
if [ "$HARDWARECLOCK" = "UTC" ]; then
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
elif [ "$HARDWARECLOCK" = "localtime" ]; then
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
else
HWCLOCK_PARAMS=""
fi
if [ -n "$HWCLOCK_PARAMS" ]; then
/sbin/hwclock $HWCLOCK_PARAMS
fi
stat_done
# removing psmouse module to fix some reboot issues on newer laptops
/sbin/modprobe -r psmouse >/dev/null 2>&1
# Write to wtmp file before unmounting
/sbin/halt -w
stat_busy "Deactivating Swap"
/sbin/swapoff -a
stat_done
# Run any local shutdown scripts:
if [ /mnt/live/cleanup ]; then
cd /mnt/live
exec ./cleanup <dev/console >dev/console 2>&1
fi
stat_busy "Unmounting Filesystems"
/bin/umount -a -r -t noramfs,notmpfs,nosysfs,noproc,nodevtmpfs -O no_netdev
stat_done
# Kill non-root encrypted partition mappings
if [ -f /etc/crypttab -a -n "$(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$)" ]; then
stat_busy "Deactivating encrypted volumes:"
# Arch cryptsetup packages traditionally contained the binaries
# /usr/sbin/cryptsetup
# /sbin/cryptsetup.static
# By default, initscripts used the /sbin/cryptsetup.static.
# Newer packages will only have /sbin/cryptsetup and no static binary
# This ensures maximal compatibility with the old and new layout
if [ -x /sbin/cryptsetup ]; then
CS=/sbin/cryptsetup
elif [ -x /usr/sbin/cryptsetup ]; then
CS=/usr/sbin/cryptsetup
else
CS=/sbin/cryptsetup.static
fi
do_uncrypt() {
if [ $# -ge 3 ]; then
if [ -b /dev/mapper/$1 ] ;then
stat_append "${1}.."
$CS remove $1 >/dev/null 2>&1
if [ $? -ne 0 ]; then
stat_append "failed "
else
stat_append "ok "
fi
fi
fi
}
while read line; do
eval do_uncrypt "$line"
done /dev/null 2>&1
stat_done
fi
fi
stat_busy "Remounting Root Filesystem Read-only"
/bin/mount -n -o remount,ro /
stat_done
run_hook shutdown_poweroff
# Power off or reboot
if [ "$RUNLEVEL" = "0" ]; then
printsep
printhl "${C_H2}POWER OFF"
/sbin/poweroff -d -f -h -i
else
printsep
printhl "${C_H2}REBOOTING"
# if kexec is installed and a kernel is loaded, use it
[ -x /sbin/kexec ] && /sbin/kexec -e > /dev/null 2>&1
/sbin/reboot -d -f -i
fi
# End of file
# vim: set ts=2 sw=2 noet:
so put that in /rootcopy/etc/rc.shutdown and tell me if it works
it worked for the x86_64 arch one I made and I'm gonna test the j4 arch x86 too
So, I compared two subsequent dmesg.log-files.
The first one was from a clean reboot. The second from the necessary hard reset after a desktop-freeze.
The only difference of both files is this:
Code:
...
->
EXT3-fs (sdb2): recovery required on readonly filesystem
EXT3-fs (sdb2): write access will be enabled during recovery
kjournald starting. Commit interval 5 seconds
EXT3-fs (sdb2): orphan cleanup on readonly fs
ext3_orphan_cleanup: deleting unreferenced inode 79967
...
EXT3-fs (sdb2): 13 orphan inodes deleted
EXT3-fs (sdb2): recovery complete
<-
...
It shows (difference shown between arrows) the expected cleanup of the corrupted EXT3-journal because of the missing sync of the persistent store on /dev/sdb2 before the hard reset.
Quote:
Originally Posted by linus72
Thats not good!
my bad; I'm gonna suspend the ARCH iso's till I get it fixed...
Ritchie may have found the solution via Slax's "cleanup" script
... solution of what?
Quote:
Originally Posted by linus72
...
- dont change /bin/ash to /bin/bash in /mnt/live/cleanup
do as above
here is the modified /etc/rc.shutdown with cleanup script run highlighted
Code:
#!/bin/bash
#
# /etc/rc.shutdown
#
. /etc/rc.conf
...
# End of file
# vim: set ts=2 sw=2 noet:
so put that in /rootcopy/etc/rc.shutdown and tell me if it works
it worked for the x86_64 arch one I made and I'm gonna test the j4 arch x86 too
@linus72
Do we converse on the same matter?
I didn't see any error in dmesg.log after rebooting from a normal - non-frozen - system state.
The orphaned inodes shown above were only a result of the forced hardreset after a system-freezing and I did expect them!
I can't see a causal connection of rc.shutdown and the system-freezing after starting X.
So I expected what I got:
1) clean dmesg.logs with and without rc.shutdown and /bin/ash in rootcopy when shutting down normally
2) freezing when starting X with and without rc.shutdown!
hey lq_asking
I did misinterpret your post a bit
but its cause I was tryin to figure out why the ARCH one is not umountinng the device
it's booting from(usb)
the ARCH version seems screwy and I dont know if it's harmful to my/your hard drive or usb's
as its not cleanly unmounting at reboot/shutdown
thats why the cleanup script is maybe needed
I spent all day yesterday trying to debug and integrate the cleanup script into
arch's rc.shutdown with no success.
As for the freezing I really am at a loss on that too
as I cannot reproduce it
It could be something to do with how xorg is interpreting the German stuff or
a number of things probably...
and you said it also freezes in Vesa mode too?
and its doing it on 2 different computers too right?
that means it's something to do with ARCH; as you also said the Slackware one wasn't freezing?
Did you compare the xorg.conf's between the ARCH and slack versions after doing xconf?
did you try using a working xorg.conf from another distro that doesn't freeze?
So, also when using the rc.shutdown, etc as above on my computers it wont shutdown
just reboots...?!
I'm at a loss as how to fix the ARCH one...it's got issues.
weird also how the squashfs 3.4 version of the ARCH one didn't have any of these problems!
OK
I think I found issue with new iso's was new udev, etc
so I reinstalled the older 3.4 squashfs arch version
added the new kernel,etc
and held back udev, udev-compat and udisks and cut a liveusb
and no issues at shutdown, mounts, etc
now, if this one still freezes, then I will downgrade Xorg to the one
the 3.4 version has
cool?
you said the older squashfs 3.4 version was working as far as German stuff right?
Aha!
ARCH has changed their initscripts and I think I can now fix the ARCH versions
as I upgraded to "testing" and it installed
"initscripts-2010.07-1-i686.pkg.tar.xz"
which has fixed the problem with the rootfs thing
"mount before
Code:
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=380932k,nr_inodes=95233,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw)
now, issuing "mount" I get
Code:
[root@nflux SQ40]# mount
/dev/root on / type ext3 (rw,relatime,errors=continue,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=479236k,nr_inodes=119809,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,nosuid,nodev)
So, I'm gonna upgrade the ARCH version to "testing", as nFluxOS is all about the testing versions, etc
it also has
Alien Bob's Multilib packages
32bit firefox
32bit flashplugin
sbopkg
Makes a nice rescue cd/usb with eye-candy to boot
Installable to hard drive and is remasterable into whatever you want as the modified Linux-live-6.3.0x86_64 is in the /root folder
this also features some of the minor things I am going to be doing in the next i686 version
including the USB persistent wizard and other small things.
It was built on my old HP a810n amd athlon64 3300+
Only account is root
username: root
password: toor
also no GDM or Slim, just "startx"
use "xconf" as root to autoconfigure X
it runs xconf by default in all boot options except vesa and debug mode
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.