Setdisk error as root

ubuntu

#1

Just installed the script on a Soyoustart Dedibox.
Installation went smooth and all seems to work.
But when i want to use the ‘setdisk’ as root i am getting this error:
“setquota: Cannot open quotafile //aquota.user: No such file or directory”


#2

Here are some quick questions I will need answered in order to help you better.

  1. What Distro and Release are you using
  2. Are you using a /home or /(root) mounted system
  3. Did you reboot after script completion
  4. What are the results of /etc/fstab

#3
  1. I am running Ubuntu Server 15.10
  2. I believe it’s root mounted system.
  3. Yes i did reboot ^^
  4. Here is what fstab is saying:

/dev/md1 / ext4 usrquota,errors=remount-ro,relatime,discard 0 1
/dev/md2 /home ext4 defaults,relatime,discard 1 2
/dev/sda3 swap swap defaults 0 0
/dev/sdb3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devtmpfs /dev devtmpfs rw 0 0


#4

Thanks!

What are the results of lsblk


#5

Where is that located? :slight_smile:


#6

My apologies… just type it into your console.

It will return something similar to this:

[[email protected]]:(455.1kb)~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   10G  0 disk
├─sda1   8:1    0    9G  0 part /
├─sda2   8:2    0    1K  0 part
└─sda5   8:5    0 1022M  0 part [SWAP]
sr0     11:0    1 1024M  0 rom

#7

Give me this:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 279.5G 0 disk
├─sda1 8:1 0 19.5G 0 part
│ └─md1 9:1 0 19.5G 0 raid1 /
├─sda2 8:2 0 259.4G 0 part
│ └─md2 9:2 0 259.4G 0 raid1 /home
└─sda3 8:3 0 511M 0 part [SWAP]
sdb 8:16 0 279.5G 0 disk
├─sdb1 8:17 0 19.5G 0 part
│ └─md1 9:1 0 19.5G 0 raid1 /
├─sdb2 8:18 0 259.4G 0 part
│ └─md2 9:2 0 259.4G 0 raid1 /home
└─sdb3 8:19 0 511M 0 part [SWAP]


#8

Ok, the problem is you are not running a /(root) mounted partition system and additional to this your system is running as RAID1

Notice how the majority of your space is assigned to /home on both disk.

You could use the SYS control panel and reinstall this machine in RAID0 with all space on /home and the script will install without issues… however; QuickBox currently has very limited support for RAID1 setups.


#9

Alright. I’ll try that :slight_smile:


#10

Let me know if you need any help. I’m here all the time. :slight_smile:


#11

Anything i need to edit here? https://gyazo.com/8b3b6a2da3b473e6f091d6e419134e38


#12

Looks good from here.


#13

Getting this msg now:
“setquota: Cannot stat() mounted device /dev/root: No such file or directory”


#14

Please show me your new /etc/fstab and the output of the command lsblk


#15

fstab:

/dev/sda1 / ext4 usrquota,errors=remount-ro,relatime,discard 0 1
/dev/sda2 /home ext4 defaults,relatime,discard 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0

lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 279.5G 0 disk
├─sda1 8:1 0 19.5G 0 part /
├─sda2 8:2 0 259.4G 0 part /home
└─sda3 8:3 0 511M 0 part [SWAP]
sdb 8:16 0 279.5G 0 disk


#16

You picked the /(root) mount to install your quotas… you are using a /home mount.

We’ll fix this.

Change this:

/dev/sda1	/	ext4	usrquota,errors=remount-ro,relatime,discard	0	1
/dev/sda2	/home	ext4	defaults,relatime,discard	1	2
/dev/sda3	swap	swap	defaults	0	0
proc	/proc	proc	defaults	0	0
sysfs	/sys	sysfs	defaults	0	0
tmpfs	/dev/shm	tmpfs	defaults	0	0
devpts	/dev/pts	devpts	defaults	0	0

to this:

/dev/sda1	/	ext4	defaults,relatime,discard	0	1
/dev/sda2	/home	ext4	usrquota,errors=remount-ro,relatime,discard	1	2
/dev/sda3	swap	swap	defaults	0	0
proc	/proc	proc	defaults	0	0
sysfs	/sys	sysfs	defaults	0	0
tmpfs	/dev/shm	tmpfs	defaults	0	0
devpts	/dev/pts	devpts	defaults	0	0

Then save the file and exit. No need to reboot.

Next, do the following:

quotaoff -a
service quota stop
mount -o remount /home
quotacheck -auMF vfsv1
quotaon -uv /home
service quota start

This will set your mount point back to /home for quotas.


Setdisk Issue: Widgets and create user working but setdisk fails
#17

Thank you, it’s wokring now!


#18

Awesome! Glad to hear that. :smile:


#19

I’ve just got one more question ^^

Any reason why it wont show on the Dashboard: https://gyazo.com/9fcdb257baf7a6f2a2cd008017e44c49


#20

Ah, b/c you installed it for /(root) and not /home so the script is not showing the needed widget.

You can do this:

cd /srv/rutorrent/home/widgets
mv disk_data.php disk_data.php.bak
cp disk_datah.php disk_data.php