Modify

Opened 5 years ago

Closed 5 years ago

#13783 closed defect (worksforme)

r37078:Swap partition is not mounted automatically

Reported by: anonymous Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: swapon Cc:

Description

After the router boots up, the swap partition is not mounted automatically:
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 121.8M 35.9M 79.3M 31% /
/dev/root 10.0M 10.0M 0 100% /rom
tmpfs 61.7M 1.7M 60.1M 3% /tmp
/dev/sda1 121.8M 35.9M 79.3M 31% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda3 1.3T 394.5G 910.6G 30% /mnt/sda3
root@OpenWrt:~# free
total used free shared buffers
Mem: 126456 73100 53356 0 11544
-/+ buffers: 61556 64900
Swap: 0 0 0

but mounted after give the command to mount a swap partition - swapon /dev/sda2 where sda2 - swap partition:

Filesystem Size Used Available Use% Mounted on
rootfs 121.8M 35.9M 79.3M 31% /
/dev/root 10.0M 10.0M 0 100% /rom
tmpfs 61.7M 3.4M 58.3M 6% /tmp
/dev/sda1 121.8M 35.9M 79.3M 31% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda3 1.3T 394.5G 910.6G 30% /mnt/sda3
root@OpenWrt:~# free
total used free shared buffers
Mem: 126456 74828 51628 0 11644
-/+ buffers: 63184 63272
Swap: 131068 0 131068
Please fix it.
Thanks.

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by anonymous

Platform is ar71xx

comment:2 Changed 5 years ago by blogic

  • Resolution set to too_vague
  • Status changed from new to closed

show us the uci config please

comment:3 Changed 5 years ago by anonymous

  • Resolution too_vague deleted
  • Status changed from closed to reopened

config global 'automount'

option from_fstab '1'
option anon_mount '1'

config global 'autoswap'

option from_fstab '1'
option anon_swap '0'

config mount

option device '/dev/sda1'
option target '/'
option fstype 'ext4'

# option options 'rw,sync,noatime,nodiratime'

option is_rootfs '1'
option uuid 'f56e487b-4374-ce01-c026-487b4374ce01'
option enabled '1'

config swap

option device '/dev/sda2'
option uuid '8216630a-6236-4406-92a9-e7cc1eb01c53'
option enabled '1'

config mount

option device '/dev/sda3'
option target '/mnt/sda3'
option fstype 'ext4'

# option options 'rw,noatime,nodiratime,errors=remount-ro,nouser_xattr,commit=100,barrier=0,data=writeback'

option uuid 'b66c351a-5d04-a9a2-5f23-91b5f8c140cf'
option enabled '1'

comment:4 Changed 5 years ago by anonymous

Fstab mounting seems complete broken on ar71xx

comment:5 Changed 5 years ago by blogic

  • Resolution set to worksforme
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.