LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-16-2006, 10:37 AM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
where to find harddrives


Hello all,

I'm having problems with my fileserver. Here's the setup. slackware 10.2. Two hard drives. One I use for the system, partitioned for swap, and /. Then I have another drive, 120gb one that I wanted to use only for storage.

I tried to make a new folder today, and I get the error: Cannot create the folder. There is not enough space on the disk.

WTF? So I did a df-h and here's what I got.

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 16G 15G 0 100% /

I should have another drive on here that's 120G obviously. And secondly I don't know how I used 15G already on this system, there's nothing installed, perhaps log files going crazy??? I'll look into that later.

Anyhow, how can I go about finding my 120G drive? I have it mounted as /fileserver and I can still get to it, yet it doesn't show up under df -h? What am I doing wrong?


I don't think its my samba setup, but then again, maybe it is?

[global]
workgroup = HEADQUARTERS
server string = FileServer
hosts allow = ALL #192.168.15. 0.0.0.0
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
username map = /etc/samba/smbusers
winbind use default domain = no
guest ok = yes
password server = None

[fileserver]
comment = 120gb fileserver
path = /fileserver
read only = no
writeable = yes
valid users = @fileserv

As always, your help is appreciated,

Thanks,
 
Old 07-16-2006, 10:41 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It shouldn't be anything to do with samba. Can you post the output from:
cat /etc/fstab
cat /etc/mtab
fdisk -l
mount
 
Old 07-16-2006, 10:50 AM   #3
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
cat /etc/fstab
/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

cat /etc/mtab
/dev/hda1 / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0

fdisk -l

Disk /dev/hdc: 120.0 GB, 120000000000 bytes
16 heads, 63 sectors/track, 232514 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/hdc doesn't contain a valid partition table

Disk /dev/hda: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2371 19045026 83 Linux
/dev/hda2 2372 2491 963900 5 Extended
/dev/hda5 2372 2491 963868+ 82 Linux swap

It's there obviously. How do I mount it right?

mount -t ext3 /dev/hdc /fileserver ??
 
Old 07-16-2006, 10:55 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you look at the message "Disk /dev/hdc doesn't contain a valid partition table" you'll see that there are no partitions on the device yet. You'll need to create at least one partition on the device first.

Using cfdisk would probably be the easiest way if you have it installed:
cfdisk /dev/hdc

If you don't have it installed then you can use fdisk although the interface is a little more complex (jsut press m for usage instructions):
fdisk /dev/hdc

Once you have created the partition(s) you'll need to create filesystem on them, assuming you want to use ext3 like your existing partitions:
mkfs -t ext3 /dev/hdc1

Then you can mount it with:
mount /dev/hdc1 /fileserver

You'll probably want to add an entry to fstab so that it mounts on boot as well:
echo "/dev/hdc1 /fileserver ext3 defaults 1 1" >> /etc/fstab
 
Old 07-16-2006, 10:59 AM   #5
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Original Poster
Rep: Reputation: 31
Great, I thought I had it mounted before, but perhaps I made some sort of mistake on that. And, it can also explain how I filled up my 20 gig drive, when i shouldnt have, as i had about 15 gig or so on my "fileserver". Now I gotta find what the hell I did wrong. Thanks for your help.
 
  


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
Where can I find tools to open and work on harddrives? abefroman General 64 08-20-2005 05:12 AM
two harddrives pharmd Ubuntu 7 04-18-2005 08:19 PM
2 HardDrives (need Help) IceyCold Slackware - Installation 5 10-09-2004 05:32 AM
Harddrives Celestial Slackware 1 06-30-2004 08:18 PM
harddrives cleeadkins Linux - Hardware 8 10-09-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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