euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] Linux Lunacy



    Bob MillerMon Mar 28 09:00:11 PST 2005

    T. Joseph CARTER wrote:
    
    > <@insomnia> it only takes three commands to install Gentoo
    > <@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1
    > 	    /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && .
    > 	    /etc/profile && emerge sync && cd /usr/portage &&
    > 	    scripts/bootsrap.sh && emerge system && emerge vim && vi
    > 	    /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux
    > 	    && make menuconfig && make install modules_install && emerge
    > 	    gnome mozilla-firefox openoffice && emerge grub && cp
    > 	    /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi
    > 	    /boot/grub/grub.conf && grub && init 6
    > <@insomnia> that's the first one
    
    (a) He forgot the tar step between the mount and the chroot.
    
    (b) chroot starts a subshell.  Should be
    
        ... && chroot /mnt/gentoo sh -c 'env-update && ... && grub' && init 6
     
    (b) You could make this idempotent with a little error recovery...
    
        cfdisk ... && mkfs ... && mount ... && (tar ... && chroot ... && \
        init 6 || umount /dev/hda1)
    
        That way, if it fails, just hit the up-arrow key, edit the command
        a bit, and try again. (-:
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] ping on plans for 4/2 event



    Edward CraigMon Mar 28 08:54:45 PST 2005

    No Ubuntu? (Not that I'm any help there until the OCF CD sets arrive).)
    
    On Mon, 2005-03-28 at 04:13, Ben Barrett wrote:
    > Howdy folks -- just wanted to check back in with everyone, since I 
    > haven't seen any chatter about the event coming up this saturday eve, 
    > April 2nd, at Cosmic Pizza, where EUGLUG can get some public exposure 
    > via the Oregon Country Fair Community Village's fundraiser (7pm, 199 W 
    > 8th) http://efn.org/~comvill/JoulesGravesCommunityVillage.html
    > 
    > I've updated my collection of ISO's, and here's what I've got that seems 
    > pertinent:
    > Live CD's:
    > FreeSBIE 20040919 (FreeBSD http://www.freesbie.org/ )
    > GISKNOPPIX v1.0 20031016 (Geo/mapping GIS tools 
    > http://www.sourcepole.com/sources/software/gis-knoppix/index.xml )
    > Overclockix 3.7 (overclocking-based knoppix variant 
    > http://overclockix.octeams.com/ )
    > freeduc 1.4.1 (education-based knoppix variant 
    > http://www.ofset.org/freeduc-cd )
    > stresslinux 0.2.6 (stress/hardware testing http://www.stresslinux.org/ )
    > xlivecd 10041201 (cygwin livecd for windoze! http://xlivecd.indiana.edu/ )
    > knoppix 3.7 (I know 3.8 is pretty much out)
    > FeatherLinux (115MB USB/CD bootable http://featherlinux.berlios.de/ )
    > Helix v1.6 20050307 (security/forensics http://www.e-fense.com/helix/ )
    > dynebolic 1.4 (multimedia http://www.dynebolic.org/ )
    > ogo-knoppix (opengroupware.org's variant 
    > http://www.opengroupware.org/en/knoppix/ )
    > 
    > Installer CD's:
    > Fedora Core 3 (I know FC4 beta is out)
    > WhiteBox Linux Liberation Respin1 (now getting respin2 
    > http://www.whiteboxlinux.org/)
    > Gentoo 2005.0 (now getting this)
    > 
    > I suppose some folks will want to see Mandrake, SuSE, Slack, etc other 
    > distros there.  Are there any of the above that our readship would *not* 
    > advise?  I have not used them all, but have been collecting ones that 
    > look interesting to various special-interest uses.
    > 
    > Any other ideas of what we might want to present there Saturday 
    > evening?  I don't think we'd have any decent chance of a "presentation" 
    > since there will be music all night and cozmic is pretty loud, but we 
    > could put up signage and hand out flyers or distribute information in 
    > general.
    > 
    > regards,
    > 
    >     Ben
    > 
    > 
    
    -- 
    Edward Craig <epcraig at efn.org>
    
    
  • [Eug-lug] Linux Lunacy



    T. Joseph CARTERMon Mar 28 08:23:52 PST 2005

    <@insomnia> it only takes three commands to install Gentoo
    <@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1
    	    /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && .
    	    /etc/profile && emerge sync && cd /usr/portage &&
    	    scripts/bootsrap.sh && emerge system && emerge vim && vi
    	    /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux
    	    && make menuconfig && make install modules_install && emerge
    	    gnome mozilla-firefox openoffice && emerge grub && cp
    	    /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi
    	    /boot/grub/grub.conf && grub && init 6
    <@insomnia> that's the first one
    
    Courtesy of bash.org, 464385.
    
    
  • [Eug-lug] ping on plans for 4/2 event



    Ben BarrettMon Mar 28 04:13:35 PST 2005

    Howdy folks -- just wanted to check back in with everyone, since I 
    haven't seen any chatter about the event coming up this saturday eve, 
    April 2nd, at Cosmic Pizza, where EUGLUG can get some public exposure 
    via the Oregon Country Fair Community Village's fundraiser (7pm, 199 W 
    8th) http://efn.org/~comvill/JoulesGravesCommunityVillage.html
    
    I've updated my collection of ISO's, and here's what I've got that seems 
    pertinent:
    Live CD's:
    FreeSBIE 20040919 (FreeBSD http://www.freesbie.org/ )
    GISKNOPPIX v1.0 20031016 (Geo/mapping GIS tools 
    http://www.sourcepole.com/sources/software/gis-knoppix/index.xml )
    Overclockix 3.7 (overclocking-based knoppix variant 
    http://overclockix.octeams.com/ )
    freeduc 1.4.1 (education-based knoppix variant 
    http://www.ofset.org/freeduc-cd )
    stresslinux 0.2.6 (stress/hardware testing http://www.stresslinux.org/ )
    xlivecd 10041201 (cygwin livecd for windoze! http://xlivecd.indiana.edu/ )
    knoppix 3.7 (I know 3.8 is pretty much out)
    FeatherLinux (115MB USB/CD bootable http://featherlinux.berlios.de/ )
    Helix v1.6 20050307 (security/forensics http://www.e-fense.com/helix/ )
    dynebolic 1.4 (multimedia http://www.dynebolic.org/ )
    ogo-knoppix (opengroupware.org's variant 
    http://www.opengroupware.org/en/knoppix/ )
    
    Installer CD's:
    Fedora Core 3 (I know FC4 beta is out)
    WhiteBox Linux Liberation Respin1 (now getting respin2 
    http://www.whiteboxlinux.org/)
    Gentoo 2005.0 (now getting this)
    
    I suppose some folks will want to see Mandrake, SuSE, Slack, etc other 
    distros there.  Are there any of the above that our readship would *not* 
    advise?  I have not used them all, but have been collecting ones that 
    look interesting to various special-interest uses.
    
    Any other ideas of what we might want to present there Saturday 
    evening?  I don't think we'd have any decent chance of a "presentation" 
    since there will be music all night and cozmic is pretty loud, but we 
    could put up signage and hand out flyers or distribute information in 
    general.
    
    regards,
    
        Ben
    
    
    
  • [Eug-lug] Low Level Format



    Bob MillerSun Mar 27 23:34:02 PST 2005

    Mr O wrote:
    
    > I'd like to see the case happen too. I'm not sure Maxtor would
    > like to see the case happen but those slim drives SUCK. When it
    > does happen (not if, as it likey is to take some sort of shape)
    > then I'll have pictures somewhere. In the meantime, if anyone
    > pulls one of those crappy slim Maxtor's from a box don't toss
    > it! Don't give yourself or client any hope of data recovery
    > either because we've sent one of those suckers to OnTrack who
    > (for $110) said it wasn't recoverable. Rest assured, when I'm
    > done with them there won't be any data recoverable either. 
    > 
    > That be all,
    
    That be not all.  Here's a fun writeup of another case made from
    computer parts.  Mr. O. is probably familiar with it.
    
    http://www.mini-itx.com/projects/coolcube/
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Low Level Format



    Mr OSun Mar 27 23:21:54 PST 2005

    I'd like to see the case happen too. I'm not sure Maxtor would
    like to see the case happen but those slim drives SUCK. When it
    does happen (not if, as it likey is to take some sort of shape)
    then I'll have pictures somewhere. In the meantime, if anyone
    pulls one of those crappy slim Maxtor's from a box don't toss
    it! Don't give yourself or client any hope of data recovery
    either because we've sent one of those suckers to OnTrack who
    (for $110) said it wasn't recoverable. Rest assured, when I'm
    done with them there won't be any data recoverable either. 
    
    That be all,
    Mr O.
    
    
    --- Jeff_W <beaker at freeshell.org> wrote:
    > Mr O <notanatheist at yahoo.com> wrote:
    > 
    > > ........ Or I'll take it. I
    > > may build a case out of those crappy ass drives. I've got
    > ten of
    > > them at work to get me started.
    > >
    > 
    > LOL - that's a great idea!  I would guess that, up to a point
    > anyways,
    > the case would act as a secondary heatsink.  Are you planning
    > on just
    > expoxying them together or something more;
    > solder/brazing/welding ?!?
    > 
    > Definitely would like to see pics of this!
    > 
    > -Jeff
    
    
    
    		
    __________________________________ 
    Do you Yahoo!? 
    Yahoo! Sports - Sign up for Fantasy Baseball. 
    http://baseball.fantasysports.yahoo.com/
    
  • [Eug-lug] Low Level Format



    Bob MillerSun Mar 27 23:10:21 PST 2005

    Jeff_W wrote:
    
    > > Q3)Shred sounds excellent for removing all traces of previous
    > > files, but 25X?, isn't that overkill?
    > 
    > Thought I'd post this since so many folks referenced 'shred'. I have
    > no idea how valid this poster's comments are and would be interested
    > in knowledgeable comments on it:
    
    Those comments apply when using shred to erase files on a filesystem,
    and yes, it's true and accurate.
    
    But we've been discussing using shred to erase whole disks.  That
    doesn't go through a file system, so shred really does get all the
    data.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Low Level Format



    Bob MillerSun Mar 27 23:05:06 PST 2005

    fleming.j at comcast.net wrote:
    
    > If someone really could do this why would they find it useful to do so?
    > And can linui read the info?
    
    When dinosaurs roamed the earth, it was not uncommon for a disk to
    develop new bad areas as it aged, so the low-level format was
    something end users did occasionally to find and remap those bad
    sectors.
    
    I remember doing this (and cow-orkers developing the diagnostics to do
    it) in the mid or late 1980s.  It was old tech even then.  I've seen
    SCSI drives with the ability to do a low-level format, but it's all
    handled in the drive controller -- the host just sends a FORMAT
    command, and the disk drive reads and writes itself for a couple of
    hours, then reports success or failure.
    
    > Q2) Does Powermax just diagnose disk integrity?
    
    I do not know.
    
    > Q3)Shred sounds excellent for removing all traces of previous files,
    > but 25X?, isn't that overkill?
    
    Maybe a little, but disk forensics are very good at finding traces of
    previous bit patterns on disks.  You can detect a slightly different
    voltage from a bit whose value has changed in the last few write
    cycles than one that has stayed constant through more write cycles.
    (Or at least, that's how I understand it.  I've never done it.)
    
    > Q4) I've heard it suggested that 4x through using the dd command to
    > write zeros through the mbr to the end of the drive is enough hide
    > sensitive old files, how true is that?
    
    See Q3. (-:
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Low Level Format



    T. Joseph CARTERSun Mar 27 22:52:52 PST 2005

    On Sun, Mar 27, 2005 at 10:53:41PM +0000, fleming.j at comcast.net wrote:
    > Q3)Shred sounds excellent for removing all traces of previous files, but 25X?, isn't that overkill?
    > 
    >  Q4) I've heard it suggested that 4x through using the dd command to write zeros through the mbr to the end of the drive is enough hide sensitive old files, 
    > how true is that?
    
    If your filesystem is reduntant or journals writes other than to file
    metadata (Ext3 does not do a full journal, only the metadata), shred won't
    work very well.
    
    Actually, writing zeros over the device once is sufficient unless you are
    going to actually take the drive apart.  If you're going to do that,
    writing zeros four times is still going to leave some residual trace of
    the former data.
    
    More paranoid erasures involve writing several alternating bit patterns
    over the media just to really foul things up.  For example, if you write
    over each byte with:
    
    0xff, 0x00, 0xff, 0x55, 0xaa, 0xff, 0x00
    
    you can be sure that the average attempt to read data straight off the
    platter will simply fail.
    
    Let's get more paranoid than that even:
    
    0xff, 0x00, 0x55, 0xaa, 0x55, 0xaa, 0x33, 0xcc, 0x33, 0xcc, 0xf0, 0x0f,
    0xf0, 0x0f, 0xe7, 0x18, 0xe7, 0x18, 0xc3, 0x3c, 0xc3, 0x3c, 0x7e, 0xe7,
    0x7e, 0xe7, 0xff, 0x00, 0xff, 0x00
    
    Then write something from /dev/urandom to that byte, and clear it back to
    0.  If someone can pull the original byte off the platter after that, I'd
    be fairly impressed.
    
  • [Eug-lug] Low Level Format



    Neil ParkerSun Mar 27 22:34:53 PST 2005

    John Fleming wrote,
    >Q3)Shred sounds excellent for removing all traces of previous files,
    >but 25X?, isn't that overkill?
    
    That depends on why you're erasing the drive.
    
    If all you want to do is get the previous owner's stuff off so you can use
    it yourself, then 25X is overkill.  Just re-fdisk, re-mkfs, mount, and
    have at it.
    
    If you're trying to destroy the Secret Plan so that They can't get Their
    evil fingers on it, then you definitely want all 25 rewrites, and maybe
    more if you're feeling especially paranoid.  If They really care about
    recovering your sensitive data, then They'll have access to sophisticated
    equipment to analyze the drive's platters and find the spots where your
    data slopped over the into the spaces between the tracks, and which a
    single rewrite-with-zeros pass won't fully erase.  The 25 rewrites are
    done with 25 different bit patterns, especially chosen to minimize the
    chance that leftover "slop" might be recoverable.
    
    If you're getting rid of a drive that might hold sensitive data, this kind
    of erasing is important even if you're not afraid that the NSA might be
    spying on you.  Hospitals, for example, probably have to do it to avoid
    HIPAA violations.  And then there's the story of a company that received a
    replacement drive from their hardware support vendor, and were horrified
    to discover that it already contained a copy of their own confidential
    product development database from a few months earlier (see Nemeth et al,
    "UNIX System Admistration Handbook"...the full story is on page 739 of the
    second edition).
    
    Obviously, the time to do this sort of thing is before you get rid of the
    drive...don't count on the recipient to do it for you.
    
    
    By the way, beware of the FAT filesystem.  If you use the above-mentioned
    re-fdisk-re-mkfs-mount procedure, the old data could suddenly spring back
    to life inside newly-created files.  The FAT filesystem doesn't support
    sparse files--if you create a new file and only write to its 100th block,
    then the previous 99 blocks still have to allocated and assigned to the
    file, and the operating system won't zero them out for you--if you look in
    them you'll find whatever data happened to be left over in those blocks.
    For the classic example of the kind of trouble this can cause, check out
    http://catless.ncl.ac.uk/Risks/11.56.html.  To prevent this, use a
    filesystem that supports sparse files (most true UNIX-style filesystems
    do), or if you must FAT, first use dd to zero out the partition (the WHOLE
    partition, not just the MBR).
    
    >Q4) I've heard it suggested that 4x through using the dd command
    >to write zeros through the mbr to the end of the drive is enough hide
    >sensitive old files,
    > how true is that?
    
    That's probably more than enough to guarantee that the drive's own
    read-write head won't be able to see the data anymore, and is probably
    sufficient if the data isn't very sensitive.
    
    However, a data recovery company, or the NSA, could probably still take
    the drive apart and puts its innards into their own equipment and recover
    lots of data from the inter-track slop.  If your data is sensitive enough
    that this worries you, then use the full 25X multiple-bit-pattern erase.
    
                 - Neil Parker