PDA

View Full Version : /tmp directory & QTParted.



ibrewale
11-25-2004, 04:41 AM
I have been having problems running streams on xmms, opening realplayer on nfl.com etc. The message is that /tmp is full. When I check on /tmp (right click in konqueror) I see that /tmp is 64mb in size. Trying this with other directories shows much larger sizes.

How can I get around this apparent limitation on /tmp??

There may be a problem with my partitions. my root / is on hda1, which is set at 2.9GB. Opening QTparted I see I have hda3 at 15GB, but it doesn't appear anything I have is 'mounted' on it. Anotherwords, I dont 'think' that space is being utilized. How can I place /home/me or /tmp on hda3? Also, can I use QTparted to make hda1 much larger?



Oh, there is no windows on this box, just running Knoppix off the hd.

Thanks

Jerry

ibrewale
11-25-2004, 05:21 AM
Now I cannot login graphically, except for Root. My other logins, when attempting, go blank, grey, and then back to the login. They aren't incorrect passwords, as I've tried that, and it correctly tells me that login is incorrect.

What gives??

Thanks

Jerry

ibrewale
11-25-2004, 04:07 PM
I have found an answer to why I couldn't log in as a normal user. My disk was full (hda1). Once I uninstalled via kpackage a bunch of stuff I don't use, I could log in again.

As far as using hda3 (15GB) for something useful, maybe for mounting my /home directories on, anyone have any ideas? Mess with etc/fstab?

Jerry

baldyeti
11-25-2004, 05:44 PM
As far as using hda3 (15GB) for something useful, maybe for mounting my /home directories on, anyone have any ideas? Mess with etc/fstab?
Something along the lines of :


mkfs -t ext3 /dev/hda3
mkdir /tmp/XYZ
mount /dev/hda3 /tmp/XYZ
cp -a /home /tmp/XYZ

add an entry to fstab:

/dev/hda3 /home ext3 defaults, auto 0 2
then settle in your new home :-)

mv /home /home.bkp
mount /home

once you've checked this works, you can delete the /home.bkp directory

ibrewale
11-25-2004, 07:14 PM
I appreciiate the help so far. One more question:


mv /home /home.bkp
mount /home


once you've checked this works, you can delete the /home.bkp directory

I have completed all the steps, but when I
mount /home I get the message

home does not exist


Any more ideas on this?

Thanks

Jerry

Markus
11-25-2004, 07:32 PM
Hmm, I'm not sure if the extra space between defaults, and auto is significant.
Try: /dev/hda3 /home ext3 rw,auto,users,exec 0 2
If you put defaults it includes: rw, suid, dev, exec, auto, nouser, and async

ibrewale
11-25-2004, 07:46 PM
Hmm, I'm not sure if the extra space between defaults, and auto is significant.
Try: /dev/hda3 /home ext3 rw,auto,users,exec 0 2
If you put defaults it includes: rw, suid, dev, exec, auto, nouser, and async


I am still having problems, here is my fstab now:


/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /home ext3 rw,auto,users,exec 0 2
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrw /cdrw iso9660 ro,user,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0


Now, here is what I get:



root@box1:/etc# mount /home
root@box1:/etc# mv /home /home.bkp
mv: cannot move `/home' to `/home.bkp': Device or resource busy
root@box1:/etc# umount /home
root@box1:/etc# mv /home /home.bkp
root@box1:/etc# mount /home
mount: mount point /home does not exist
root@box1:/etc# mv /home.bkp /home


When I try to backup /home to home.bkp after mounting /home it says the resource is busy, when I try before mounting /home it works, but then I cannot mount /home.

What am I doing wrong?
I appreciate the help so far!!

Thanks

Jerry

Markus
11-25-2004, 08:32 PM
There's actually a howto about this: http://www.knoppix.net/docs/index.php/HomePartitionHowTo follow it and you'll be fine.

You have cuplicate entries in fstab for hda3:
/dev/hda3 /home ext3 rw,auto,users,exec 0 2
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0 , as this is noauto it shouldn't matter though.


root@box1:/etc# mount /home
root@box1:/etc# mv /home /home.bkp
mv: cannot move `/home' to `/home.bkp': Device or resource busy
root@box1:/etc# umount /home
root@box1:/etc# mv /home /home.bkp
root@box1:/etc# mount /home
mount: mount point /home does not exist
root@box1:/etc# mv /home.bkp /home Take it easy with mv until you have home copied somewhere:
sudo mkdir /home.bkp
cd /home
sudo cd -Rp * /home.bkp/ EDIT:oops, cd should of course be cp

baldyeti
11-25-2004, 08:48 PM
I have completed all the steps, but when I mount /home I get the message

home does not exist

Yeah, sorry after renaming the original /home; you need to recreate a mount point for the partition: "mkdir /home", then mount.

ibrewale
11-26-2004, 02:12 AM
I have followed Markus recommendations and the howto at : http://www.knoppix.net/docs/index.php/HomePartitionHowTo but to no avail.
hda3 does have /home on it when I'm done, including copies of my /home directories, BUT upon reboot, and trying to login to KDE the screen just goes blue, and then I get error messages about not finding DCOP. The only way out is to boot into safemode, and comment out the new line I added to fstab. Here is is for review:


/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
#/dev/hda3 /home auto rw,auto,user,exec 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrw /cdrw iso9660 ro,user,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0


Of course, I commented out /dev/hda3 /mnt/hda3, and uncomment /dev/hda3 /home...

Any other ideas?

Thanks for the help so far baldyeti and Markus.

Jerry

baldyeti
11-26-2004, 02:34 AM
hda3 does have /home on it when I'm done, including copies of my /home directories, BUT upon reboot, and trying to login to KDE the screen just goes blue, and then I get error messages about not finding DCOP. The only way out is to boot into safemode, and comment out the new line I added to fstab.
What do you mean when you say it has /home? It has /home contents, but no home subdirectory, or the contents would move to /home/home once mounted! Can you clarify?

You could check that everything was well copied; at the very least "du -sk /home*" should report the same size twice.

ibrewale
11-26-2004, 03:05 AM
Thanks,
I was not aware of du -sk /home * command.

Here is the clip, and there is a difference in my normal account 'jerry'.


root@box1:/home# du -sk /home *
142764 /home
60208 jerry
62064 kris
20488 kyle
root@box1:/home# cd /mnt/hda3/home
root@box1:/mnt/hda3/home# ls
jerry kris kyle
root@box1:/mnt/hda3/home# du -sk /home *
142764 /home
59180 jerry
62064 kris
20488 kyle
root@box1:/mnt/hda3/home#

Here lies the problem maybe?

Thanks again

Jerry

ibrewale
11-26-2004, 03:40 AM
Well, when doing this again, here is the outcome:

I cannot log into KDE as jerry, but I can log into icewm, for instance. I can log into KDE while root though.

I did find that now I have the following directory structure, /home/home. Anotherwords I have /home and then I have to go down 1 more level to /home again.
The first home is mounted to /
The second home, which contains the folders for the users, lists that it is mounted under /home, with the 15GB I would have on hda3. That part is correct.

How can I back out, and recopy the directory contents of /home to hda3, without copying /home folder itself?

Here is my current fstab:


dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /home auto rw,auto,user,exec 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrw /cdrw iso9660 ro,user,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0


Here is the output from the command, mount:


/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
/dev/pts on /dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
automount(pid454) on /mnt/auto type autofs (rw,fd=4,pgrp=454,minproto=2,maxproto=4)
/dev/hda3 on /home type ext3 (rw,nosuid,nodev)


Thanks

Markus
11-26-2004, 11:48 AM
Hmm, first of all in fstab this: /dev/hda3 /home auto rw,auto,user,exec 0 0
should be: /dev/hda3 /home auto rw,auto,users,exec 0 0

When you did sudo cp -Rp * /mnt/hda3/ are you sure you didn't do sudo cp -Rp * /mnt/hda3/home/
or perhaps cp -Rp home /mnt/hda3/ as that would copy the home dir too.
Do you now have a home directory under hda3, check with ll -d /mnt/hda3/*
If you have the dir, to minimise confusion do:
sudo mv /mnt/hda3/home /mnt/hda3/homedir
sudo mv /mnt/hda3/homedir/* /mnt/hda3/
check that the directory structure is ok and do rmdir /mnt/hda3/homedir , the command won't remove the directory if it's not empty.

PS: I've used the howto myself so I know it works if you follow it closely. An extra / character in the wrong place will bork it up so if the old home dir under / is intact you might just want to remove the home under hda3 and start over just to play it safe.