-
Mounting CIFS windows shares to make backups
Why is Knoppix so great?
Here’s an application of backing up your hard drive to a windows shared drive.
I can boot up with a knoppix 5.1.1 livecd, enter knoppix 2 at the boot prompt, wait for it to boot and then mount my windows network drive with mount.cifs like so:
mkdir /mnt/mydrive
mount.cifs //192.168.1.100/my_shared_drive /mnt/mydrive -o user=myuser,pass=mypass
Then I can backup my 10GB drive to a file with:
dd if=/dev/hda of=/mnt/mydrive/myimagefile
Note that I'm mounting a NTFS partition over the network so I can have filesizes greater than 4GB with CIFS.
Also I've set my router up to give fixed IP addresses for each machine so I know what it's IP is without having to login to the router to find out the list of attached devices.
About 90 mins later, voila! An image file of my entire hard drive. How great is that??? CIFS is soooo sweet.
USING KNOPPIX TO MOUNT THE IMAGE FILE PARTITIONS
fdisk -l -u /mnt/mydrive/myimagefile shows me the partition table of my imagefile
-l flag lists the partitions
-u flag gives the partitions in sector sizes
Disk /mnt/mydrive/myimagefile: 0 MB, 0 bytes
240 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/mnt/mydrive/myimage1 * 63 8195039 4097488+ b W95 FAT32
/mnt/mydrive/myimage2 8195040 19625759 5715360 f W95 Ext'd (LBA)
/mnt/mydrive/myimage5 8195103 12292559 2048728+ b W95 FAT32
63 * 512 = 32256
8195103 * 512 = 4195892736
and if I multiply the start sector by 512, I can mount a partition directly from the image file
mkdir /mnt/part1
mkdir /mnt/part2
mount -t vfat /mnt/mydrive/myimage /mnt/part1 -o loop,offset=32256
mount -t vfat /mnt/mydrive/myimage /mnt/part2 -o loop,offset=4195892736
Similar Threads
-
By unckybob in forum Networking
Replies: 0
Last Post: 06-09-2008, 08:30 PM
-
By Bendman0815 in forum MS Windows & New to Linux
Replies: 0
Last Post: 10-24-2006, 10:45 AM
-
By tsitras in forum Networking
Replies: 5
Last Post: 05-21-2004, 11:04 PM
-
By usbrit in forum Networking
Replies: 0
Last Post: 02-24-2004, 05:26 AM
-
By Blue in forum Customising & Remastering
Replies: 2
Last Post: 06-26-2003, 12:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
$29.99
Seagate 10TB 7200RPM 12Gbps 3.5in SAS Hard Drive ST10000NM096
$79.99
HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD
$69.99
Lot of 4 Western Digital WD5000AAKX 500GB 7200RPM 6Gb/s 3.5in SATA Hard Drive
$29.99
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$79.99
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$93.88
Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive
$99.99
SEAGATE ST4000NM0023 HARD DRIVE 3.5" SAS 4TB HDD
$16.99
Western Digital WD10JUCT 1TB 2.5" SATA 3Gb/s 5400 RPM 16MB Laptop Hard Drive
$17.98
8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002
$36.94