LinuxQuestions.org
Help answer threads with 0 replies.
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 12-18-2007, 07:44 AM   #1
h0bb3s
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
when to mount and why ?


Hi,

I have just about started experimenting with PCLinuxOS , and I have trouble understanding when do i need to mount a files and when not to.
I installed Linux onto a 80 GB HDD Laptop and my hardisk was partitioned so

Name Flags Part Type FS Type [Label] Size (MB)
---------------------------------------------------------------------------------------------------------------------------------------
hda1 Boot Primary Linux ext3 8388.11
hda5 Logical Linux swap / Solaris 4193.80
hda6 Logical Linux 67444.46



while installing I chose to set / to hda1 . I now find that I have run out of space on my ext3 partition . Running df -k gives me
[root@unknown-00-05-4e-48-e3-c0 /]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 8062888 7653248 68 100% /

Now the bit that is confusing me is the fact while using Krusader (or any other File explorer tool ) is that i can see the rest of my hard disk under /mnt/hda6 and I can still use that space ,(For eg I use that space to store my downloaded files from bittorrent) ,but whatever i download to /mnt/hda6 still is being counted as space used by / (or hda1) and filling up that filesystem.
Can someone please explain what is so ? (All file tools still show that the downloaded files are indeed under /mnt/hda6/.... structure).
I suspect I will need to mount it explicitly , but I need to understand why that is so , even when i can use that space. For sake of completeness my /etc/fstab looks like this

[root@unknown-00-05-4e-48-e3-c0 /]# cat /etc/fstab
## fstab created by Livecd-install

none /proc proc defaults 0 0
none /dev/pts devpts mode=0620 0 0
none /proc/bus/usb usbfs defaults 0 0

# /dev/hda1, size=16382961, type=131: Journalised FS: ext3 (primary)
/dev/hda1 / ext3 noatime 1 1

# /dev/hda5, size=8190945, type=130: Linux swap (extended)
/dev/hda5 swap swap defaults 0 0

# /dev/hda6, size=131727393, type=131: Linux native (extended)
/dev/hda6 /mnt/hda6 ext2 user,exec,rw 0 0

# cdrom: MATSHITADVD-RAM UJ-822S
# /dev/hdc /mnt/cdrom auto user,exec,ro,noauto 0 0


Thanks


ps: a follow on question after the why is answered is what do i need to do to get out of this mess such that I do not loose any data that is already downloaded to /mnt/hda6

Last edited by h0bb3s; 12-18-2007 at 07:48 AM.
 
Old 12-18-2007, 08:21 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You have hda1 mounted at / (AKA "root", meaning the top level of the directory tree). If no other partition is mounted, then any data written to a directory under / will go to /dev/hda1.
Think of mounting as "connecting"---if hda6 is not connected to /mnt/hda6, then any data written to that directory will go into /dev/hda1.

"df" will report the status of a "filesystem" on a partition, regardless of where that partition is mounted. So, what df is telling you is that /dev/hda1 is full. What does it say about /dev/hda6? (It won't report anything if hda6 is not mounted.)

the "mount" command will tell you what is actually mounted (according to your fstab, /dev/hda6 is not mounted automatically)

Once you are sure where things are, then you can change the setup. For example, you might mount /dev/hda6 to /home/data and use it as a data partition.

If you have any critical data, be sure to make a backup before you start moving things around.

Last edited by pixellany; 12-18-2007 at 08:22 AM.
 
Old 12-18-2007, 09:24 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It looks like you used what should have been the /boot directory for the /root directory. If you see directories like /bin,/home,/usr in the /dev/sda6 partition, then you may be able to modify your menu.lst file and the /etc/fstab file to mount /dev/sda6 as the root (/) directory. Otherwise there would be a lot more work to do copying the contents of your current root directory (except for /boot) to the /dev/sda6 partition and correcting /etc/fstab and menu.lst. It might be easier simply to reinstall.
 
  


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
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
util-linux-2.12r error on 'make -C mount mount umount' james penguin Linux From Scratch 2 08-28-2006 11:55 PM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM

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

All times are GMT -5. The time now is 05:28 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
Open Source Consulting | Domain Registration