General :: Can't Login After "accidentally Overzealous" Cleanup
Jun 9, 2011
I'm new here, hope to not be obnoxious... I've been using linux systems for a long time (work in science), but have only minimal experience as administrator. And today, following insomnia, I found myself typing (as root):
Code: yum remove `package-cleanup --leaves` I am not usually quite so stupid... (I had intended to upgrade from fedora 12 to 15) But now I can't login at all (either as the normal user or root), though the machine seems to boot properly. Currently I'm using a live distro on a usb key. Can this be undone?
okay, I've gotten a bit overzealous and now my file system is getting a bit full. I found some candidates that may need to move out, just, are they still needed elsewhere?I'd use Quote:pacman -Sr simgear...but what is that stuff is needed elsewhere?
Following bad instructions too fast to reset the default keyring password I deleted the file .gnome2/login.keyring ! I can still login and get to a terminal and do instructions from there. I can also still login with root and a guest account. But my desktop is just blank and I can't, even as a root, access my files.
I have installed Ubuntu 10.04 on a Dell Inspiron 1300 laptop. After installing many apps and finding I didn't need some, I did some cleanup. I must've cleaned too much because now Ubuntu won't boot. On boot, I see the Ubuntu logo with the five dots under it. The dots change color as if something is in progress, but it won''t get beyond that. I am relatively new to Ubuntu and I want to stay with it because it's an excellent system. I have worked extensively with Unix in the past but not with a GUI front-end.
I am in a situation where I am stuck with a LVM cleanup process. Although I know a lot about AIX LVM , but this is first time I am working with Linux LVM2. Problem is that I created two RAID arrays on storage, which appeared as mpath0 & mpath1 devices (multipath) on RHEL. I created logical volumes and volume groups and every thing was fine till I decided to clean the storage arrays and ran following script:
#!/bin/sh cat /scripts/numbers | while read numbers do lvremove -f /dev/vg$numbers/lv_vg$numbers vgremove -f vg$numbers pvremove -f /dev/mapper/mpath$numbersp1 done
Please note that numbers was a file in same directory, having numbers 1 and 2 in separate line. Scripts worked well and i was able to delete definitions properly (however I now think I missed one parted command to remove the partition definition from mpath device. When I created three new arrays, I got devices from mpath2 to mpath5 on linux and then I created vg0 to vg2. By mistake, I ran above script again for cleanup purpose and now I got following error message
Cant remove physical volume /dev/mapper/mpath2p1 of volume group vg0 without ff[/B]
Now after doing mind search, I now realize that I have messed up (particularly because mpath devices did not map in sequence to vg devices and mapping was like mpath2 --- to ---- vg0 and onwards). Now how I can cleanup the lvm definitions? should i go for pvremove -ff flag or investigate further? I am not concerned about data, I just want to cleanup these pv/vg/lv/mpath definations so that lvm can be cleaned up properly and I can start over with new raid arrays from storage?
I have a problem that is probably simple, but have not yet found the answer on any forums or by Googling. First my system specs:Tyan 2610 motherboard w/ 2 x PIII 9334 gig PC133 SDRAM 1 x 5 gig hd (system)4 x 500 gig hds w/ 3Ware 7500 controller set to RAID 5, (1.5 TB) mounted as /homeCentOS 5.3 running my smb and nfs mountsMy problem is that I have run out of space on my / (root) file system, (the 5 gig). Since I am planing to rebuild my file server with larger hard drives, (2 x's 60 gig SATA's set to RAID 1, 6 x's 1.5 TB at RAID 5), within the next 2 months, I would like to try to clean out any unneeded crap rather than adding a hard drive and expanding my root file system. I have done the following:
Removed old unused kernels cleaned up /var/log/ cleaned up /tmp
When doing an install of Linux Mint, I accidentally installed on a partition that already had data on it, so now that partition has a clean install of Mint instead of the data that was there before.I was hoping that I could at least recover some of the data from this partition, so my questions would be what, if anything, could I recover, and how would I go about doing that?
I have a dual boot system - vista & fedora.I was cleaning my hard disk drive, using a partition manager for windows.I moved the swap partition without much thinking about the consequences - and now I can't boot into fedora. It gives the following error mount: error mounting /dev/root on /sysroot as ext3 No such file or directory.
A Microsoft anti virus program (Security Essentials) cleaned out a bunch of problems in Windows XP and now I don't have the double boot option any more. What do I change to get Ubuntu option back? OH, I also had to do a checkpoint restore prior to that but it was after I had installed Ubunto (I think). Which leads me to ask....how do I identify the Ubuntu disk space I allocated at install time? I can't seem to find it.
i installed many security programs as a switching from windows guy and decided to get rid of them last night. I uninstalledgufw, clamav(and all based packages), firestarterusing synapticbefore i rebooted the system the internet was well and working. but after i rebooted i had no internet access;firefox couldn't retrieve, update manager and apt-get couldn't connect.the computer knows it's connected to the router i see the connection established sign but I can't even connect to the router by typing "192.168.2.1".the computer can ping itself(127.0.0.1) but can't ping itself in the network (the dhcp address is 192.168.2.3) and replies "operation denied" or something like that.I rebooted using live-cd and connected with no problems; the my internet connection is fineany thoughts will be appreciated P.S.: I did a fast check on the forums and couldn't find anything related; i didn't check thoroughly though.
Have Ubuntu & it was working well, but has become slow, 'greys out' on me regularly - eg. pic loses colour & nothing will respond for a few or more seconds. Also 'Ubuntu Software Centre' & "Synaptic' thingy come up with errors, saying can't install or uninstall progs. Although it seems they may do it OK despite saying they can't. Have Computer Janitor installed, but this is no longer working at all. So... is there a program or such that I can use to test/clean out the system?? For that matter, is there a program for testing hardware, as I'm not sure if it's an indication of unhealthy hard drive or such?
Is there an alternate tar package for Ubuntu that supports sockets and such? I know there is in Slackware, which I use when I'm doing stuff on Slackware.
I'm running Mac OS X 10.5.8. I was recently uninstalling mysql5 from /opt/local/bin.I typed:rm -rf /opt/local/bin mysql*instead ofrm -rf /opt/local/bin/mysql*This deleted my entire /opt/local/bin directory which puts me in a bit of a bind.Is there any way to recover those files? If not, I have a friend that is using a similar set of programs, would it be possible to use the contents of his folderIf I end up needing to reinstall everything in this folder, what is the best way to go about doing this?
I inadvertently upgrade to Ubuntu 10.10 developmental while trying to upgrade to Ubuntu 10.04.1. Can anyone can in downgrading back to a stable release without having to reformat everything?
I recently upgraded two servers to F10 from F9 and one of them is having an issue where package-cleanup is showing 13 packages which are incorrectly orphaned (no longer in the repo). Has anyone seen this before and know how to resolve this? Is it simply because the packages are listed in the repo as "fc10" vs "fc9"?
This machine has UBUNTU & wINDOWS XP. I'm currently logged into UBUNTU. I was just checking the features of GParted and accidentally clicked Device > Create Partition Table. A default MS-DOS partition table is created. Now if I re-start the Gparted there is nothing. Its showing entire disk as UNALLOCATED space.
Lucky thing is All the drives (C:, D:, E:) are currently mounted and I'm in UBUNTU. I guess its possible to re-create the partition table using current status. how to do this. This is a lab computer. If its not recoverable. I'm completely screwed!
I ran mv -n /desktop /user/local/bin and as a result everything on my desktop is gone. I tried the opposite mv -n /user/local/bin /desktop in the hopes of undoing it but now only one of those directories will exist at one time. What should I do? How badly did I screw things up?
I was gonna install OpenBSD 4.6 on my PC and I accidentally overwrote my boot partition.
Initially my partition table looked something like this:
Quote:
This doesn't look like a partition table
Probably you selected the wrong device.
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
That's what my partition table looks like according to fdisk. So I'm wondering how I'd go about recovering /dev/sda3 (what /dev/sda3 was before I blew it up).
Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen session, so my current solution is to just log out and then log back in, and since it can go 100X faster when I'm logged out, it'll finish in the short time it takes me to type my password in again. Is there a better way? Either involving the fact I'm in a screen session? Or a way to do this within SSH? What doesn't work: detaching from the screen session (doesn't respond until file is done outputting) trying command to move to a different window in the screen session (also doesn't respond) typing ctrl+C to kill cat command (also doesn't respond, probably because the command is done and the buffers just have to catch up).
Installed 11.4 on friend's Vista box in multiboot. Inserted the DVD while running Vista, got the option to install locally from w/in Windows, thought "I've never done it this way before, why not?"Part way thru the install setup, the system froze, power button time.On reboot, got a grub-like DOS looking screen with a title bar that says "Windows Boot Manager" -- the screen gives the choice ofWindows VistaopenSUSE 11.4 installer (local)I chose the 11.4 install, and everything worked ok, the system is now up and running.However, upon each boot, I first get the normal grub screen; if 11.4 is chosen, no probs, but when Windows is chosen, I get the same Windows Boot Manager dos screen as above, asking which OS you want, Windows or openSUSE 11.4 installer.
Would like to eliminate the Windows Boot Manager screen.Aside 1: I assume the openSUSE folder in Windows C is expendable?Aside 2: Both 11.4 installs I have done so far have resulted in the Iggy splash screen being vertically fragmented. No big problem with that, just wondering if it's a sign of other trouble?
I have no idea what happened to my OS(ubuntu10.04).it doesn't give me any option to enter my login name & passwd.i just get a blank(default) login screen.last time when it worked,i was trying to install GTK+2.8,but due to my mistake i deleted glib using cmd (sudo apt-get purge glib)and after that i even tried to launch terminal but it failed to launch.also tried to play media files using vlc but it didn't work.so i tried to restart my os and finally got stuck in the problem.i have no idea what to do,please help.Is there any cmd to see what problem occurred or which package is missing.