Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.