Results 1 to 4 of 4

Thread: I make a DD image to restore, but I can't mount the disk

  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    1

    I make a DD image to restore, but I can't mount the disk

    I own a Netgear Readynas with 2 500G drives installed (mirrored RAID-setup).
    Because I'm customizing it, which is really a lot of work for me, I made a backup with DD using following command:

    Code:
    dd if=/dev/hdc1 of='readynasOS.iso'
    . hdc1 is a 2GB partition which holds the Operating System.

    Now, I've bricked my NAS, and have done a factory reset (It just formats the NAS syncs the drives and leaves me with a empty, clean device). Next, I hooked up the drive (the first physical drive of the NAS device as that one holds the OS) to my Windows XP SP3 computer. The image of the Readynas is also on my XP desktop on a seperate partition. Then, I booted into Knoppix using the Live CD.
    It appears Knoppix names everything sdax (x being a number) but I suppose that is not a problem. The image (readynasOS.iso) is in the root of the sda4 partition. The disk whose partition needs to be restored is the hdc1 (Knoppix named it sdb1)partition.

    My first mount attempt got this error:

    Code:
    mount: can't find /dev/sbd1/ in /etc/fstab or /etc/mtab
    I alterered fstab and mtab (see extra info for their content) and then I got this error:

    Code:
    oot@Knoppix:/ramdisk/home/knoppix# mount /dev/sdb1/
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    And I did do a dmesg | tail getting following info:

    Code:
     lo: Disabled Privacy Extensions
    Mobile IPv6
    EXT3-fs: Unsupported filesystem blocksize 16384 on sdb1.
    eth1: no IPv6 routers present
    eth1: no IPv6 routers present
    EXT3-fs: Unsupported filesystem blocksize 16384 on sdb1.
    EXT3-fs: Unsupported filesystem blocksize 16384 on sdb1.
    EFS: 1.0a - http://aeschi.ch.eu.org/efs/
    EXT3-fs: Unsupported filesystem blocksize 16384 on sdb1.
    EXT3-fs: Unsupported filesystem blocksize 16384 on sdb1.

    And as you might guess I'm stuck now. Does anyone know how to get this mounted thanks,

    jeroen


    Extra info :

    fdisk - l

    Code:
    root@Knoppix:/ramdisk/home/knoppix# fdisk -l
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        4016    32258488+   7  HPFS/NTFS
    /dev/sda2            4017       13195    73730317+   7  HPFS/NTFS
    /dev/sda3           13196       16446    26113657+   7  HPFS/NTFS
    /dev/sda4           16447       48954   261120510    7  HPFS/NTFS
    
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1         255     2048000   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sdb2             255         287      256000   82  Linux swap / Solaris
    Partition 2 does not end on cylinder boundary.
    /dev/sdb3             287       60800   486064152    5  Extended
    /dev/sdb5             287       60800   486064151+  8e  Linux LVM


    Contents of fstab:

    Code:
    /proc      /proc       proc   rw,nosuid,nodev,noexec 0 0
    /sys       /sys        sysfs  rw,nosuid,nodev,noexec 0 0
    /dev/shm   /dev/shm    tmpfs  rw,nosuid,nodev,noexec 0 0
    /dev/pts   /dev/pts    devpts mode=0622           0 0
    /dev/fd0   /media/fd0  auto   user,noauto,exec,umask=000    0 0
    /dev/cdrom /media/cdrom  auto   user,noauto,exec,ro 0 0
    /dev/hda /media/hda  auto   users,noauto,exec,ro 0 0
    # Added by KNOPPIX
    /dev/sda1 /media/sda1 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix $
    # Added by KNOPPIX
    /dev/sda2 /media/sda2 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix $
    # Added by KNOPPIX
    /dev/sda3 /media/sda3 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix $
    # Added by KNOPPIX
    /dev/sda4 /media/sda4 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix $
    # Added by KNOPPIX
    /dev/sdb1 /media/sdb1 ext3 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/sdb2 /media/sdb2 auto noauto,users,exec 0 0
    contents of mtab (I added the last line there myself)

    Code:
    /dev/root / ext2 rw 0 0
    /ramdisk /ramdisk tmpfs rw,size=775604k,mode=755 0 0
    /UNIONFS /UNIONFS aufs rw,br:/ramdisk:/KNOPPIX 0 0
    /dev/hda /cdrom iso9660 ro 0 0
    /dev/cloop /KNOPPIX iso9660 ro 0 0
    /proc/bus/usb /proc/bus/usb usbfs rw,devmode=0666 0 0
    /dev/pts /dev/pts devpts rw 0 0
    /dev/sda1 /media/sda1 fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 $
    /dev/sda2 /media/sda2 fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 $
    /dev/sda3 /media/sda3 fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 $
    /dev/sda4 /media/sda4 fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 $
    /dev/sdb1 /media/sdb1

  2. #2
    Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Did you figure this out?

    I have the same problem with my Ubuntu 10.10 server. i've tried reading the file using knoppix (v3 & v6) and cygwin. I get the exact same errors that you did. If anyone else knows how to solve this, please let me know. I'm thinking we both used the dd command incorrectly. I did it the same way as you except for my destination file name of course.

  3. #3
    Moderator Moderator
    Join Date
    Jan 2010
    Location
    Asheville, NC, USA
    Posts
    528
    It looks like the NAS format did not produce bare drives that conform to the standards. Now, the target (bare) drive has partitions that won't mount. What if you put that drive back in the NAS box and let Knoppix see it as a network drive? I'm not sure what you need to accomplish by putting the data on one drive only, but may both will work for you.

    Cheers!
    Krishna

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Posts
    242
    Quote Originally Posted by jsk View Post
    I have the same problem with my Ubuntu 10.10 server. i've tried reading the file using knoppix (v3 & v6) and cygwin. I get the exact same errors that you did. If anyone else knows how to solve this, please let me know. I'm thinking we both used the dd command incorrectly. I did it the same way as you except for my destination file name of course.
    Hi jsk and welcome to the Knoppix forums,

    What Jeroen did (and so I guess you did too) was to back up a partition (file system and all). What I think Jeroen needed to do was restore the partition (file system and all).

    For that, not only do you not need to mount the partitions first, you definitely don't want to. If the partition won't mount, then it doesn't have a file system on it. I haven't had the pleasure of playing with a NAS so I don't know what this 'reset' does. It looks like it restored the partition table but not the file system. That does not seem too unreasonable to me.

    If you backed up a partition with:

    Code:
    dd if=/dev/sdc1 of=myBackup.certainlyNotIso
    then you'd restore it with:

    Code:
    dd of=/dev/sdc1 if=myBackup.certainlyNotIso
    assuming the world hasn't turned in between.

    It's a cat, so there are harder ways of killing it but try Occam's Razor first. If that doesn't work, report back and we'll scratch heads some more.

