If your /usr and /bin mount points are not the ones that are messed up, I
have found that manually mounting them and doing this is faster for me
anyway then pulling out the ed cheat sheet..

After remounting root..

cat fstab | grep -v [disk you don't want] | grep -v [disk you don't want]
.... > fstab.new

i.e.
cat fstab | grep -v /dev/dasdq1 | grep -v /dev/dasdr1 > fstab.new

Then
mv fstab fstab.brok
mv fstab.new fstab

^D

my $.02



-----------------------------------
Jeremy Warren
Sr. Systems Programmer
KB Toy Stores
mailto:[EMAIL PROTECTED]@kbtoys.com





Rich Smrcina <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[EMAIL PROTECTED]>
05/06/2004 03:26 PM
Please respond to Linux on 390 Port


        To:     [EMAIL PROTECTED]
        cc:
        Subject:        Re: [LINUX-390] how to "vi" to regain a bad image...


This is a situation where 'ed' is your friend.  If you want something
more robust for these 'oops'es, check out UTS Global.  They have a full
screen 3270 editor (ned) that runs under Linux and is specifically
intended for this situration.

On Thu, 2004-05-06 at 14:14, Brian France wrote:
> People,
>     In playing around today with MDISKS, sharing between linux
instances,
> adding dasd to instances, I made a boo boo. I accidentally did a #cp
logoff
> and not a disc. So, I booted the instance but it comes back in a safe
mode
> due to me in the process of adding dasd to it, saying it can't mount the
> "new" dasd cause it might have a bad superblock. It tells me to repair
it
> manually and reboot. So I figure since I can log in as root, and change
> over to r/w mode, I'll just undo my changes, and start over. Well, vi,
> 3270, it's not pretty. SO, before I up and nuke this instance and start
> over, it made me curious if I was missing some way to repair it. I
figure
> sometime in the future I will probably need it to fix a production
> instance. Is there another way to edit, remove my changes, and reboot
the
> instance? THANX!!!!!
>
>
> Brian W. France
> Systems Engineer I
> Pennsylvania State University
> Administrative Information Services - Infrastructure/Sysarc
> Rm 25 Shields Bldg., University Park, Pa. 16802
> 814-863-4739
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
--
Rich Smrcina
Illustro Systems International
rsmrcina at illustro.com

Catch the WAVV!
Update your zSeries skills in 4 days.
WAVV 2005 in Colorado Springs, CO
May 20-24, 2005
For details see http://www.wavv.org

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390



----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to