Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USB RAW file
06-29-2011, 02:24 PM,
#2
RE: USB RAW file
Well I've managed to find an answer to my own question.
The .RAW file can be mounted as a file system without too much trouble :

losetup /dev/loop1 /usr/local/src/stresslinux_64bit_11.4.x86_64-0.7.105.raw
mount -t ext3 -o loop,offset=$((512*63)) /dev/loop1 /mount/disk

I then (although its not strictly necessary) pruned the locale directories of non english localizations.

I formatted the memory stick (in my case /dev/sdb) as an ext3 partition
Next cp -pdr /mount/disk/* /dev/sdb1/ to copy the data across, and
then ran parted, set the device to /dev/sdb1 and toggled the boot flag to on

sdb1 currently shows at 609Mb, so it could be made to fit on a 512mb disk but it would require some further judicious pruning of files.
Reply


Messages In This Thread
USB RAW file - by paul44000 - 06-15-2011, 03:07 PM
RE: USB RAW file - by paul44000 - 06-29-2011, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)