LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-02-2008, 05:45 PM   #1
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
mkdir problem?


why can't i make a directory over 300MB? also, i seem to have unmounted my hard drive, how can i get the partition hda1 set back to /mnt/hda1 ?
any advice?
 
Old 11-02-2008, 05:53 PM   #2
zakonnik
LQ Newbie
 
Registered: Nov 2008
Location: Elbląg, Poland
Distribution: Slackware64-current
Posts: 22

Rep: Reputation: 16
To mount type:
Code:
mount /dev/hda1 /mnt/hda1
but make sure u've got mounting directory.

First time I hear that directory itsefl can weight [user-choise?] in MB's...
What u typed exactly?
 
Old 11-02-2008, 05:59 PM   #3
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
the mount command is not working, i am running backtrack3 (based off slackware)

i typed "mkdir /mnt/dir1" and the directory is only about 300MB but i need one around 4GB the harddrive is 12GB so this is not the problem

i am trying to install BT3 to the hard drive, i am currently running it off a cd
 
Old 11-02-2008, 06:03 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What do you mean the directory is only 300MB? Do you mean the sum of the files in the mounted partition is only 300MB but you believe there should be 4GB of files?
 
Old 11-02-2008, 06:04 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Directories have no size, in the sense that you are speaking about. They "have" as much free space as the device holding them. If they serve as a mount point, then they have as much free space as the device that you mounted on that directory.

Last edited by i92guboj; 11-02-2008 at 06:12 PM.
 
Old 11-02-2008, 06:11 PM   #6
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
when i try to transfer files from an external device to the directory, it says i do not have enough space, and in properties the folder is listed as having 300MB
 
Old 11-02-2008, 06:14 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Use the command "df" to see the free space available on each mount point. You either miscalculated something or you are mounting the wrong device (or none at all) in the wrong mount point.
 
Old 11-02-2008, 06:15 PM   #8
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
Use the command "df" to see the free space available on each mount point. You either miscalculated something or you are mounting the wrong device (or none at all) in the wrong mount point.
my hard drive isn't listed when i type df... what now?
 
Old 11-02-2008, 06:23 PM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by benzslr123 View Post
my hard drive isn't listed when i type df... what now?
That means it's not mounted. Use fdisk -l to list all the available hard disks and partitions, and see which one is the one you want to mount. Then try to mount it, and then, if it doesn't work, let us know what happened, which error was spitted, and so on.

A "doesn't work" doesn't help us much to determine where the problem lies.

Last edited by i92guboj; 11-02-2008 at 06:25 PM.
 
Old 11-02-2008, 06:52 PM   #10
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
i type "fdisk -l" and "/dev/hda2" is listed. i then type "mount /dev/hda2 /mnt/" and receive the reply "mount: No buffer space available"
 
Old 11-02-2008, 06:57 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you deleted all the stuff you copied into /mnt/hda1 earlier?
 
Old 11-02-2008, 06:57 PM   #12
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
yes the drive is completely empty
 
Old 11-02-2008, 07:17 PM   #13
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Try to specify the filesystem type on command line, for example:

Code:
mount -t ext3 /dev/hda2 /mnt/hda2
Or whatever directory you use to mount hda2.
 
Old 11-02-2008, 07:38 PM   #14
benzslr123
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Original Poster
Rep: Reputation: 0
using fdisk, i changed to name to hda1 although this should not make a difference.

this device is listed as /dev/hda1 under fdisk -l

when i type "mount /dev/hda1 /mnt/" i get: "mount: no such file or directory"
 
Old 11-02-2008, 07:51 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Do
fdisk -l
and show us the output. Also

df

cat /etc/fstab

We need to see the info to help you.
 
  


Reply



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
mkdir -p ? shanenin Linux - Software 4 10-19-2011 11:41 AM
vsftpd non-annoy ftp cannot upload, mkdir problem sleepyhomme Linux - Server 2 04-29-2007 11:39 AM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 03:46 AM
mkdir fail -> block problem? pixelcat Linux - General 3 01-19-2006 11:56 AM
mkdir help ITJedi Linux - Software 1 05-14-2004 05:19 PM

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

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