Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
wo wo wo. slow down you don't wanna start deleting these things.
a volume group is essentially a hard drive and a logical volume is a partition but its a bit more than that. i'll give a more in depth description later on if you wanna hear more about LVs a VGs
right if you give a full output of your df -h then it would be more helpful.
it depends on how you've got your volume group all set up as to what this logical volume is for. i might well be your swap partition and if thats the case then sometimes it will report to be at 100% usage but i doubt very much a default install gave you a 19Gig swap partition. if you look to the left ot the /dev/mapper/VolGro.... you'll see where its mounted. this might just say / or something else.
whatever this directory is will be where all the files are that are taking up 100% of the drive. most likely you've filled your drive up somehow unknowingly
just a small word everythign in the /dev directory is a device (well its a pointer to a device) so when at startup /dev/mapper/VolG..... will be mounted on / or /pat or wherever its set to mount.
this might seem quite strange because how can you mount something thats in /dev/mapper... onto / when thats inside it... (hope that makes sense) it does seem like a circular argument until you take into account the /proc file system.
/proc is where the devices really are. have a look arroun (not editing anyhting mind you) and see what you can find in /proc. plenty of info about all your hardware.
ok so now volume groups
you can 2 or more drives together an create a volume group out of them which essentially acts as one drive. not quite like raid but similar and done at a software level. logical volumes are the partitions you get when you carve you volume group up.
not the best explaination ever but hope you get the idea
Thanks pats !!! Here are the outputs of my system. Is it better to leave the system with LV and VG rather than the traditional /dev/hd## business ??? All this machine is is a file server on the 2nd FAT32 drive. I don't do anything with the primary OS drive.
Originally posted by joshnya and that gave you the 17Gig after du -ch /mnt ?
would be a fair assumption. do you mind posting the script?
it's a cronjobs script:
the /mnt/backup is mounted with /dev/hdd1 device.
45 20 * * 1-5 cp -Ru /mnt/share/Share /mnt/backup
would it be better / possible to:
cp -Ru /dev/hdb1 /dev/hdd1 instead?
ok firstly cp -Ru /dev/hdb1 /dev/hdd1 will not be good. they are the linkers to the devices (read my earlier post.) you mount the device in a certain place ie /mnt/backup in order to access it. this is why you can't do cd /dev/hdd1 and see all your files.
right. the cron job looks ok but again can you just do these commands and tell me what you get.
df -ch /mnt
ls /mnt to see whats there
if you've unmounted those 2 drives and theres nothing else mounted in /mnt then it shouldn't contain any data
if you copy the exact output of the above commands then i should be able to help a bit more