Similar Threads

  1. make usb persistently mount at sdb and sdc?
    By maestrobwh1 in forum Hardware & Booting
    Replies: 0
    Last Post: 10-18-2007, 10:47 PM
  2. Image save and restore CD/DVD with KNOPPIX
    By mclae in forum Tips and Tricks
    Replies: 0
    Last Post: 03-09-2006, 10:24 PM
  3. Help to restore a dd image file back to the hard drive
    By BrianC in forum General Support
    Replies: 11
    Last Post: 12-13-2005, 08:28 PM
  4. Using Knoppix to make a disk image of a NTFS-format drive?
    By goldenh in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 10-23-2005, 06:22 PM
  5. dd to make image of CD-- OK while mounted?
    By Lucky Daniel in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 06-11-2005, 03:55 AM

Posting Permissions

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


Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



lot of 10 Juniper EX-SFP-10GE-SR Compatible 10GBASE-SR SFP+ 850nm 300m DOM -J499 picture

lot of 10 Juniper EX-SFP-10GE-SR Compatible 10GBASE-SR SFP+ 850nm 300m DOM -J499

$220.00



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested picture

Juniper EX3400-48P 48-Ports PoE+ 4x SFP+ and 2x QSFP+ Managed Switch Tested

$205.00



EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED picture

EX2300-24P Juniper 24-port 10/100/1000BASE-T PoE+ 4 x 1/10GbE SFP/SFP+ UNCLAIMED

$450.00



Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch picture

Juniper Networks EX2200-C-12P-2G 12 Port Gigabit PoE 2 T/SFP 1G Network Switch

$129.00



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$41.28



JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED picture

JUNIPER EX4550-32F-AFO 32-PORT ETHERNET SWITCH 2x POWER SUPPLY - TESTED

$299.99



Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED picture

Juniper Networks EX3300-24P 24-Port PoE+ 4x SFP+ Network Switch TESTED

$79.99