Development > Remastering

Sparky Backup Sys - login

(1/3) > >>

grandadruss:
Have created iso using SBS, worked flawlessly, now have two bootable iso's, one from cli sparkybackup -dist and one from the gui, choose backup option. Both boot from usb stick, no problem.
So far, excellent.
But, I can't get past the login screen. live live is rejected, so is my username and password and every other combination I can think of.
I have installed Custom Iso Builder and unpacked both iso's but cannot chroot into either. Terminator says "unable to find shell". /bin/bash is there in both.
The system I am working on is one I built up by installing Sparky CLI and then adding stuff so it is very likely my difficulties are caused by me not having installed something SBS and CIB expect to be there.

Sparkybackup.log below. Also terminal output while gui was running.


--- Code: ---Mount information
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=236687,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=385440k,mode=755)
/dev/sdc3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/111 type tmpfs (rw,nosuid,nodev,relatime,size=192720k,mode=700,uid=111,gid=120)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=192720k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdc4 on /media/russell/ExtraD type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdc2 on /media/russell/Tosh2 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdc1 on /media/russell/ToshOne type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdb1 on /media/russell/Porteus64 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda1 on /media/russell/MintDX64 type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /media/russell/Manjaro type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /media/russell/Sparky type ext4 (rw,relatime,data=ordered)
/dev/sda4 on /media/russell/Ddrive type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
------------------------------------------------------
df information
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdc3        15G  3.8G  9.9G  28% /
udev             10M     0   10M   0% /dev
tmpfs           377M  5.7M  371M   2% /run
tmpfs           942M     0  942M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           942M     0  942M   0% /sys/fs/cgroup
tmpfs           189M  4.0K  189M   1% /run/user/111
tmpfs           189M  4.0K  189M   1% /run/user/1000
/dev/sdc4       251G   13G  225G   6% /media/russell/ExtraD
/dev/sdc2        15G  5.7G  7.9G  42% /media/russell/Tosh2
/dev/sdc1        15G  2.6G   11G  20% /media/russell/ToshOne
/dev/sdb1       1.9G  389M  1.4G  22% /media/russell/Porteus64
/dev/sda1        29G   18G  9.8G  64% /media/russell/MintDX64
/dev/sda2        14G  5.9G  7.7G  44% /media/russell/Manjaro
/dev/sda3        14G  6.7G  6.3G  52% /media/russell/Sparky
/dev/sda4        93G   65G   28G  71% /media/russell/Ddrive
------------------------------------------------------
/etc/remastersys.conf info
###SparkyBackup-System Global Configuration File###


# This is the temporary working directory and won't be included on the cd/dvd
WORKDIR="/home/sparkybackup-sys"


# Here you can add any other files or directories to be excluded from the live filesystem
# Separate each entry with a space
EXCLUDES=" "


# Here you can change the livecd/dvd username
LIVEUSER="live"


# Here you can change the name of the livecd/dvd label
LIVECDLABEL="SparkyLinux"


# Here you can change the name of the ISO file that is created
CUSTOMFILE="sparkylinux-3.6-arch-desktop"

# Do not change the CUSTOMISO option - change CUSTOMFILE instead of that
CUSTOMISO="$CUSTOMFILE.iso"


# Here you can change the 'volid' option of the ISO file
VOLID64BIT="SparkyISOHybrid64bit"
VOLID32BIT="SparkyISOHybrid32bit"


# Boot method for the live - ISOLINUX only
# If UFEI machnes - the grub-efi files are already provided for the live system
ISOBOOT="ISOLINUX"


# Options for mksquashfs
# Default is -no-recovery -always-use-fragments -b 1M
SQUASHFSOPTS="-no-recovery -comp xz -always-use-fragments -b 1M"


