DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-01-14 06:39:56

toolbox
Member
Registered: 2008-12-18
Posts: 83

newbie question - like to back up debian image on usb drive

I used something similiar to post #44 from thread http://dns323.kood.org/forum/t3126-easy … ebian.html to run my chroot'd debian to a USB stick. How do I back up the linux directory on the USB stick? If I use cp command, contents of both drive seems to be copied because they both are mounted at /mnt.
thanks.

Offline

 

#2 2009-01-14 14:56:58

kennedy101
Member
Registered: 2008-09-16
Posts: 48

Re: newbie question - like to back up debian image on usb drive

toolbox: I keep three fun_plug scripts on HD_a2. The base telnet fun_plug I use to copy the files from the usb stick to the hard drive (back up my install). I also chroot into the debian install on the hard drive to e2fsck the usb stick BEFORE copying the linux directory. Depending upon what maintenance I need to do I rename each fun_plug script and reboot the NAS. The solution really just sucks so far. I think having the ffp sript boot first to get a working e2fsk and more bash commands would be the best method. If ffp were loaded then you could write a script to check all USB partition for an unclean mount (they are never unmounted properly). Once the e2fsck completes then you could copy the contents of USB/linux to HD_a2/linux. Finally after doing that then you could chroot into debian. I'd put the aformentioned script in /ffp/etc/start and change it to an executeable.

Since I havent written the script and I'm still having issues running from a USB drive I've abandoned this method. Running /linux from the USB, and even the swap from USB was fine - although in the ffp script you' probably want to run mkswap every time you boot before turrning swapon. The problem was the 6 GB partition on the USB stick where the torrents were stored. If there were more than 2 torrents I'd get a storage error on all downloads. I'm no longer on vacation and back to the work thing - so I'm out of endless hours to play with this thing.

Hope this helps and glad to see that someone is using the simple script. It's really just a hack now since it doesnt consider all variables and has no method to backup to the hard drive.


DNS 323 (Hardware B1, Firmware 1.06). 2x 1.5TB Seagate HDs.
Chroot Debain (Lenny) on USB (not reloaded). Edna server. USB print server. USB drives added to samba share. All init.d scripts in place.
Future projects: FFP reloaded then chroot on B1 hardware.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB