Full Root Partition - now missing /hda1 - Mandriva 2006 2007
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
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.
Full Root Partition - now missing /hda1 - Mandriva 2006 2007
Hello,
I thought it wise to back-up my drive before upgrading from Mandriva 2006 to 2007 - wrong move. I meant to put the back-up on my CD, but somehow I ended up filling my root partition, hda1. In trying to figure out what to do, I ran across this old post and tried the following command:
What happened?!?! And how do I make sure I don't lose my valuable information on hda6? Is there a way out of this?
Funny enough, during boot I can see hda1 - all full; yet it doesn't show on df -a ??
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
use the cd/dvd and type rescue at the boot
go to console mode
type su to become root (if not already)
see that all partitions are still there
fdisk -l
to mount hda1
mkdir /mnt/mounted_hda1
mount /dev/hda1 /mnt/mounted_hda1
to see what is in there
ls -l /mnt/mounted_hda1
the command rm is for remove you could remove whatever you want
alternatively use a live cd to delete / backup whateve you want
alternatively install 2007 on hda1, if you look carefully
at options because hda6 is on another partition it will be kept safe
When I went to rescue mode I used lsparts to find this:
hda1: 2.9GB
hda5: 549MB (swap)
hda6: 34GB
Why does my hda1 now say 2.9GB instead of 5.8? I went through and tried to start again, ut same problems. I haven't tried what you suggest above, but only because I want to make a back-up of some files. Is it possible for me to burn files to a CD in such a state of disrepair? If so, how do I go about doing this?
My take on how I got into this mess is that I inadvertently backed-up my files onto the root partition. As a result, there must be files that are simply redundant. If I can just clear these reduntant files, then I should be able to install 2007 - something I can't do now. I think anything that I care about is on my /home in hda6. Are there generic files that I can remove in the root partition that will not ruin my day? For instance, I removed the Games files, but there were few of them and so did not clear up much space - likewise /tmp.
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
Quote:
If I can just clear these reduntant files, then I should be able to install 2007
You should be able to install regardless of the
fact that / is full (unless there is a bug in the installer
or the installer needs space before the format stage -
read the 2006 to 2007 upgrade thread
You are better off installing than upgrading,
so the only thing to really backup from /
is /etc so you have your old settings if you ever want
to see what they were)
the command line is ls to see files
You are better of with live cd if you are going to delete
things on / (visually easier maybe than command line if
you are not used to it)
I think this is a waste of time unless you want to be able
to rerun 2006
file you can delete
/var/log/*
I would not like to make more suggestions
surrely all these file you copied there are in a directory
it is a question of searching
There are commands like du, and df
note that if you become root and type
history
you would have the old command line when that backup went wrong
(if you used command line)
another trick maybe would be
boot with rescue
chroot to /mnt/mntedhda1
urpme openoffice
(I have never tried, but in theory should work)
The idea is to desinstall a big package (openoffice is ~100 Mo)
and then reboot system. Then 2006 should boot
What is the difference between an install and upgrade? I thought that install would write over files that I had on there - start from scratch kind of idea.
so the only thing to really backup from /
is /etc so you have your old settings if you ever want
to see what they were)
How do I backup /etc ?
By the by, regardless of how this all turns out - though with your assistance,I am optimistic - I think it is quite remarkable the number of people you help out in these forums, kudos!
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
Quote:
I thought that install would write over files that I had on there - start from scratch kind of idea.
correct
but when "installing" there is also an option called upgrade
that try to reuse old settings and match existing packages
with new version
you need to mount home 1st, assuming rescue mode
mkdir /mnt/myhome
mount /dev/hda6 /mnt/myhome
ls -l /mnt/myhome (check hda6 is what you think it is)
mkdir /home/etcback
cp -R /etc/* /myhome/etcback/
ls -l /myhome/etcback/
man cp for more info
If you are new to linux, unless you setup fancy things,
I doubt you will ever use /etcback, but you have important things there
like /etc/resolv.conf
Quote:
I think it is quite remarkable the number of people you help out in these forums, kudos
ta.
Am not the 1st, not the last
Just hope one day you help other as well
Best way to learn
PHEW!!! Ok, well, I took a bit of a chance (loss of hundreds of photos) and used my installation dvd to reformat hda1 - root partition - and then reinstalled 2006. Luckily, I still have my photos, bookmarks and all important business. I'm going to burn some cds of the above mentioned goodies, and then install 2007.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.