------------------------------------------------------
/etc/live/config.conf info
export LIVE_USERNAME="live"
export LIVE_USER_FULLNAME="Live session user"
export LIVE_HOSTNAME="live"
export LIVE_NOCONFIGS="xinit"
------------------------------------------------------
/etc/passwd info
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
Debian-exim:x:101:104::/var/spool/exim4:/bin/false
statd:x:102:65534::/var/lib/nfs:/bin/false
avahi-autoipd:x:103:107:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
messagebus:x:104:108::/var/run/dbus:/bin/false
systemd-timesync:x:105:112:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:106:113:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:107:114:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:108:115:systemd Bus Proxy,,,:/run/systemd:/bin/false
uuidd:x:100:101::/run/uuidd:/bin/false
saned:x:109:118::/var/lib/saned:/bin/false
colord:x:110:119:colord colour management daemon,,,:/var/lib/colord:/bin/false
lightdm:x:111:120:Light Display Manager:/var/lib/lightdm:/bin/false
vnstat:x:112:121::/var/lib/vnstat:/bin/false
dnsmasq:x:113:65534:dnsmasq,,,:/var/lib/misc:/bin/false
usbmux:x:114:46:usbmux daemon,,,:/var/lib/usbmux:/bin/false
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
------------------------------------------------------
/etc/group info
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:
audio:x:29:
dip:x:30:
www-data:x:33:
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:
sasl:x:45:
plugdev:x:46:
staff:x:50:
games:x:60:
users:x:100:
crontab:x:102:
netdev:x:103:
Debian-exim:x:104:
mlocate:x:105:
ssh:x:106:
avahi-autoipd:x:107:
messagebus:x:108:
bluetooth:x:109:
systemd-journal:x:110:
utempter:x:111:
systemd-timesync:x:112:
systemd-network:x:113:
systemd-resolve:x:114:
systemd-bus-proxy:x:115:
input:x:116:
uuidd:x:101:
scanner:x:117:saned
saned:x:118:
colord:x:119:
lightdm:x:120:
vnstat:x:121:
nogroup:x:65534:
------------------------------------------------------
/etc/skel info
/etc/skel/
/etc/skel/.config
/etc/skel/.config/Trolltech.conf
/etc/skel/.config/pcmanfm
/etc/skel/.config/pcmanfm/default
/etc/skel/.config/pcmanfm/default/pcmanfm.conf
/etc/skel/.config/gtk-2.0
/etc/skel/.config/gtk-2.0/gtkfilechooser.ini
/etc/skel/.dmrc
/etc/skel/.bash_logout
/etc/skel/.bashrc
/etc/skel/.profile
------------------------------------------------------
/etc/X11/default-display-manager info
/usr/sbin/lightdm
------------------------------------------------------
SparkyBackup Version info
SPARKYBACKUPVERSION="20150204"
 
-----------------------------------------------------
Command-line options = dist
------------------------------------------------------
Creating sparkylinux-3.6-arch-desktop.iso in /home/sparkybackup-sys/sparkybackup-sys using /usr/bin/xorriso
Creating sparkylinux-3.6-arch-desktop.iso.md5 in /home/sparkybackup-sys/sparkybackup-sys
925M /home/sparkybackup-sys/sparkybackup-sys/sparkylinux-3.6-arch-desktop.iso

--- End code ---


