LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2021, 03:19 AM   #1
henry10
LQ Newbie
 
Registered: Jan 2021
Posts: 7

Rep: Reputation: Disabled
Share folder size only using portion of hard drive with Slackware 14.1


Hey everyone, hope all is well and keeping safe.

I tried searching for this online but do not know how to word it correctly to get an answer so sorry if this has been asked already.

I have a pc with two hard drives. The first one has the Slackware 14.1 software on it. The second one, is a 1TB hard drive, one partition, ext3, and has a share folder on it.

For some reason the share folder size is limited to 400GB. It does not use the entire 1TB hard drive. When viewing Properties of the shared folder, it would for example say 363GB used, 33GB free, 91% full.

When you copy files to that folder, at some stage, it will say there is not enough space. You then have to remove files from the folder to "free up more space" before you can copy to it again.

What do I have to change or do so that the share folder uses the entire drive and not just a portion of it?

Thanks in advance.
 
Old 01-15-2021, 07:57 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Welcome to LQ!

It would help to know more about your setup.
Please post the output of 'parted -l' run in a terminal as root.
 
Old 01-15-2021, 12:42 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
It also would help to know how you are sharing the drive (both software and network) as well as the client side accessing the shares since that is a factor as well.

For example, on my PC I run boinc doing processing for science. I have set up to allow boinc to use up to 12 GB of space on a drive that has over 120GB free. Yet boinc only reports 30GB free.

Your space limitation could be due to the client and not the PC containing the drive itself.
 
Old 01-18-2021, 01:53 AM   #4
henry10
LQ Newbie
 
Registered: Jan 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi everyone, sorry for the late reply.

The details of parted -l:

Model: ATA ST1000DM010-2EP1 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags

Number Start End Size Type File system Flags
1 32.3kB 1000GB 1000GB primary ext3


The client PCs used, to connect to the shared folder, is using Windows 7 / 10. We use the normal 'Map Network Drive' option to connect to the folder by giving it a Drive letter and filling in the Folder path. There is no quotas set up on any of the client PCs.

I am assuming it is setup somewhere in a config file. On the SlackWare 14.1 PC we have a gui installed as well but that is of no use. None of the configurations is viewable on there almost as if it is not set up yet. I am unfortunately not sure how that share folder was set up in the first place.

Last edited by henry10; 01-18-2021 at 01:54 AM.
 
Old 01-18-2021, 06:11 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Thanks for the information. It confirms that the full 1000GB should be available.

It appears that the PC has been set up as a Samba server with Slackware 14.1 as the operating system. You can confirm this by running the command 'ps -ax | grep smbd' in a terminal. Any lines containing anything apart from "grep smbd" are running Samba processes.

I suggest checking the file system on the drive.
1. Become root in a terminal.
2. Confirm that there is an entry for the disk in /etc/fstab by running 'grep sdc1 /etc/fstab'.
3. Stop Samba by running 'sh /etc/rc.d/rc.samba stop'.
4. Unmount the drive by running 'umount /dev/sdc1'.
5. Check the file system by running 'e2fsck -p /dev/sdc1'. (See 'man e2fsck' for details.)

To restart Samba
6. Mount the drive by running 'mount /dev/sdc1'.
7. Restart Samba by running 'sh /etc/rc.d/rc.samba start'.
 
Old 01-25-2021, 06:29 AM   #6
henry10
LQ Newbie
 
Registered: Jan 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi again,

When I enter into a terminal the command: 'ps -ax | grep smbd' I get the following:

Warning a bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html (this site only brings up a 404 error)

809 ? Ss 0:25 /usr/sbin/smbd -D
821 ? S 0:03 /usr/sbin/smbd -D
2079 ? S 0:00 /usr/sbin/smbd -D
11776 ? S 0:00 /usr/sbin/smbd -D
13062 pts/1 S+ 0:00 grep smbd
15999 ? S 0:05 /usr/sbin/smbd -D

I read somewhere 'bad ps syntax' is just because I should have used 'ps u', so doing that gives me:

root 13066 0.0 0.0 7112 972 pts/1 S+ 12:31 0:00 grep smbd

And I have absolutely no idea what any of those things mean :-)

Also, I tried the second command namely 'grep sdc1 /etc/fstab' to see if there is an entry for the disk in fstab, but that displays nothing. It just returns to the prompt so I can type in the next command.

So I had a look at fstab by typing 'cat /etc/fstab' and get the following:

/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 1 1
/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x -gvfs-show 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
tmpfs /dev/shm tmpfs defaults 0 0

At least I can say that the disk does not appear to be in that file. Most of it is sorta understandable except the bottom 3 entries. I have obviously only followed your instructions to point 2 mainly because I did not get any info after that command and wasn't sure if I should go ahead or if there is something else I should try?

I tried reading about the harddrive not being in the fstab file and people on the Internet were saying that some distributions of linux doesn't make use of fstab anymore but it started getting a bit confusing and the commands and files they talked about (mostly related to Ubuntu), I couldn't find on Slackware.

