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 09-25-2009, 02:26 PM   #1
RJGularte
LQ Newbie
 
Registered: Apr 2009
Location: Davis, CA
Distribution: Debian Lenny /former opensuse
Posts: 5

Rep: Reputation: 0
Accidental Upgrade


I wanted to install new themes on my Debian Lenny OS. I added the debian/sid repository to my /etc/apt/sources.list and when I added the package the dependencies were off and could not install the package. This was all fine, BUT, when aside of that package, when update manager checked the repositories for upgrades, it wanted to upgrade ALL of the packages installed from Lenny to sid. Since the sid repository contains the latest version, the update manager downloaded all the packages and saturated my root partition to the point I can't even save the /etc/apt/sources.list to remove that repository.

I would like to know what can I do to recover my root partition and get my debian to the default installation, without re-installing the OS.

I'm running Debian Lenny 5.0.2 on a Dell Vostro 1310. The computer is dual booting with Windows Vista Bussiness.

Many thanks,
 
Old 09-25-2009, 02:31 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
How bad is the root partition?

Is it mounted a read-only or is it giving different errors.

If it's read-only.. is the following possible

mount -o remount,rw /

as for downgrading packages, I am not sure if their are any rollbacks in apt-get as I don't use it that often I am afraid.
 
Old 09-26-2009, 08:28 PM   #3
RJGularte
LQ Newbie
 
Registered: Apr 2009
Location: Davis, CA
Distribution: Debian Lenny /former opensuse
Posts: 5

Original Poster
Rep: Reputation: 0
I don't know what you mean about the root partition being mounted as read-only. How can I check this? what does the command you sent do?

The system works, it boots into Gnome, you can do work on it, but it doesn't recognize the wireless card and the fonts and colors of the windows are not the same as those prior to the upgrade.

The root partition doesn't have any free space what so ever. I think this is because when it was downloading all the package upgrades it ran out of space before downloading all the packages, so it never got around to actually upgrading the packages. So they are all compressed somewhere taking up all the space in the root partition.

Also, when booting the OS, one deamon fails to start. The line that shows this reads something like:

Starting: mDNS/dns-sd deamon: avahi-deamon failed!

Any ideas?
 
Old 09-26-2009, 09:29 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Ok let's check a few things.

Let's see the output of the following three commands from a terminal window.
df -h
mount
cat /etc/fstab

This should allow us to see what's going on with your hard drive

Last edited by r3sistance; 09-26-2009 at 09:31 PM.
 
Old 09-29-2009, 01:45 AM   #5
RJGularte
LQ Newbie
 
Registered: Apr 2009
Location: Davis, CA
Distribution: Debian Lenny /former opensuse
Posts: 5

Original Poster
Rep: Reputation: 0
OK. This is what I got when I ran the commands


Code:
$df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             6.5G  6.5G     0 100% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M  876K  9.2M   9% /dev
tmpfs                 2.0G     0  2.0G   0% /dev/shm
/dev/sda7             143G   60G   77G  44% /home
overflow              1.0M   12K 1012K   2% /tmp

$mount
/dev/sda5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda7 on /home type ext3 (rw)
overflow on /tmp type tmpfs (rw,size=1048576,mode=1777)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

$cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext3    errors=remount-ro 0       1
/dev/sda7       /home           ext3    defaults        0       2
/dev/sda6       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
 
Old 09-29-2009, 03:27 AM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by RJGularte View Post
Code:
/dev/sda5             6.5G  6.5G     0 100% /
There it is. Run a rescue disk and see if you can't delete something relatively harmless, like the contents of /tmp of the man page section at /usr/share/man. Just enough to make the system bootable. Then reboot and uninstall something like big, optional packages.

Finally, back up your data, reinstall Linux and allocate a reasonable size for the root filesystem. Nothing less than 20 GB for the root filesystem.
 
  


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
The accidental sysadmin CitizenjaQ LinuxQuestions.org Member Intro 2 09-02-2008 03:10 PM
Accidental RM - can I recover?? anotheruser Debian 5 09-21-2007 08:24 PM
HELP! accidental mke2fs on fat32 fs nameless_guy Linux - General 1 12-31-2006 06:17 PM
accidental use of 'bind' command naedaneth Linux - Newbie 1 11-05-2004 04:22 PM
accidental mke2fs sarahan Linux - General 1 11-15-2003 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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