Welcome! Log In Create A New Profile

Advanced

Working thumb drive squeeze images available?

Posted by Eric House 
Eric House
Working thumb drive squeeze images available?
February 13, 2011 03:44PM
I ran Jeff Doozan's script to install Debian Squeeze on a Dockstar
that was already running OpenWRT. The first thing that script does is
rewrite the bootloader, so when it later turned out OpenWRT didn't
have everything required to complete the USB drive configuration I was
left with a brick.

But: I think it's a brick that's configured to boot off of a Debian
Squeeze thumb drive. If I can find a disk image of such a drive I
should be good to go. Is there an archive of such beasts out there?
Anybody willing to post one?

Thanks,

--Eric
Re: Working thumb drive squeeze images available?
February 13, 2011 08:19PM
I don't know of any, but first you'll need to give the size that you want. There were some images for an Asterisk server over at PlugPBX but again you'd have to have a USB stick that was the same size as the image.
Eric House
Re: Working thumb drive squeeze images available?
February 13, 2011 09:35PM
I have a 2G thumbdrive, but will happily get whatever I need. Not that I want to download a 4G image (even compressed :-).

I assume a 2G drive will accommodate anything <= 2G.

I did find an image from another distro meant for the Dockstar, but it doesn't boot. I suspect that the version of uboot the script installed will work only with the Debian Squeeze thumbdrive it creates -- e.g. because it's configured to look for a particular kernel or uImage or passes a non-standard init path. So I don't think the Asterisk server would work even if I could find it (and if the one I found is the same you're referring to the image is no longer there.)

Thanks,

--Eric
Eric House
Re: Working thumb drive squeeze images available?
February 13, 2011 11:26PM
I probably don't need an actual image: I bet a listing of the files would do. Would anybody mind posting the results of running

# ls -l /

on a debian/squeeze Dockstar?
Re: Working thumb drive squeeze images available?
February 14, 2011 02:18AM
Have you looked into the images here: http://squeezeplug.de/ ?
Re: Working thumb drive squeeze images available?
February 14, 2011 02:23PM
Eric House Wrote:
-------------------------------------------------------
> I probably don't need an actual image: I bet a
> listing of the files would do. Would anybody mind
> posting the results of running
>
> # ls -l /
>
> on a debian/squeeze Dockstar?

Not sure what this will accomplish for you, but here it is:

$ ls -la /
total 92
drwxr-xr-x 22 root root  4096 Feb  5 11:28 .
drwxr-xr-x 22 root root  4096 Feb  5 11:28 ..
drwxr-xr-x  2 root root  4096 Jan 31 16:10 bin
drwxr-xr-x  2 root root  4096 Jan 31 16:13 boot
drwxr-xr-x 13 root root  2540 Dec 31  1969 dev
drwxr-xr-x  6 root root  4096 Dec  9 16:28 ds
drwxr-xr-x 62 root root  4096 Feb 12 01:55 etc
drwxr-xr-x  4 root root  4096 Nov 23 17:01 home
lrwxrwxrwx  1 root root    33 Nov 23 17:00 initrd.img -> boot/initrd.img-2.6.32-5-kirkwood
drwxr-xr-x  9 root root 12288 Jan 31 16:10 lib
drwx------  2 root root 16384 Dec 31  1999 lost+found
drwxr-xr-x  2 root root  4096 Dec 31  1999 media
drwxr-xr-x  2 root root  4096 Aug  6  2010 mnt
drwxr-xr-x  2 root root  4096 Dec 31  1999 opt
dr-xr-xr-x 75 root root     0 Dec 31  1969 proc
drwx------  2 root root  4096 Nov 23 17:00 root
drwxr-xr-x  2 root root  4096 Feb 12 01:55 sbin
drwxr-xr-x  2 root root  4096 Jul 21  2010 selinux
drwxr-xr-x  2 root root  4096 Dec 31  1999 srv
drwxr-xr-x 12 root root     0 Dec 31  1969 sys
drwxrwxrwt  2 root root    60 Feb 14 15:20 tmp
drwxr-xr-x 10 root root  4096 Nov 23 17:00 usr
drwxr-xr-x 13 root root  4096 Nov 23 16:59 var
lrwxrwxrwx  1 root root    30 Nov 23 17:00 vmlinuz -> boot/vmlinuz-2.6.32-5-kirkwood
$ 
Re: Working thumb drive squeeze images available?
February 14, 2011 08:11PM
Well, I've heard there are issue's with how eth0 get's handled if you attempt to use an image from another Dockstar, but if you tell me the the dd command you wish run against my 4gig USB stick I'd be happy to run that from the Pogoplug bootup or from my desktop machines Mint install and see if I can't create an image for you.

It won't be a 'small' version of Debian at this point since I'm using it as a PVR and have installed a fair amount of stuff, but it does boot and has SSH functioning, so if you could log onto it you could then use it to fix your nand install issue's.

I suspect if you have a desktop machine with some form of Linux installed, it would be easier to rework Jeff's script a bit and have it create the Debian install for you on your own stick, since as far as I know of all it does is copy the needed files from the proper sources.
Re: Working thumb drive squeeze images available?
February 15, 2011 08:08PM
You should be able to copy the usb thumb drive with something like this:
dd if=/dev/sdX of=/path/to/backup.dd
And I'd unmount the filesystem before making the image.

It's not too difficult to fix the eth problem. On first time start up, the udev network rule generator creates a rule which maps your mac address to eth0. It's in something like /etc/udev/rules.d/xxx_persistent-net.rules (from memory, but should be pretty damn close.) Just delete that file.

You can even mount the dd copy and remove the offending file from it. It's a bit trickier to mount a "full" clone of a disk than a clone of a partition. You would need to use fdisk or parted or the like to see the partition table inside the image file, so you can see the partition offsets. You can then mount the correct partition to a loop device using that offset, but I think the offset is in bytes so you need to calculate it with something like the starting block * the block size in bytes.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: