Results 1 to 4 of 4

Thread: kn-backup.sh wont recognise ext2 partition

  1. #1
    Junior Member AussiePete's Avatar
    Join Date
    May 2013
    Location
    Sydney, Australia
    Posts
    18

    kn-backup.sh wont recognise ext2 partition

    Hi all,
    I've installed knoppix7 to a 16Gb USB memory stick (/dev/sdb1) which I have been using for approx 12 months. Up till now, whenever I make changes to my system I manually backup knoppix-data.img to my HHD, however, I have just discovered kn-backup.sh on http://www.wp-schulz.de/.
    I downloaded sh-backup.sh and installed to /usr/sbin. Using another 16Gb USB memory stick (which incidentally was formatted with knoppix7 on it) I have created a second 8Gb primary partition formatted to ext2 using gparted. When I run "sudo testdisk /list" I get the follow:

    Code:
    Disk /dev/sda - 15 GB / 14 GiB - CHS 14786 64 32
         Partition			Start        End    Size in sectors
     1 * FAT32 LBA                3  60  1 14786  39 32   30274944 [KNOPPIX]
    
    Warning: Bad ending sector (CHS and LBA don't match)
    Disk /dev/sdb - 15 GB / 14 GiB - CHS 14900 64 32
         Partition			Start        End    Size in sectors
     1 * FAT32 LBA                3  60  1  8712  63 32   17836160 [KNOPPIX2]
    
    Bad relative sector.
     2 P Linux                 8713   0  1 14899  63 32   12670976 [Backups]
    I presume the warnings above regarding CHS and LBA is because knoppix formats these disks according to MiB and not cylinder boundaries.
    When I run kn-backup and select "Backup whole persistent memory" I get the following error: "Cannot find any partition to use!"
    I have read all relevant info on http://www.wp-schulz.de/ and can't see where I am going wrong...please help!

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Yes, there is a problem and I'll look for it this night.
    Last edited by Werner P. Schulz; 03-06-2014 at 08:04 PM.

  3. #3
    Junior Member AussiePete's Avatar
    Join Date
    May 2013
    Location
    Sydney, Australia
    Posts
    18

    The new version of kn-backup.sh works GREAT!

    Hi Werner,
    I just down loaded your newer version of kn-backup.sh and it worked great. I've just done a complete backup and everything seems to have worded. It shrank my whole persistent memory down from 2.4 GiB to about 1GiB. My knoppix-data.img file is 3.8 GiB, so this is great, I''l therefore be using your program for my backups rather than manually copying knoppix-data.img every time I want to backup.
    I'm sorry I didn't reply sooner, I saw your message from yesterday but didn't reply as I was doing some investigations of my own. It appears the memory sticks, which are "Verbatim store 'n go", create a secret partition where it is possible to lock the drive with a password. As a result, when you reformat it locks this secret partition at the very start of the disk so that any new partition starts at approx sector 8000 (4Mb). I've only just discovered this and have down loaded a program from verbatim to delete this locked partition. Hopefully this will allow me to repartition the drives so the CHS structure is neat and tidy, not that it really matters I suppose if it is formatted with logical block access (LBA) enabled.
    Anyway, once again, thank you very much, I'll let you know if I have any other problems. As you probably already know, backing up is the easy part, it's when you need to restore a backup that is the important part!!!
    Kind regards,
    Peter
    Last edited by AussiePete; 03-07-2014 at 01:05 PM.

  4. #4
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Hello Peter,

    I hope you'll test also the restore options of the script the next day and you don't find any more errors. I've tested the script over and over but not the last little change within it

    Greetings Werner

Posting Permissions

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


Supermicro 4U 36 Bay Storage Server 2.2Ghz 16-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.2Ghz 16-C 128GB 1x1280W Rails TrueNAS ZFS

$725.06



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2612.18



HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD picture

HP ProLiant DL360 G9 Server | 2 x E5-2660V3 2.6Ghz | 64GB | 2 x 900GB SAS HDD

$339.00



CSE-118 Supermicro 1U GPU Server 2.6Ghz 28-C 128GB 2x Nvidia K40 GPU 2x1600W PSU picture

CSE-118 Supermicro 1U GPU Server 2.6Ghz 28-C 128GB 2x Nvidia K40 GPU 2x1600W PSU

$580.03



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$196.95



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45 picture

HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45

$353.00



Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores  64gb  H730  2x 750w picture

Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores 64gb H730 2x 750w

$189.99