Re: Swap partition isn't activated
I cannot see anything on the live.log about swap (well , there is at the
beginning something about swapon but it doesn't seem to look for swaps
partitions:
user@debian:/var/log$ cat live.log
+ tailpid=180
+ . /scripts/live-functions
+ . /scripts/functions
+ . /live.vars
+ Arguments
+ PRESEEDS=
+ LOCATIONS=
+ tail -f live.log
+ cat /proc/cmdline
+ SWAPON=Yes
+ export SWAPON
+ NETBOOT=nfs
+ export NETBOOT
+ [ -z nfs ]
+ [ -z ]
+ MODULE=filesystem
+ export MODULE
+ [ -z ]
+ UNIONTYPE=aufs
+ export UNIONTYPE
+ maybe_break live-premount
+ [ = live-premount ]
+ log_begin_msg Running /scripts/live-premount
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Running /scripts/live-premount ...
+ [ n = y ]
+ printf Begin: Running /scripts/live-premount ...
Begin: Running /scripts/live-premount ... +
run_scripts /scripts/live-premount
+ initdir=/scripts/live-premount
+ [ ! -d /scripts/live-premount ]
+ [ -f /scripts/live-premount/ORDER ]
+ . /scripts/live-premount/ORDER
+ /scripts/live-premount/select_eth_device
Waiting for ethernet card(s) up... If this fails, maybe the
ethernet card is not supported by the kernel 2.6.32-5-686?
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-premount/readonly
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-premount/modules
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ ! -z nfs ]
+ do_netmount
+ do_netsetup
+ modprobe -q af_packet
+ udevadm trigger
+ udevadm settle
+ [ -z nfs ]
+ tee /netboot.config
+ ipconfig eth0
IP-Config: eth0 hardware address 00:60:ef:09:b0:dd mtu 1500 DHCP
RARP
IP-Config: eth0 complete (from 10.0.1.50):
address: 10.0.1.59 broadcast: 10.0.1.255 netmask:
255.255.255.0
gateway: 10.0.1.1 dns0 : 10.0.1.50 dns1 :
0.0.0.0
host :
t1
domain :
quantion.smartion.com
rootserver: 10.0.1.50 rootpath:
filename : /smartion/netboot/pxelinux.0
+ OLDHOSTNAME=host
+ . /tmp/net-eth0.conf
+ DEVICE=eth0
+ IPV4ADDR=10.0.1.59
+ IPV4BROADCAST=10.0.1.255
+ IPV4NETMASK=255.255.255.0
+ IPV4GATEWAY=10.0.1.1
+ IPV4DNS0=10.0.1.50
+ IPV4DNS1=0.0.0.0
+ HOSTNAME=t1
+ DNSDOMAIN=quantion.smartion.com
+ NISDOMAIN=
+ ROOTSERVER=10.0.1.50
+ ROOTPATH=
+ filename=/smartion/netboot/pxelinux.0
+ [ -z t1 ]
+ export HOSTNAME
+ [ -n eth0 ]
+ cat /sys/class/net/eth0/address
+ HWADDR=00:60:ef:09:b0:dd
+ [ ! -e /etc/resolv.conf ]
+ echo Creating /etc/resolv.conf
Creating /etc/resolv.conf
+ [ -n quantion.smartion.com ]
+ echo domain quantion.smartion.com
+ echo search quantion.smartion.com
+ echo nameserver 10.0.1.50
+ echo nameserver 0.0.0.0
+ echo nameserver 0.0.0.0
+ ls /sys/class/net/eth0
+ [ 10.0.1.50:/smartion/releases/T1 = auto ]
+ rc=1
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ [ /smartion/releases/T1 = 10.0.1.50:/smartion/releases/T1 ]
+ log_begin_msg Trying netboot from
10.0.1.50:/smartion/releases/T1
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Trying netboot from
10.0.1.50:/smartion/releases/T1 ...
+ [ n = y ]
+ printf Begin: Trying netboot from
10.0.1.50:/smartion/releases/T1 ...
Begin: Trying netboot from 10.0.1.50:/smartion/releases/T1 ... +
[ nfs != nfs ]
+ do_nfsmount
+ rc=1
+ modprobe -q nfs
+ [ -z ]
+ NFSOPTS=
+ log_begin_msg Trying nfsmount -o nolock -o ro
10.0.1.50:/smartion/releases/T1 /live/image
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Trying nfsmount -o nolock -o ro
10.0.1.50:/smartion/releases/T1 /live/image ...
+ [ n = y ]
+ printf Begin: Trying nfsmount -o nolock -o ro
10.0.1.50:/smartion/releases/T1 /live/image ...
Begin: Trying nfsmount -o nolock -o ro
10.0.1.50:/smartion/releases/T1 /live/image ... + i=0
+ [ 0 -lt 60 ]
+ nfsmount -o nolock -o ro
10.0.1.50:/smartion/releases/T1 /live/image
+ rc=0
+ break
+ return 0
+ NETBOOT=nfs
+ export NETBOOT
+ rc=0
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ return 0
+ livefs_root=/live/image
+ [ -z /live/image ]
+ [ ]
+ [ ]
+ [ ]
+ [ ]
+ [ -n ]
+ [ -n ]
+ [ -n ]
+ get_mac
+ mac=
+ cat /sys/class/net/eth0/iflink
+ status=2
+ [ 2 -eq 2 ]
+ cat /sys/class/net/eth0/address
+ mac=00:60:ef:09:b0:dd
+ tr [a-z] [A-Z]
+ sed s/:/-/g
+ echo 00:60:ef:09:b0:dd
+ mac=00-60-EF-09-B0-DD
+ cat /sys/class/net/lo/iflink
+ status=1
+ [ 1 -eq 2 ]
+ echo 00-60-EF-09-B0-DD
+ mac=00-60-EF-09-B0-DD
+ sed s/-//g
+ echo 00-60-EF-09-B0-DD
+ mac=0060EF09B0DD
+ mount_images_in_directory /live/image /root 0060EF09B0DD
+ directory=/live/image
+ rootmnt=/root
+ mac=0060EF09B0DD
+ match_files_in_dir /live/image/live/*.squashfs
+ local pattern=/live/image/live/*.squashfs
+ echo /live/image/live/filesystem.squashfs
+ [ /live/image/live/filesystem.squashfs !
= /live/image/live/*.squashfs ]
+ return 0
+ [ -n 0060EF09B0DD ]
+ adddirectory=/live/image/live/0060EF09B0DD
+
setup_unionfs /live/image/live /root /live/image/live/0060EF09B0DD
+ image_directory=/live/image/live
+ rootmnt=/root
+ addimage_directory=/live/image/live/0060EF09B0DD
+ modprobe -q -b aufs
+ grep -q ^aufs$
+ cut -f2 /proc/filesystems
+ [ aufs = unionfs-fuse ]
+ croot=/
+ rofsstring=
+ rofslist=
+ [ aufs = aufs ]
+ roopt=rr
+ noxino_opt=noxino,
+ [ -z ]
+ [ -e /live/image/live/filesystem.filesystem.module ]
+ [ -e /live/image/live/filesystem.module ]
+ [ -e /live/image/live/filesystem.squashfs ]
+ image_string= /live/image/live/filesystem.squashfs
+ [ -e /live/image/live/*.ext2 ]
+ [ -e /live/image/live/*.ext3 ]
+ [ -e /live/image/live/*.ext4 ]
+ [ -e /live/image/live/*.xfs ]
+ [ -e /live/image/live/*.jffs2 ]
+ [ -e /live/image/live/*.dir ]
+ [ -n /live/image/live/0060EF09B0DD ]
+ [ -d /live/image/live/0060EF09B0DD ]
+ sort
+ sed -e s/ /\n/g
+ echo /live/image/live/filesystem.squashfs
+ image_string=/live/image/live/filesystem.squashfs
+ [ -n ]
+ mkdir -p /
+ basename /live/image/live/filesystem.squashfs
+ imagename=filesystem.squashfs
+ export image devname
+ maybe_break live-realpremount
+ [ = live-realpremount ]
+ log_begin_msg Running /scripts/live-realpremount
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Running /scripts/live-realpremount ...
+ [ n = y ]
+ printf Begin: Running /scripts/live-realpremount ...
Begin: Running /scripts/live-realpremount ... +
run_scripts /scripts/live-realpremount
+ initdir=/scripts/live-realpremount
+ [ ! -d /scripts/live-realpremount ]
+ return
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ -d /live/image/live/filesystem.squashfs ]
+ [ -f /live/image/live/filesystem.squashfs ]
+ grep -q -- -r\b
+ losetup --help
+ get_backing_device /live/image/live/filesystem.squashfs
+ setup_loop /live/image/live/filesystem.squashfs
loop /sys/block/loop* 0
+ local fspath=/live/image/live/filesystem.squashfs
+ local module=loop
+ local pattern=/sys/block/loop*
+ local offset=0
+ local encryption=
+ local readonly=
+ modprobe -q -b loop
+ udevadm settle
+ cat /sys/block/loop0/size
+ [ 0 -eq 0 ]
+ sys2dev /sys/block/loop0
+ sysdev=/block/loop0
+ /sbin/udevadm info -q name -p /block/loop0
+ echo /dev/loop0
+ dev=/dev/loop0
+ options=
+ [ -n ]
+ [ 0 -lt 0 ]
+ [ -z ]
+ losetup /dev/loop0 /live/image/live/filesystem.squashfs
+ echo /dev/loop0
+ return 0
+ echo /dev/loop0
+ backdev=/dev/loop0
+ get_fstype /dev/loop0
+ local FS FSTYPE FSSIZE RET
+ FS=/dev/loop0
+ fstype /dev/loop0
+ eval FSTYPE=squashfs FSSIZE=122780741631
+ FSTYPE=squashfs FSSIZE=122780741631
+ [ squashfs = unknown ]
+ [ squashfs = unknown ]
+ RET=0
+ [ -z squashfs ]
+ echo squashfs
+ return 0
+ fstype=squashfs
+ [ squashfs = unknown ]
+ [ -z squashfs ]
+ [ aufs != unionmount ]
+ mpoint=//filesystem.squashfs
+ rofsstring=//filesystem.squashfs=rr:
+ rofslist=//filesystem.squashfs
+ mkdir -p //filesystem.squashfs
+ log_begin_msg Mounting "/live/image/live/filesystem.squashfs"
on "//filesystem.squashfs" via "/dev/loop0"
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Mounting
"/live/image/live/filesystem.squashfs" on
"//filesystem.squashfs" via "/dev/loop0" ...
+ [ n = y ]
+ printf Begin: Mounting "/live/image/live/filesystem.squashfs"
on "//filesystem.squashfs" via "/dev/loop0" ...
Begin: Mounting "/live/image/live/filesystem.squashfs" on
"//filesystem.squashfs" via "/dev/loop0" ... + mount -t squashfs
-o ro,noatime /dev/loop0 //filesystem.squashfs
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ rofsstring=//filesystem.squashfs=rr
+ mkdir -p /cow
+ [ -n ]
+ [ -n ]
+ cowdevice=tmpfs
+ cow_fstype=tmpfs
+ cow_mountopt=rw,noatime,mode=755
+ [ aufs != unionmount ]
+ [ tmpfs = nfs ]
+ mount -t tmpfs -o rw,noatime,mode=755 tmpfs /cow
+ wc -w
+ echo //filesystem.squashfs
+ rofscount=1
+ [ -n ]
+ mount -t aufs -o
noatime,noxino,dirs=/cow=rw://filesystem.squashfs=rr aufs /root
+ chmod 0755 /root
+ touch /etc/fstab
+ mkdir -p /root/live
+ mount -t tmpfs tmpfs /root/live
+ [ -n ]
+ [ -n ]
+ mkdir -p /root/live/cow
+ mount -o move /cow /root/live/cow
+ [ -n ]
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ aufs = unionfs-fuse ]
+ [ ! -d /root/live/image ]
+ mkdir -p /root/live/image
+ mount --move /live/image /root/live/image
+
ls /root/bin /root/boot /root/dev /root/etc /root/home /root/initrd.img /root/initrd.img.old /root/lib /root/live /root/media /root/mnt /root/opt /root/proc /root/root /root/sbin /root/selinux /root/srv /root/sys /root/tmp /root/usr /root/var /root/vmlinuz /root/vmlinuz.old
+ [ -f snapshot.conf ]
+ maybe_break live-bottom
+ [ = live-bottom ]
+ log_begin_msg Running /scripts/live-bottom\n
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Running /scripts/live-bottom\n ...
+ [ n = y ]
+ printf Begin: Running /scripts/live-bottom\n ...
Begin: Running /scripts/live-bottom
... + run_scripts /scripts/live-bottom
+ initdir=/scripts/live-bottom
+ [ ! -d /scripts/live-bottom ]
+ [ -f /scripts/live-bottom/ORDER ]
+ . /scripts/live-bottom/ORDER
+ /scripts/live-bottom/08persistence_excludes
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-bottom/12fstab
Begin: Configuring fstab ... done.
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-bottom/23networking
Begin: Preconfiguring networking ... done.
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-bottom/24preseed
Begin: Loading preseed file ... done.
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ /scripts/live-bottom/30accessibility
No default user for accessibility options.
+ [ -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE=eth0
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ [ = unionfs-fuse ]
+ exec
+ exec
My grub file contains:
default smartion686
label smartion686
kernel debian-live/T1/vmlinuz-2.6.32-5-686
append initrd=debian-live/T1/initrd.img-2.6.32-5-686 boot=live \
debug=1 config locales=es_ES.UTF-8 keyboard-layouts=es swapon \
netboot=nfs nfsroot=10.0.1.50:/smartion/releases/T1 panic=180
The image was done with the following auto script:
calarcon@deoxys:~/build/smartion_debian_live$ cat auto/config
#!/bin/sh
lb config noauto \
--architecture i386 \
-b net \
-p smartion-standard-x11 \
--bootappend-live "locales=es_ES.UTF-8 keyboard-layouts=es swapon" \
--archive-areas "main contrib" --volatile false \
"${@}"
and smartion-standard-x11 is a customized copy of standard-x11 with some
specific packages
Any idea of what can be wrong?.
I have the feeling that problem may be that the swap partition is on a
USB drive. Manually, I can activate swap on this partition:
user@debian:/var/log$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="F239-6257" TYPE="vfat"
/dev/sda5: UUID="8ba59f84-a760-4217-8829-28ec95723925"
SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: UUID="e7e1a81f-0f5a-4178-a8fd-c7c746bad864"
TYPE="swap"
user@debian:/var/log$ sudo swapon -U
e7e1a81f-0f5a-4178-a8fd-c7c746bad864
user@debian:/var/log$ free
total used free shared buffers
cached
Mem: 482124 440260 41864 0 16160
269384
-/+ buffers/cache: 154716 327408
Swap: 975864 0 975864
but I am afraid that live-boot cannot activate it on boot time because
it is on a USB disk and maybe sd_mod is not activated at the time the
machines swap is tried to be activated.
This is running on kiosk computers which load OS from net but they have
very low memory and as we are running out of memory and installing new
memory is quite hard, we have to almost dismount the whole kiosk to
reach the memory slot while installing a hard disk is quite easy.
If swap works on boot we will install proper hard disk connected to its
sata bus directly which is quite easier to install, but we need to know
it works before installing 500 disks. An then if everything goes
properly maybe decide to go for persistence to increase performance.
El dom, 09-01-2011 a las 16:28 +0100, Daniel Baumann escribió:
> On 01/05/2011 04:29 PM, Carlos Alarcon wrote:
> > Sorry for mi ignorance, but ...
> > where I have to set the option swapon?
> > * On kernel parameters? (tried this one and not doing anything)
>
> did you try with debug? what does live.log say?
>
> > And how I tell the machine which partition mount as swap?
>
> you can't. if live-boot is told to use a swap partition, it just
> activates all swap partitions found.
>
> in 3.x, i'll intend to do swap={on,off,$device1:$device2...} but where'
> not yet there.
>
> --
> Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
> Email: daniel.baumann@progress-technologies.net
> Internet: http://people.progress-technologies.net/~daniel.baumann/
>
>
--
Carlos Alarcón.
Tel: 916249029 ext: 2002
Reply to: