26

Odp: USB, extroot, printserver

To teraz pokaż uci show fstab na działającym systemie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

27

Odp: USB, extroot, printserver

root@Gargoyle:~# uci show fstab
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=1
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].target=/overlay
fstab.@mount[0].device=/dev/sda98
fstab.@mount[0].fstype=ext4
fstab.@mount[0].options=rw,noatime
fstab.@mount[0].enabled=0
fstab.@mount[0].enabled_fsck=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].uuid=75dfbfd0-63bc-ce01-705f-bfd063bcce01
fstab.@swap[0].enabled=1

28

Odp: USB, extroot, printserver

Wynik blkid pokaż.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

29

Odp: USB, extroot, printserver

/dev/sda1: UUID="75dfbfd0-63bc-ce01-705f-bfd063bcce01" TYPE="ext2"

30

Odp: USB, extroot, printserver

Zły uuid podałeś. To jest  identyfikator partycji gdzie masz extroota, nie partycji ze swapem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

31

Odp: USB, extroot, printserver

a jak poznać uuid do swap?

32

Odp: USB, extroot, printserver

blkid zrób. Nie wycinaj nic z wyniki tylko pokaż co wyszło.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

33

Odp: USB, extroot, printserver

Całość

root@Gargoyle:~# blkid
/dev/sda1: UUID="75dfbfd0-63bc-ce01-705f-bfd063bcce01" TYPE="ext2"
root@Gargoyle:~#

34

Odp: USB, extroot, printserver

Więc wynik

fdisk -l /dev/sda

pokaż. Jeżeli nie masz fdisk to zainstaluj sobie taki pakiet.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

35

Odp: USB, extroot, printserver

root@Gargoyle:~# fdisk -l /dev/sda
-ash: fdisk: not found

Trzeba doinstalować.

36

Odp: USB, extroot, printserver

Pisałem już to, więc doinstaluj i pokaż wynik.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

37

Odp: USB, extroot, printserver

root@Gargoyle:~# fdisk -l /dev/sda

Disk /dev/sda: 1031 MB, 1031274496 bytes
76 heads, 47 sectors/track, 563 cylinders, total 2014208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x24a61805

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1           12288     1482751      735232   83  Linux

38

Odp: USB, extroot, printserver

Ale kręcisz. W poście #22 napisałeś że zrobiłeś swap na partycji. Ty nie masz żadnej innej partycji, więc nie masz i swapu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

39

Odp: USB, extroot, printserver

Nie znam się, ale jest 256mb wolne na pendrive.

40

Odp: USB, extroot, printserver

Ale partycji nie zrobiłeś z tej wolnej przestrzeni.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

41

Odp: USB, extroot, printserver

Device Boot      Start         End      Blocks   Id  System
/dev/sda1           12288     1482751      735232   83  Linux
/dev/sda2            2048       12287        5120   82  Linux swap / Solaris

42

Odp: USB, extroot, printserver

Lepiej. mkswap /dev/sda2 zrób, przez blkid sprawdź uuid, zmień w konfigu i zrestartuj.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

43

Odp: USB, extroot, printserver

Gargoyle:~# vi /etc/config/fstab

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 target '/overlay'
        option device '/dev/sda98'
        option fstype 'ext4'
        option options 'rw,noatime'
        option enabled '0'
        option enabled_fsck '0'

config swap
        option device /dev/sda2
        option uuid     01CEBC63C8DCC9A0
        option enabled '1'


Juz się pogubiłem.

root@Gargoyle:~# free
             total         used         free       shared      buffers
Mem:         29228        23996         5232            0         3280
-/+ buffers:              20716         8512
Swap:            0            0            0

44

Odp: USB, extroot, printserver

Pokaż wyniki poleceń

blkid
swapon /dev/sda2

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

45

Odp: USB, extroot, printserver

root@Gargoyle:~# blkid
/dev/sda1: UUID="75dfbfd0-63bc-ce01-705f-bfd063bcce01" TYPE="ext2"
/dev/sda2: UUID="01CEBC63C8DCC9A0" TYPE="ntfs"
root@Gargoyle:~# swapon /dev/sda2
swapon: /dev/sda2: Invalid argument
root@Gargoyle:~#

46

Odp: USB, extroot, printserver

Jaki znów ntfs? Swap małeś zrobić, nie ntfs na tej partycji.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

47 (edytowany przez dawcior-al 2013-09-29 09:55:00)

Odp: USB, extroot, printserver

root@Gargoyle:~# fdisk -l /dev/sda

Disk /dev/sda: 1031 MB, 1031274496 bytes
32 heads, 62 sectors/track, 1015 cylinders, total 2014208 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x24a61805

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1           12288     1482751      735232   83  Linux
/dev/sda2            2048       12287        5120   82  Linux swap / Solaris

Partition table entries are not in disk order
root@Gargoyle:~#

48

Odp: USB, extroot, printserver

Typ partycji masz swap, ale system plików ntfs na niej. Sformatowałeś ją na ntfs zamiast swap zrobić przez mkswap.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

49

Odp: USB, extroot, printserver

Czyli co muszę teraz wykonać?

50

Odp: USB, extroot, printserver

mkswap /dev/sda2, po raz kolejny to piszę...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.