Hi !
how to mount automatically and permanently a partition without requesting the root password every time I want to access in.
the partition is ext4.
thank you friends.
# Entry for /dev/sdb4 :
UUID=c660d5ca-ce0d-48d6-bb52-e21a5036f33c / ext4 acl,relatime 1 1
# Entry for /dev/sdb3 :
UUID=4f5cb9a8-a42c-4fad-8edf-1f33ab91e603 /home ext4 acl,relatime 1 2
# Entry for /dev/sda1 :
UUID=5BA5202220F01E0C /media/windows ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sda5 :
UUID=cbc2090b-bafe-4ea7-9604-8767212f925e /var/ ext4 defaults 1 2 (here is the line i tried to modify and get it back)
none /proc proc defaults 0 0
# Entry for /dev/sdb5 :
UUID=2962d6a6-6b9d-4984-8b78-6e0e92e0b121 swap swap defaults 0 0
umask=000 0 0
lsblk -fl
# Entry for /dev/sdb4 :
UUID=c660d5ca-ce0d-48d6-bb52-e21a5036f33c / ext4 acl,relatime 1 1
# Entry for /dev/sdb3 :
UUID=4f5cb9a8-a42c-4fad-8edf-1f33ab91e603 /home ext4 acl,relatime 1 2
# Entry for /dev/sda1 :
UUID=5BA5202220F01E0C /media/windows ntfs-3g defaults,umask=000 0 0
# Entry for /dev/sda5 :
# UUID=cbc2090b-bafe-4ea7-9604-8767212f925e /var/ ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sdb5 :
UUID=2962d6a6-6b9d-4984-8b78-6e0e92e0b121 swap swap defaults 0 0
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
sda1 ntfs 5BA5202220F01E0C /media/windows
sda2
sda5 ext4 stock cbc2090b-bafe-4ea7-9604-8767212f925e
sdb
sdb1
sdb2 ext4 bf44d1a6-55bc-4fab-84e5-03de10c76cae
sdb3 ext4 home_of_mageia4 4f5cb9a8-a42c-4fad-8edf-1f33ab91e603 /home
sdb4 ext4 mageia4 c660d5ca-ce0d-48d6-bb52-e21a5036f33c /
sdb5 swap 2962d6a6-6b9d-4984-8b78-6e0e92e0b121 [SWAP]
sdb6 ext4 50605965-c3b7-4cc6-aee7-44d6b7a63992
sr0
gerzal wrote:# Entry for /dev/sda5 :
# UUID=cbc2090b-bafe-4ea7-9604-8767212f925e /var/ ext4 defaults 1 2
mount -t ext4 /dev/sda5 /mnt
ls -al /mnt
total 44
drwxr-xr-x 8 root root 4096 Dec 29 20:48 ./
drwxr-xr-x 21 root root 4096 Dec 30 18:23 ../
drwxr-xr-x 5 root root 4096 Dec 29 01:19 cache/
drwxr-xr-x 7 root root 4096 Dec 29 01:19 lib/
drwx------ 2 root root 16384 Mar 17 2014 lost+found/
drwxr-xr-x 2 root root 4096 Dec 29 20:48 nmbd/
srwxrwxrwx 1 root root 0 Dec 29 01:17 proftpd.sock=
drwxr-xr-x 11 root root 4096 Dec 29 20:48 run/
drwxrwxrwt 2 root root 4096 Dec 29 01:17 tmp/
Totally apart from that, please keep in mind that you still would need to copy/sync over the content that is currently in /var to your new /var partition.
Sorry, but there has been a problem starting your graphical display.
In order to debug your problem we will automatically switch to a text-based login screen from where you can login as the root user and run the "drakx11" utility to configure your graphical display.
doktor5000 wrote:You currently have a running system where /var is on the / partition, and it already contains some files from your running system.
If you now mount /dev/sda5 as /var all the files in that directory from your running will be over-mounted and effectively hidden away.
You need to take care to replicate the current content of /var to the new /dev/sda5 partition.
┌─[doktor5000@Mageia5]─[12:49:22]─[~]
└──╼ ls -al /var
total 32
drwxr-xr-x 1 root root 148 Dec 21 16:40 ./
drwxr-xr-x 1 root root 176 Dec 6 19:50 ../
-rw-r--r-- 1 root root 163 Dec 6 19:15 .updated
drwxr-xr-x 1 root root 150 Dec 21 16:40 cache/
drwxr-xr-x 1 root root 8 Dec 6 19:18 db/
drwxr-xr-x 1 root root 0 Oct 31 19:47 empty/
drwxr-xr-x 1 root root 0 Oct 17 19:59 games/
drwxr-xr-x 1 root root 676 Dec 31 04:02 lib/
drwxr-xr-x 1 root root 0 Oct 31 19:47 local/
lrwxrwxrwx 1 root root 11 Oct 31 19:47 lock -> ../run/lock/
drwxr-xr-x 1 root root 1000 Dec 31 04:02 log/
lrwxrwxrwx 1 root root 10 Oct 31 19:47 mail -> spool/mail/
drwxr-xr-x 1 root root 0 Oct 31 19:47 nis/
drwxr-xr-x 1 root root 0 Oct 31 19:47 opt/
drwxr-xr-x 1 root root 0 Oct 31 19:47 preserve/
lrwxrwxrwx 1 root root 6 Oct 31 19:47 run -> ../run/
drwxr-xr-x 1 root root 94 Dec 6 22:03 spool/
drwxrwxrwt 1 root root 2082 Dec 30 22:15 tmp/
drwxr-xr-x 1 root root 22 Dec 21 16:40 www/
drwxr-xr-x 1 root root 0 Oct 31 19:47 yp/
mount /dev/sda5 /mnt
rsync -av --dry-run --log-file=rsync.log /var /mnt
Users browsing this forum: No registered users and 1 guest