--- Code: ---root@russ-laptop:/home/russell# sparkybackup-gui
Cleaning up /etc/skel of the files we will copy over
Copying config files to /etc/skel
rsync: link_stat "/home/russell/.xscreensaver" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
sed: can't read /etc/skel/.xscreensaver: No such file or directory
rsync: link_stat "/home/russell/.gnome2" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.icewm*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.jwmrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fvwm*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.afterstep*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/mate" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.gtkrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.qt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: change_dir "/home/russell//.kde" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: change_dir "/home/russell//.kde" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.pekwm" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.razor" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.wbar*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/autostart" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxpanel" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxsession" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/menus" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/nitrogen" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/openbox" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/qastools" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/razor" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/tint2" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/volumeicon" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/xfce4" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/gtk-3.0" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.e" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.elementary" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fluxbox" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.fonts.conf*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.gtkrc-2.0*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.xinitrc*" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/lxqt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/pcmanfm-qt" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.cinnamon" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.su-to-rootrc" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rsync: link_stat "/home/russell/.config/gnome-control-center" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]
rm: cannot remove ‘/etc/skel/.gnome2/keyrings/*’: No such file or directory
grep: /etc/skel: Is a directory
/usr/bin/sparkybackup-gui: line 134:  2350 Killed                  $DIALOG $TITLE"$TITLETEXT" --no-buttons --progress --pulsate $TEXT"Copying your $SKELUSER user settings now. \nPlease wait."
ls: cannot access /home/sparkybackup-sys/sparkybackup-sys/ISOTMP/live/filesystem.squashfs: No such file or directory
/usr/bin/sparkybackup-gui: line 209: [: : integer expression expected
root@russ-laptop:/home/russell#

--- End code ---

grandadruss:
Getting closer, I think. Spotted tip to run apt-get clean, getting much smaller iso's now.  :)
From root terminal

--- Code: ---sparkybackup backup myname.iso
--- End code ---
works perfectly, apart from one little problem. home is re-named home_1, first line of sparkybackup.log below

--- Code: ---Source directory entry home already used! - trying home_1
--- End code ---

Custom-Iso-Builder unpacks iso for me but is still 'unable to find a shell'. I have deleted empty home directory and renamed home_1 to home using mc manually. Working on manual re-build of iso.

Also I find sparkybackup-gui will only build a distribution iso, into which I cannot log, as in previous post. I have checked that I haven't clicked the wrong option, backup is the only option to build iso. Couple of lines from log below


--- Code: ---SPARKYBACKUPVERSION="20150223"
Command-line options = dist
/etc/live/config.conf info
export LIVE_USERNAME="live"
export LIVE_USER_FULLNAME="Live session user"
export LIVE_HOSTNAME="live"
export LIVE_NOCONFIGS="xinit"

--- End code ---

Still trying, still having fun, still learning!  :)

pavroo:

--- Quote ---Custom-Iso-Builder unpacks iso for me but is still 'unable to find a shell'
--- End quote ---
Change the default x-terminal-emulator from terminator to any:

--- Code: ---su
update-alternatives --config x-terminal-emulator
--- End code ---


--- Quote ---But, I can't get past the login screen
--- End quote ---
There is an issue with the live-installer you probably used to install sparky on your hard drive before.
If the old installer doesn't make the problem, the new one does.
It does not configure lightdm.conf file properly.
Edit as root the file:

--- Code: ---/etc/lightdm/lightdm.conf
--- End code ---
and change the line from:

--- Code: ---#autologin=live
--- End code ---
or whatever there is, to:

--- Code: ---#autologin=
--- End code ---
The place after "=" has to be empty.

One more thing - I never used "backup" option so I am not sure how does it work (or does this still work).
I use and update only 'dist' option so should be ok for you too.
Making an iso image next time, clean up before:

--- Code: ---sudo sparkybackup clean
--- End code ---

or via the gui window.

grandadruss:
Success  :) :)  Thankyou!

Changed default x-terminal-emulator to lxterminal. Fixed 'unable to find shell'
Edited lightdm.conf.
Custom-Iso-Builder re-built my edited backup iso, I made a bootable usb stick, booted straight into Sparky-i3, installed to my hard-drive, re-booted into new Sparky-i3 on hard-drive.
Very happy man now!  :)

Only had to cheat a little bit. Might only be because I am using i3-wm but Custom-Iso-Builder kept forking and getting ahead of itself. ie it opened a terminal to run mksquashfs and while that was running the gui went on to 'can't find squashfs - exiting now'. I just commented out what had been done in the script and re-ran C-I-B. Also removed -u switch from isohybrid.
Sparkylinux-installer did not like that I was 'me' instead of 'live', so I just commented out that check from the script then it ran fine.
Posting this grateful report of success from my new install. Yay!  :)

Will try to make dist iso next.
Thanks again, could not do these things without your scripts.

pavroo:
That's great!

I never tried i3 before.
If you post list of files/directories where the i3 stores its config (in home dir) - I will add it to the sparky-backup-sys script. 

Navigation

[0] Message Index

[#] Next page

Go to full version