Author Topic: My Live CD Copy Of My Backup Server.  (Read 899 times)

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
My Live CD Copy Of My Backup Server.
« on: July 24, 2012, 09:38:46 AM »
On my backup server I'm building I have a SDHC Card instead of a IDE hard drive using a SD/ IDE converter panel.
I have 'Minime' cut down OS installed and need to make a 'Live CD' but I keep getting a problem about directory permissions and not creating 'livecd.sqfs'.

I have made a directory /home/remasters with root/root

This is the output of mylivecd.


 root@localhost ~]# mylivecd --gzip --nodir ^/home/remasters --tmp /home/remasters backupserver.iso
mylivecd, version 0.9.5, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:29/00:00:29]
Setting filesystem parameters:                     [100.00% 00:00:45/00:00:45]
Creating compressed image:                         [100.00% 00:51:18/00:51:59]chmod: cannot access `/home/remasters/mylivecd.3434/livecd/livecd.sqfs': No such file or directory
DIE
FATAL: Execution of 'chmod 644 /home/remasters/mylivecd.3434/livecd/livecd.sqfs' failed


[root@localhost ~]# df -T
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1 reiserfs    4.9G  2.0G  3.0G  41% /
/dev/md0       xfs    1.9T   70G  1.8T   4% /raid1
/dev/sda6 reiserfs    2.5G  186M  2.3G   8% /home
[root@localhost ~]#
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: My Live CD Copy Of My Backup Server.
« Reply #1 on: July 24, 2012, 11:23:50 AM »
I've had the same type of problem if I specify --nodir ^/tmp. This is something that just started happening recently with mylivecd, and I'm not sure why. Anyway, you can do what you want pretty easily. Leave out the --tmp designation. You don't need it. Open the terminal and become root. Be sure you're in the /root directory. Then, remove the old working directory before running mylivecd again.

$ su -           <----- become root
# pwd          <----- check your working directory; if it's not /root
# cd /root    <----- change to /root directory
# rm -rf /home/remasters/mylivecd.3434      <----- remove previous mylivecd temp directory
# mylivecd --gzip backupserver.iso                 <----- mylivecd parameters
# mv backupserver.iso /home/remasters/     <----- move the created iso to target directory
# exit

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: My Live CD Copy Of My Backup Server.
« Reply #2 on: July 24, 2012, 02:09:46 PM »
Hi.
I created     '/home/remasters'           because I had problems in the past with not enough room on the 'tmp' directory and being I have not got a big 'swap' dir on the SD Card.
I had already removed before I did my first post the contents of that directory.

I will try ' mylivecd --gzip backupserver.iso  ' and see what happens.
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: My Live CD Copy Of My Backup Server.
« Reply #3 on: July 24, 2012, 03:33:29 PM »
 >:(

[root@localhost ~]# mylivecd --gzip backupserver.iso
mylivecd, version 0.9.5, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:43/00:00:43]
Setting filesystem parameters:                     [100.00% 00:00:52/00:00:52]
Creating compressed image:                         [100.00% 00:53:10/00:53:52]chmod: cannot access `/tmp/mylivecd.4811/livecd/livecd.sqfs': No such file or directory
DIE
FATAL: Execution of 'chmod 644 /tmp/mylivecd.4811/livecd/livecd.sqfs' failed
[root@localhost ~]#
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: My Live CD Copy Of My Backup Server.
« Reply #4 on: July 24, 2012, 03:51:39 PM »

Creating compressed image:                         [100.00% 00:53:10/00:53:52]chmod: cannot access `/tmp/mylivecd.4811/livecd/livecd.sqfs': No such file or directory
DIE
FATAL: Execution of 'chmod 644 /tmp/mylivecd.4811/livecd/livecd.sqfs' failed
[root@localhost ~]#


Sorry, mike, I've run mylivecd twice in the last 24 hours and have had no problems. First, check your space available. Next, check directory permissions.

df -H
ls -l / | grep tmp


Post the output.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: My Live CD Copy Of My Backup Server.
« Reply #5 on: July 24, 2012, 03:57:43 PM »
Quote
[root@localhost ~]# df -T
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1 reiserfs    4.9G  2.0G  3.0G  41% /
/dev/md0       xfs    1.9T  70G  1.8T   4% /raid1
/dev/sda6 reiserfs    2.5G  186M  2.3G   8% /home
[root@localhost ~]#


Are you excluding that 70GB from the remaster? 
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: My Live CD Copy Of My Backup Server.
« Reply #6 on: July 24, 2012, 04:03:37 PM »
Quote
[root@localhost ~]# df -T
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1 reiserfs    4.9G  2.0G  3.0G  41% /
/dev/md0       xfs    1.9T  70G  1.8T   4% /raid1
/dev/sda6 reiserfs    2.5G  186M  2.3G   8% /home
[root@localhost ~]#


Are you excluding that 70GB from the remaster? 

Good catch! I didn't notice that. Mike, you need to unmount /raid1 before doing the remaster. If you don't want your home directory contents included in the remaster, unmount /home, too. Or, just do umount -a before starting.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: My Live CD Copy Of My Backup Server.
« Reply #7 on: July 25, 2012, 08:46:45 AM »
Success  ;D  Thanks for your help. :)

Well spotted 'Just 17'  Not doing a livecd of a machine with a 'raid' on it I got it in my mind that it ignores the raid  :-[

I also move the 'remasters' to the 'raid1' because it is only a small SD card and it is very slow to write to.


Is there any other way to copy that SD card hard drive ? than the above way .

----------------------------------------------------------------------------------------------------


[root@localhost ~]# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda1              5.3G   2.1G   3.2G  41% /
/dev/md0               2.0T    75G   2.0T   4% /raid1
/dev/sda6              2.7G   197M   2.5G   8% /home

[root@localhost ~]# ls -l / | grep tmp
drwxrwxrwt  14 root root   480 Jul 25 11:31 tmp/

[root@localhost ~]# mylivecd --nodir=^/raid1/Second-Backup-mydaughter,^/raid1/Users,^/raid1/remasters --tmp=/raid1/remasters backupserver.iso


mylivecd, version 0.9.5, http://pclinuxos.com/
Copyright (C) 2010, Texstar <texstar at gmail.com>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

Disabling Services not needed on the LiveCD

running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list


Creating initrd:                                   [100.00% 00:00:17/00:00:17]
Setting filesystem parameters:                     [100.00% 00:00:35/00:00:35]
Creating compressed image:                         [100.00% 01:58:56/01:58:56]
Creating isolinux boot:                            [100.00% 00:00:01/00:00:01]
Creating final iso:                                [100.00% 00:02:51/00:02:51]

Restoring Services on the installed system


Created 'backupserver.iso' (539,213,824 bytes) in 02:02:45

[root@localhost ~]#
« Last Edit: December 29, 2012, 11:06:17 AM by pclinmike »
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: My Live CD Copy Of My Backup Server.
« Reply #8 on: July 25, 2012, 08:54:45 AM »
Quote
Is there any other way to copy that SD card hard drive ? than the above way .

You can always use rsync to copy the data from one partition to another .....  but the source should not be in use at the time.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: My Live CD Copy Of My Backup Server.
« Reply #9 on: July 25, 2012, 09:37:28 AM »
Quote
Is there any other way to copy that SD card hard drive ? than the above way .

You can always use rsync to copy the data from one partition to another .....  but the source should not be in use at the time.
Not used a SD card hard drive before.

Sorry I have not made my self clear.

I need to create a spare SD  card (with all my 'raid' config files) so if my backup server goes down I can hopefully un-plug one card and plug in the spare and get me going again.

So could I create a SD card with the same file format and same number as the original then run that machine from a live cd, then use rsync to copy over .?
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: My Live CD Copy Of My Backup Server.
« Reply #10 on: July 25, 2012, 09:54:06 AM »
You seem to have a couple of options ......

you can make a copy of the present install by rsyncing the contents of the / partition to another partition on a different SD card, and then install Grub to the MBR of the new card.

you can use the created ISO to make a liveSD card and use that for an emergency boot ..  again with Grub written to its MBR.

Presumable the SD card is not involved in the raid system.



Quote
So could I create a SD card with the same file format and same number as the original

I am unsure what number you mean.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline pclinmike

  • Hero Member
  • *****
  • Posts: 637
  • I Only 'Clean' Windows !.
Re: My Live CD Copy Of My Backup Server.
« Reply #11 on: July 25, 2012, 10:34:19 AM »
You seem to have a couple of options ......

you can make a copy of the present install by rsyncing the contents of the / partition to another partition on a different SD card, and then install Grub to the MBR of the new card.

you can use the created ISO to make a liveSD card and use that for an emergency boot ..  again with Grub written to its MBR.

Presumable the SD card is not involved in the raid system.



Quote
So could I create a SD card with the same file format and same number as the original

I am unsure what number you mean.



Ok I will try that, thanks.

Re... "Presumable the SD card is not involved in the raid system."  Just to boot the system.

Re2... "I am unsure what number you mean."   It should say .

 "So could I create a SD card with the same file format and same number of partitions as the original then run that machine from a live cd, then use rsync to copy over"
Michael.
From South-Derbyshire, England.U.K.Earth.

I Normally Do A Search Before I Post A New Question !.

Thanks to all who replied to my posts.

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10675
  • MLUs Forever!
Re: My Live CD Copy Of My Backup Server.
« Reply #12 on: July 25, 2012, 10:57:09 AM »
You seem to have a couple of options ......

you can make a copy of the present install by rsyncing the contents of the / partition to another partition on a different SD card, and then install Grub to the MBR of the new card.

you can use the created ISO to make a liveSD card and use that for an emergency boot ..  again with Grub written to its MBR.

Presumable the SD card is not involved in the raid system.



Quote
So could I create a SD card with the same file format and same number as the original

I am unsure what number you mean.



Ok I will try that, thanks.

Not sure which idea you meant there ......  but referring to your remark about partitions there might be something else needed.

Quote
Re... "Presumable the SD card is not involved in the raid system."  Just to boot the system.

That is what I thought, so OK it seems.

Quote
Re2... "I am unsure what number you mean."   It should say .

 "So could I create a SD card with the same file format and same number of partitions as the original then run that machine from a live cd, then use rsync to copy over"


What partitions do you need on the SD card?

Do you need to have a separate /home partition?

I fail to see the point on a server .....  but I have little experience of servers so .....

For emergency use, the liveOS might be sufficient for your purposes, if it contains all the setup that you need.

I guess that is the first thing you need to be sure of.



MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT