Solved

Linux noob crashes his X...

Posted on 2004-04-08
8
239 Views
Last Modified: 2010-04-20
I have a Redhat 9 VMware install, when I tried to add more disk space I can no longer startx.  It tries to load the login screen but then crashes back to command, over and over.  I didn't see a way to increase the size of the existing virtual disk (would like to know if possible) so I tried adding a second virtual disk.  What do I need to do now?  I'm just learning, step by step would be much appreciated, thanks.
0
Comment
Question by:Popeyediceclay
  • 4
  • 4
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10788979
What, exactly, did you do in the process of adding a second virtual disk?
0
 
LVL 3

Author Comment

by:Popeyediceclay
ID: 10790950
Just that, from VMware all I had to do was pick a size and make it available.  I figured once I booted it up i would be able to format it and mount it.  The problem with X-Windows turned out to be a disply issue, I reinstalled the tools and now it's fine.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10791140
Right, just adding a virutal disk to VMware wouldn't have anything to do with the X problem. I was concerned that you might have already mounted the disk on Linux and moved some stuff to it, which if not done properly has the potential to mess up X if the move affects /tmp. /usr, or /home.
0
 
LVL 3

Author Comment

by:Popeyediceclay
ID: 10791407
So what do I do with the disk now?  I imagine I need to mount and format sdb to some directory in the root?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 40

Expert Comment

by:jlevie
ID: 10791598
At the moment it is just a raw disk as far as Linux is concerned. You'll need to use fdisk to create one or more partitions on the disk, and then use mke2fs to create a file system on the new partition(s). When that's complete you create a mount point (mkdir /mount-point) and mount it.
0
 
LVL 3

Author Comment

by:Popeyediceclay
ID: 10793564
Cool, I got it.  Lastly, can I make Redhat automount this at startup?  I added this line to fstab:

/dev/sdb                     /data

Will that work or did I just set it up to crash?
0
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 10793653
That entry isn't complete and should look like:

/dev/sdb1           /data          ext3   defaults     1 2

assuming that you've made an ext3 file system on the first partition.
0
 
LVL 3

Author Comment

by:Popeyediceclay
ID: 10793673
I assume I made it ext3 too :) , thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now