Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 31
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 :


Whereas my original configuration was:


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, 12:31 PM   #2
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
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, 12:38 PM   #3
Registered: Jun 2008
Posts: 405

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


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

Original Poster
Rep: Reputation: 31
Great :|

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


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 12:49 PM.


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 09:09 AM
Line breaks aren't interpreted when defining a variable spiffytech Linux - Software 4 12-27-2005 03:08 PM
Need REG EXP Help to remove line breaks webshark Programming 18 07-08-2005 04:31 PM
Line breaks in html with perl script BroX Programming 18 01-10-2005 09:07 AM
evo- mail text format is screwy - weird line breaks, etc seanb Linux - Software 0 03-21-2004 04:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 PM.

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