Can you make head or tail of the above? What would you suggest I do next? Thanks
 
Old 01-25-2021, 06:39 AM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
The disk in question is definitely not listed in /etc/fstab. You can try
Code:
df -hT
and
Code:
mount -ltext2,ext3,ext4
to see if it's mounted.
 
Old 01-25-2021, 07:12 AM   #8
henry10
LQ Newbie
 
Registered: Jan 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi shruggy, and thanks for commenting,

df -hT gives me:

/dev/sda3 ...
tmpfs ...
/dev/sdb1 ...
/dev/sdc1 ext3 367G 316G 34G 91% /media/very_long_assuming_unique_id

The first three entries, information on those looks correct. As you can see sdc1 is only using, or somehow been configured?, to use only 367G of the entire 1TB hard drive. I need to change that somehow so that it uses all of the space on the 1TB harddrive and not just 367G.


mount -lt ext2,ext3,ext4 gives me:

/dev/sda3 ...
/dev/sdc1 on /media/very_long_assuming_unique_id type ext3 (rw,nosuid,nodev,uhelper=udisks)
 
Old 01-25-2021, 07:33 AM   #9
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Disable samba and use udisksctl
Code:
$ udisksctl mount -b /dev/scd1
test the size. The /etc/fstab needs to be hand edited - to put inside command to mount /dev/sdc1. But for me choice of ext3 for this size of disk is questionable. As I remember it just plain old ext2 plus journal. I would ask people here for suggestions what file system to chose.
 
Old 01-25-2021, 08:14 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Quote:
'Curiouser and curiouser!' cried Alice...
The output of 'parted -L' shows only one disk /dev/sdc with one ext3 partition of 1000GB. The mountpoint for /dev/sdc1 on /media/very_long_assuming_unique_id reported from 'mount -lt' seems bogus.
The output of 'cat /etc/fstab' suggests a disk /dev/sda with multiple partitions, including a ext4 partition /dev/sda3 mounted on / (this is the Slackware 14.1 install)
The output of 'df -hT' shows an additional disk /dev/sdb, yet the OP reports only the presence of two hard drives.

Perhaps the output of 'cat /etc/mtab' would help.
 
Old 01-25-2021, 08:25 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
The output of 'df -hT' shows an additional disk /dev/sdb, yet the OP reports only the presence of two hard drives.
Well, the output of mount was limited by -t to partitions of type ext[234]. I presume sdb1 is of different type, probably FAT32 or NTFS.
 
Old 01-25-2021, 08:35 AM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
I am suspecting we are dealing with a running system that the OP is reluctant to touch without surety.
My guess is that an incorrect mount command command has been entered since the system was booted.
In Slackware, by default, mount commands can only be used by a user with root privileges. There may be clues in log files.
 
Old 01-25-2021, 08:39 AM   #13
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
What about
Code:
$ lsblk -f
to clarify.
 
Old 01-25-2021, 10:31 AM   #14
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by henry10 View Post
Hi again,

When I enter into a terminal the command: 'ps -ax | grep smbd' I get the following:

Warning a bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html (this site only brings up a 404 error)

809 ? Ss 0:25 /usr/sbin/smbd -D
821 ? S 0:03 /usr/sbin/smbd -D
2079 ? S 0:00 /usr/sbin/smbd -D
11776 ? S 0:00 /usr/sbin/smbd -D
13062 pts/1 S+ 0:00 grep smbd
15999 ? S 0:05 /usr/sbin/smbd -D

I read somewhere 'bad ps syntax' is just because I should have used 'ps u', so doing that gives me:

root 13066 0.0 0.0 7112 972 pts/1 S+ 12:31 0:00 grep smbd

And I have absolutely no idea what any of those things mean :-)
I normally use "ps aux". I suspect that reading the man page for ps might give some enlightenment, such as
Code:
Note that "ps -aux" is distinct from "ps aux".  The POSIX and UNIX standards require that "ps -aux" print all processes
owned by a user named "x", as well as printing all processes that would be selected by the -a option.  If the user named
"x" does not exist, this ps may interpret the command as "ps aux" instead and print a warning.  This behavior is intended
to aid in transitioning old scripts and habits.  It is fragile, subject to change, and thus should not be relied upon.
 
Old 01-25-2021, 11:03 PM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you post the complete output of the mount command and df -h (lsblk -f works as well)? I'm guessing that the shared folder has something mounted over it, thus limiting you to the free space of the partition that's on top.
 
  


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
is there a way to see the size of a portion of a file system? mreff555 Linux - Newbie 1 11-08-2015 09:13 PM
Apache SSL encrypt only a portion of web page helpmhost Linux - Server 1 03-06-2009 09:58 AM
selecting only the required portion of string in a line raghu123 Programming 4 09-17-2008 02:19 AM
Only load last portion of a file, instead of the whole really big text file 1veedo Linux - General 2 02-20-2006 06:34 PM
Only portion of screen used on ThinkPad tp600 Slackware 3 05-21-2005 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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