euglug.org

[작성자:] admin

  • [Eug-lug] To dd or not to dd that is the question.



    Timothy BolzFri Sep 24 22:03:21 PDT 2004

    It's an XP system.  We got into it by using a 98 disk.  We tried the 
    recommended windows XP boot disk and it gave an error.  Couldn't find 
    hal.dll.  We copied a new hal.dll and still the same error.  I laugh when he 
    says you can't copy a file. He's thinking as in a windows mind thought. So 
    he's doing the copy method.  I thought dd or the programs below might work.  
    I found this I'm going to try.
    http://www.sysresccd.org/
    
    Tim
    
    On Friday 24 September 2004 11:36 pm, you wrote:
    > Winders 98 is an easy fix. Boot the 98 CD, start computer with
    > CDROM support, get to a prompt. Hit C:, type 'dir' and see if
    > all the Windoze stuff is there. Then copy the 98 cab files to
    > the HD. From C:\ type md WIN98, cd win98, copy E(F,G,
    > whatever):\win98, setup /is , pull the CD and watch it fix
    > itself. Then have him try Yoper. It's small, simple, and a very
    > friendly user base. He may also be interested in Lycoris. Got a
    > customer who was sick enough of Winblows to go it his own route
    > and has been enjoying it. Loves to overhear people in the store
    > complain about virii and adware/spyware.
    >
    > --- Timothy Bolz <bolzt at efn.org> wrote:
    > > I have a friend who's on and off again with Linux.  He has a
    > > dual boot
    > > system.  He's tried Red Hat, Mandrake, Debian, and Gentoo.  He
    > > likes
    > > Mandrake.  Well He installed Red Hat Fedora Core 2 and tried
    > > to get back into
    > > windows and it wouldn't allow him to.  Well normally you would
    > > run a dos
    > > fdisk /mbr but it still wouldn't boot.  One of his files must
    > > have been
    > > corrupted.  Well he used fixmbr and I think he really messed
    > > it up.  We have
    > > since then made a windows boot disk.  And it say it needs a
    > > hal.dll which is
    > > there.  He is thinking it's Linux that messed up his system.
    > > I don't think
    > > so.  I think he messed it up when he ran fixmbr.  The damage
    > > is done he wants
    > > to retrieve the files, which we can see from a windows 98
    > > bootable disk.  So
    > > he is going to copy the 35 Gig to a 40 Gig and then try
    > > rebooting.  Since we
    > > think it's a MBR problem now.
    >
    > _______________________________
    > Do you Yahoo!?
    > Declare Yourself - Register online to vote today!
    > http://vote.yahoo.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    
  • [Eug-lug] To dd or not to dd that is the question.



    Mr OFri Sep 24 21:36:16 PDT 2004

    Winders 98 is an easy fix. Boot the 98 CD, start computer with
    CDROM support, get to a prompt. Hit C:, type 'dir' and see if
    all the Windoze stuff is there. Then copy the 98 cab files to
    the HD. From C:\ type md WIN98, cd win98, copy E(F,G,
    whatever):\win98, setup /is , pull the CD and watch it fix
    itself. Then have him try Yoper. It's small, simple, and a very
    friendly user base. He may also be interested in Lycoris. Got a
    customer who was sick enough of Winblows to go it his own route
    and has been enjoying it. Loves to overhear people in the store
    complain about virii and adware/spyware.
    
    
    
    
    --- Timothy Bolz <bolzt at efn.org> wrote:
    
    > I have a friend who's on and off again with Linux.  He has a
    > dual boot 
    > system.  He's tried Red Hat, Mandrake, Debian, and Gentoo.  He
    > likes 
    > Mandrake.  Well He installed Red Hat Fedora Core 2 and tried
    > to get back into 
    > windows and it wouldn't allow him to.  Well normally you would
    > run a dos 
    > fdisk /mbr but it still wouldn't boot.  One of his files must
    > have been 
    > corrupted.  Well he used fixmbr and I think he really messed
    > it up.  We have 
    > since then made a windows boot disk.  And it say it needs a
    > hal.dll which is 
    > there.  He is thinking it's Linux that messed up his system. 
    > I don't think 
    > so.  I think he messed it up when he ran fixmbr.  The damage
    > is done he wants 
    > to retrieve the files, which we can see from a windows 98
    > bootable disk.  So 
    > he is going to copy the 35 Gig to a 40 Gig and then try
    > rebooting.  Since we 
    > think it's a MBR problem now.  
    
    
    
    		
    _______________________________
    Do you Yahoo!?
    Declare Yourself - Register online to vote today!
    http://vote.yahoo.com
    
  • [Eug-lug] To dd or not to dd that is the question.



    Timothy BolzFri Sep 24 21:23:52 PDT 2004

    I have a friend who's on and off again with Linux.  He has a dual boot 
    system.  He's tried Red Hat, Mandrake, Debian, and Gentoo.  He likes 
    Mandrake.  Well He installed Red Hat Fedora Core 2 and tried to get back into 
    windows and it wouldn't allow him to.  Well normally you would run a dos 
    fdisk /mbr but it still wouldn't boot.  One of his files must have been 
    corrupted.  Well he used fixmbr and I think he really messed it up.  We have 
    since then made a windows boot disk.  And it say it needs a hal.dll which is 
    there.  He is thinking it's Linux that messed up his system.  I don't think 
    so.  I think he messed it up when he ran fixmbr.  The damage is done he wants 
    to retrieve the files, which we can see from a windows 98 bootable disk.  So 
    he is going to copy the 35 Gig to a 40 Gig and then try rebooting.  Since we 
    think it's a MBR problem now.  
    
    I know dd can do it but I don't know how to do the whole drive.  I think it 
    would be dd if=/dev/hda1/* of=/dev/hdxx/* .  would this be the best method to 
    do this or not. or is there a better method.  I was looking at these programs.
    http://www.feyrer.de/g4u/
    http://www.partimage.org/
    https://sourceforge.net/projects/g4l
    
    Suggestions.
    
    Tim
    
  • [Eug-lug] Text file



    Bob CrandellFri Sep 24 16:18:49 PDT 2004

    NOW THAT'S WHAT I'M TALKING ABOUT!
    
    Sorry.
    
    Bob Miller (kbob at jogger-egg.com) wrote:
    >
    > Bob Crandell wrote:
    >
    > > The script:
    > > USERLIST=/mylist.txt
    > >
    > > for NAME in $[USERLIST] ; do
    > >    echo "$NAME to do."
    > > done
    > >
    > > BTW thanks for all the help that flows through this list.
    >
    > You need to use the contents of mylist.txt, not the name.
    > Change the first line to this.
    >
    > 	USERLIST="`cat /mylist.txt`"
    >
    > Those are backquotes inside double quotes.
    >
    > Or use the neologism $(...) like this.
    >
    > 	USERLIST="$(cat /mylist.txt)"
    >
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    
    --
    Bob Crandell, CNS
    Assured Computing, Inc.
    When you need to be sure.
    http://www.assuredcomp.com/
    P.O. Box 40814
    Eugene, OR 97404
    Voice - 541-868-0331
    FAX - 541-463-1627
    
    
    
  • [Eug-lug] Text file



    Bob CrandellFri Sep 24 16:15:48 PDT 2004

    The for, echo, done snipet echos the contents of each line in mylist.txt.  At
    least it should.  All I get is "/mylist.txt to do."  without the quotes of
    course.
    
    Russ Johnson (russj at dimstar.net) wrote:
    >
    > Bob Crandell wrote:
    >
    > >Hi,
    > >
    > >I'm trying to process the contents of a text file in a bash script.  There is
    > >a part of this I'm just not getting.
    > >
    > >The script:
    > >USERLIST=/mylist.txt
    > >
    > >for NAME in $[USERLIST] ; do
    > >   echo "$NAME to do."
    > >done
    > >
    > What are you wanting to do, and what happens when you do what you are doing?
    >
    > Russ
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    
    --
    Bob Crandell, CNS
    Assured Computing, Inc.
    When you need to be sure.
    http://www.assuredcomp.com/
    P.O. Box 40814
    Eugene, OR 97404
    Voice - 541-868-0331
    FAX - 541-463-1627
    
    
    
  • Resolved: [Eug-lug] Dell Service?



    John SechrestFri Sep 24 15:15:39 PDT 2004

    Ralph is right. And you can set the Blocksize to 64K or 1M
    and make it go really fast. 
    
    And if you are trying to edit things in various ways, 
    dd also can do seeking.
    
    I use it to create a UML file system:
    
    
    dd if=/dev/zero of=$IMAGEDIR/$hostname seek=$tempsize count=1 bs=1M > /dev/null
    /sbin/mkfs.ext2 -F $IMAGEDIR/$hostname > /dev/null
    
    
    
    
    
    running image:
    
    devfs=mount ubd0=/gridvern/projects/r1/images/r1 eth0=daemon,fe:fd:0:0:86:27,unix,/tmp/my-global ubd1=/home/uml/KNOPPIX_V3.6-2004-08-16-EN.iso mem=64M umid=r1 uml_dir=/gridvern/projects/r1/uml_dir/r1
    
    
    root     27998  0.0  1.2 66808 6680 pts/3    S    16:39   0:00 linux (r1) [-bash]                                                                                                                                                                                                                                                    devfs=mount ubd0=/gridvern/projects/r1/images/r1 eth0=daemon,fe:fd:0:0:11:6c,unix,/tmp/my-global ubd1=/home/uml/KNOPPIX_V3.6-2004-08-16-EN.iso mem=64M umid=r1 uml_dir=/gridvern/projects/r1/uml_dir/r1
    
    
    
    Ralph Zeller <ralph at zellercpa.com> writes:
    
     % On 09/24/04 12pm, Allen Brown wrote:
     % > On Mon, 20 Sep 2004, Jason Van Cleve wrote:
     % > 
     % > > were only $6 or $7 each).  Once I discovered the right options for dd, I
     % > > was able to copy those sensitive Windows and Dell partitions, but it
     % > > took a long time, maybe because that old disk is going bad.  For my
     % > > linux partitions, in retrospect, I can't help thinking a cp or tar would
     % > > have been a lot faster than dd, if not safer too.
     % > 
     % > That could be an interesting experiment.  In some ways dd should
     % > be much faster since it doesn't go chasing all around the partition
     % > for the data.  Few seeks, which are slow.  And dd should also make
     % > best use of read-ahead and the disk-local RAM buffer.  But if your
     % > partition is only lightly filled, it may be that cp or tar would be
     % > faster.
     % 
     % dd is lots faster using a larger block size instead of 512 bytes.  It
     % defaults to a size that's "optimized" for reading and writing floppies.
     % 
     % 
     % _______________________________________________
     % EUGLUG mailing list
     % euglug at euglug.org
     % http://www.euglug.org/mailman/listinfo/euglug
    
    -----
    John Sechrest          .         Helping people use
                            .           computers and the Internet
                              .            more effectively
                                 .                      
                                     .       Internet: sechrest at peak.org
                                          .   
                                                  . http://www.peak.org/~sechrest
    
  • [Eug-lug] Text file



    Bob MillerFri Sep 24 14:17:00 PDT 2004

    Bob Crandell wrote:
    
    > The script:
    > USERLIST=/mylist.txt
    > 
    > for NAME in $[USERLIST] ; do
    >    echo "$NAME to do."
    > done
    > 
    > BTW thanks for all the help that flows through this list.
    
    You need to use the contents of mylist.txt, not the name.
    Change the first line to this.
    
    	USERLIST="`cat /mylist.txt`"
    
    Those are backquotes inside double quotes.
    
    Or use the neologism $(...) like this.
    
    	USERLIST="$(cat /mylist.txt)"
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • Resolved: [Eug-lug] Dell Service?



    Ralph ZellerFri Sep 24 14:13:43 PDT 2004

    On 09/24/04 12pm, Allen Brown wrote:
    > On Mon, 20 Sep 2004, Jason Van Cleve wrote:
    > 
    > > were only $6 or $7 each).  Once I discovered the right options for dd, I
    > > was able to copy those sensitive Windows and Dell partitions, but it
    > > took a long time, maybe because that old disk is going bad.  For my
    > > linux partitions, in retrospect, I can't help thinking a cp or tar would
    > > have been a lot faster than dd, if not safer too.
    > 
    > That could be an interesting experiment.  In some ways dd should
    > be much faster since it doesn't go chasing all around the partition
    > for the data.  Few seeks, which are slow.  And dd should also make
    > best use of read-ahead and the disk-local RAM buffer.  But if your
    > partition is only lightly filled, it may be that cp or tar would be
    > faster.
    
    dd is lots faster using a larger block size instead of 512 bytes.  It
    defaults to a size that's "optimized" for reading and writing floppies.
    
    
    
  • [Eug-lug] Text file



    Russ JohnsonFri Sep 24 14:11:41 PDT 2004

    Bob Crandell wrote:
    
    >Hi,
    >
    >I'm trying to process the contents of a text file in a bash script.  There is
    >a part of this I'm just not getting.
    >
    >The script:
    >USERLIST=/mylist.txt
    >
    >for NAME in $[USERLIST] ; do
    >   echo "$NAME to do."
    >done
    >
    What are you wanting to do, and what happens when you do what you are doing?
    
    Russ
    
  • [Eug-lug] Text file



    Bob CrandellFri Sep 24 13:53:23 PDT 2004

    Hi,
    
    I'm trying to process the contents of a text file in a bash script.  There is
    a part of this I'm just not getting.
    
    The script:
    USERLIST=/mylist.txt
    
    for NAME in $[USERLIST] ; do
       echo "$NAME to do."
    done
    
    BTW thanks for all the help that flows through this list.
    
    --
    Bob Crandell, CNS
    Assured Computing, Inc.
    When you need to be sure.
    http://www.assuredcomp.com/
    P.O. Box 40814
    Eugene, OR 97404
    Voice - 541-868-0331
    FAX - 541-463-1627