Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-08-2003, 06:48 PM
|
#1
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Rep:
|
In search of a real (partitioning) GURU
I have what seems to me a rather strange problem: a Linux system that acts like Windows.
I have two harddrives: one dedicated to RH9 Linux, and the other to Windows 2000. I decided today that my win2k partition, which had until that point been a monolithic 80GB on my primary harddrive, needed to be shrunk down a bit. So I did. I booted Windows, ran Partition Magic, and trimmed about 50GB from it.
That's when things began to get weird.
I rebooted my computer back into windows to let it reset itself and whatnot - it did its thing, and everything seemed to go without a hitch. So, naturally, I shut that bitch down and rebooted back to Linux. It got all the way to the (graphical) login screen before things took a turn for the worst. I entered my screen name and password, hit enter, and immediately an error message appeared saying something to the effect: "your x-session lasted less than 10 seconds; this may be due to lack of disk space..." etc (if anyone is interested in this problem and needs that message verbatim, I'll get it). It suggested that I log on in failsafe mode, so I did. I checked all my partitions - the files are all right where I left them, and are perfectly accessible.
So, I log out, and try to log on, this time expressly saying I want to log into my GNOME desktop (that's the default). It loads, if you can call it that; the display is way funky, reminiscent of the times that I've had my windows desktop set to a resolution it didn't like. In addition, big red X's start popping up on my desktop - they look like retarded error messages (try to imagine Sean Penn in "I Am Sam" saying - passionately - "something's wrong!" but having no idea how to articulate it). The little GNOME-ish foot is visible in the upper left of the screen, which I click, but only to be greeted by more truncated offerings. So I hit the restart button.
You may now be asking how it is that I'm writing this very, very long message, if my standard desktop is the total wasteland I say it is. Well, that's the really odd thing: I'm in KDE space now. For some strange, unfathomable reason, my computer will now boot - intelligibly - just into KDE, and not GNOME. It still isn't an entirely clean boot, however: two error messages appear each time I logon. One mentions a problem with the rhn, which I couldn't care less about, since there's no way in hell I'd ever pay for a service I can do myself with a bit more effort, and the other... well, I actually forgot what the other was :-/.
There was also a mention, when trying to log onto my "last session" of an error log entitled .xsession-errors which was, upon further investigation, entirely empty.
At any rate, and without any pretensions of making a long story short, is there ANYONE out there who has ANY idea how to go about getting my old GNOME desktop back? The only option I can now imagine is a windows-inspired one: reinstall my OS, and hope for the best.
|
|
|
08-08-2003, 07:07 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
If I understand you correctly you had two hard disks, each with a single partition. You changed the partition size of one disk from 80GB to 30GB. Then you began having problems with the other drive. Do I understand you correctly?
Also, what did you do with the 50GB you freed up?
Perhaps you could post your /etc/fstab for both before and after the partition change.
Last edited by jailbait; 08-08-2003 at 07:08 PM.
|
|
|
08-08-2003, 07:19 PM
|
#3
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Original Poster
Rep:
|
Quote:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/win2k ntfs auto,ro,umask=002 0 0
/dev/hdb5 /multimedia ext3 defaults 1 1
/dev/hdb6 /stuff ext3 defaults 1 1
|
I haven't changed the fstab since before my last partition.
To clarify: I have 2 hdd's, yes, each with a total size of 80GB. On my primary hdd was my win2k partition, which I resized from 80-30GB (it is the one mounted on /mnt/win2k) - I have yet to do anything with the 50GB of free space.
On my secondary ("slave") hdd are 6 partitions: 3 primary (boot, root, and swap), and an extended that holds 2 logical partitions (/multimedia, and /stuff). /multimedia and /stuff each hold information that had recently been transferred from my /mnt/win2k partition, in anticipation of reducing that partition's size. All those files are still readable.
|
|
|
08-08-2003, 07:40 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Rep:
|
did you defrag your 80GB drive b4 you repartitioned it? i don't know how repartitioning would affect your slave drive, but i wonder are you booting with Grub/LILO from the windows MBR?
|
|
|
08-08-2003, 07:54 PM
|
#5
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
Is it possible that the / partition was damaged when you created /multimedia, and /stuff? That seems much more likely than / being damaged when you changed /dev/hda1.
Also did you change your bootloader and part of your bootloader resides on /dev/hdb? If so, it is possible that an error in setting up your bootloader overwrote part of the /dev/hdb partition table.
Last edited by jailbait; 08-08-2003 at 07:57 PM.
|
|
|
08-09-2003, 12:37 AM
|
#6
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Original Poster
Rep:
|
In order:
I did not defrag my primary hdd (/dev/hda) before this last partition *shakes head in embarrassment*, but I did defrag it within this past 2-3 weeks, so it ought to have been more or less ok in that regard.
I use GRUB - it's on my slave drive, right at the beginning, where the Red Hat install prog put it.
/multimedia was created several days ago, and my computer has been through a number of reboots since.
/stuff was indeed created the same day that the fateful repartitioning took place - however, I did reboot afterward, to make sure my /etc/fstab entry worked properly, and it did.
I've not adjusted my bootloader in anyway since I installed Red Hat a month ago. As I mentioned earlier, my /boot partition is on /dev/hdb - although I admit ignorance as to how precisely that works.
I do wonder if Partition Magic, the prog I used to resize my win2k partition, updated my partition table in some indefinable way; when I loaded the program in windows, it initially sent an error message saying that two values which were supposed to be in sync, regarding my Linux partitions, were not, and it could change them... being a windows prog, however, I chose not to let it do that - my mistake to use it to do anything at all, apparently.
I do want to reiterate, though, that, as odd as it sounds, all my files are still accessible, provided I access them through a KDE desktop. Somehow, whatever I did has only caused problems loading my default, GNOME desktop - although it may be that I'll discover more and deeper problems soon. I happen to be at my mother's house for the weekend however, without direct access to my computer, so I won't be able to test it as I might otherwise like to.
Are there any config files I might want to look at? Is there a way to check the stability of the bootloader? Do I even have any idea of what the right questions are to ask...?
|
|
|
08-09-2003, 02:30 AM
|
#7
|
LQ Newbie
Registered: Aug 2003
Location: Brisbane, Queensland
Distribution: SuSe 8.2
Posts: 9
Rep:
|
I had a similar experience. I've no idea what caused it, but I could get into KDE perfectly, but not Gnome. To correct it, after tearing my hair out for a few hours, was to create another "dummy" user. Logged in to that "user", made sure I could access Gnome, and then checked the .config files at the "dummy" home, copying them to a floppy.
I then booted into my real user (in KDE which still worked after a fashion), opened the floppy and compared the various config files. Somewhere along the way, my PATH in .profile had been altered, and a few other files.
I restored them to what was in the "dummy" users home, rebooted, and I got Gnome and my original PATH back.
Now this was a weird way to fix things, and did not address the real problem of why I had lost Gnome etc. But everything is working again.
|
|
|
08-09-2003, 05:29 AM
|
#8
|
Member
Registered: Feb 2002
Location: Leeds UK
Distribution: Fedora Core 3
Posts: 67
Rep:
|
What have you got from /var/log/messages?
|
|
|
08-09-2003, 09:06 AM
|
#9
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Original Poster
Rep:
|
yeateg, that sounds like it's worth a shot - could you tell me what config files I should be looking for? Every day it seems like I discover a next configurable text file, and always feel like there's more I don't know.
|
|
|
08-09-2003, 11:12 AM
|
#10
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
One way to fix gnome is to reinitialize it. You delete the directory /home/user/gnome. Then the next time you log into gnome it acts like it is the first login after an install. gnome creates a new gnome configurtion with all of the default settings. The disadvantage of this is that you lose all of your old settings and have to reconfigure the default gnome settings to your preference.
You could check out .gnome from within KDE. Compare the /home/user/.gnome tree with the /root/.gnome tree.
|
|
|
08-10-2003, 10:17 PM
|
#11
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Original Poster
Rep:
|
Well. In the end - and a good thing I hadn't started drinking yet, for I was about to reinstall RH9 entirely - all I ended up having to do was create a new user, and login from there. I tried several previous suggestions, including deleting my home directory so it would reinitialize *shudder* - thank god I backed that up first - but nothing else worked.
Onto a more esoteric question: why the hell would repartitioning my primary hdd have the negative effect - and the sole negative effect, thus far - of preventing me from logging on as what had been my default user? I could logon as root, I could log on to KDE, I could do the "failsafe" logon right to bash - but, I couldn't log on as my default. *shakes head slowly* ....
|
|
|
08-10-2003, 10:39 PM
|
#12
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
" tried several previous suggestions, including deleting my home directory so it would reinitialize *shudder* - thank god I backed that up first - but nothing else worked."
I didn't suggest that you delete your home directory. I suggested that you delete the directory named /home/user/.gnome.
Actually creating a new user has the same effect only with more work on your part.
|
|
|
08-10-2003, 11:11 PM
|
#13
|
Member
Registered: Jul 2003
Location: Lancaster, Pa
Distribution: Red Hat 9.0
Posts: 46
Original Poster
Rep:
|
Ah, well *scratches head*... good point.
It actually wasn't all that much extra effort, but I appreciate your advice, nonetheless. I'll buy you a beer if you're ever in Lancaster.
|
|
|
08-11-2003, 12:48 PM
|
#14
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
"I'll buy you a beer if you're ever in Lancaster."
Sure 
|
|
|
All times are GMT -5. The time now is 12:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|