LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2009, 01:12 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 30
vi not obeying line breaks OR relabel partitions


I just suffered a hard drive failure. I'm trying to partition a new drive and restore it from a tape back up (in single user mode). I partitioned the new drive using the install disk, but it labeled my partitions as :

da1s1d
da1s2e
da1s3f
da1s4g

Whereas my original configuration was:

da1s1d
da1s2d
da1s3d
da1s4d

I either need to edit the drive labels or edit the fstab file. Unfortunately, vi is not behaving properly. It refuses to obey line breaks and is just spitting all the text out in a row (including the command interface at the bottom). This makes it virtually unusable.

So can anyone either help me do one of the following:

1) get vi working right

2) edit the fstab or disk labels without vi

3) mount the new partitions despite the mismatched fstab/labels

Thanks, and I will greatly appreciate any quick responses off the tops of your heads (naturally I'm trying to get this server back up asap)
 
Old 01-02-2009, 01:31 PM   #2
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 30
I figured out why vi isn't displaying properly, but I don't know how to fix it. Basically, my TERM variable is not set to anything. I've tried setting it according to a few things I've found via Google, but so far no luck. vt100 doesn't fit the screen right and none of the others I've tried (con80x25 for example) are recognized.

The system is FreeBSD btw.
 
Old 01-02-2009, 01:38 PM   #3
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 30
Nevermind, figured it out!

TERM=cons25

...apparently works.
 
Old 01-02-2009, 01:43 PM   #4
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 30
Great :|

vi works, but the partitions aren't mounting as expected. sigh

EDIT:

But now that TERM is set, /stand/sysinstall works properly so I just redid the partitions.

Now I just need to dump the saved files from tape. Wish me luck.

By the way, one last question if anyone's caring: the files systems I'm restoring are /local /scratch /soft and /var

If I haven't installed any new software since the back up, am I going to miss any changes made in these file systems when I restore? All user home directories and mail are in different drives.

Last edited by davidstvz; 01-02-2009 at 01:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Processor That Finds/Replaces Undisplayed Characters (like Line Breaks)? Teasdale Linux - Software 11 01-31-2008 10:09 AM
Line breaks aren't interpreted when defining a variable spiffytech Linux - Software 4 12-27-2005 04:08 PM
Need REG EXP Help to remove line breaks webshark Programming 18 07-08-2005 05:31 PM
Line breaks in html with perl script BroX Programming 18 01-10-2005 10:07 AM
evo- mail text format is screwy - weird line breaks, etc seanb Linux - Software 0 03-21-2004 05:08 PM


All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration