Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Swapon o swapoff ... questo e' il problema ???? [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
eleaffar
n00b
n00b


Joined: 09 May 2011
Posts: 26

PostPosted: Mon Apr 16, 2012 2:51 pm    Post subject: Swapon o swapoff ... questo e' il problema ???? [risolto] Reply with quote

Code:


mkswap /dev/sda2
Setting up swapspace version 1, size = 1048572 KiB
no label, UUID=b4fc4ca7-e691-4957-94cb-ab1ad1fa4964

mybox ~ # swapon -v /dev/sda2
swapon on /dev/sda2
swapon: /dev/sda2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/sda2: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon: /dev/sda2: swapon failed: Function not implemented

mybox ~ # zgrep 'CONFIG_SWAP' /proc/config.gz
CONFIG_SWAP=y
mybox ~ # cat /proc/swaps
cat: /proc/swaps: No such file or directory
mybox ~ # swapon -V
swapon (util-linux 2.20.1)
mybox ~ #



Aiutooooo ! Non so che pesci pigliare :-(
Grazie a tutti !
_________________
Ho visto il film Memento ... non me lo ricordo !


Last edited by eleaffar on Tue Apr 17, 2012 12:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
eleaffar
n00b
n00b


Joined: 09 May 2011
Posts: 26

PostPosted: Mon Apr 16, 2012 2:55 pm    Post subject: Reply with quote

Per completezza :
Code:

mybox ~ # uname -a                           
Linux mybox 3.2.1-gentoo-r2 #4 SMP Mon Apr 16 15:58:58 CEST 2012 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux
mybox ~ #

_________________
Ho visto il film Memento ... non me lo ricordo !
Back to top
View user's profile Send private message
xdarma
Guru
Guru


Joined: 08 Dec 2003
Posts: 554
Location: tra veneto e friuli (Italy)

PostPosted: Mon Apr 16, 2012 5:47 pm    Post subject: Re: Swapon o swapoff ... questo e' il problema ???? Reply with quote

Code:

mkswap /dev/sda2
Setting up swapspace version 1, size = 1048572 KiB

mybox ~ # swapon -v /dev/sda2
swapon on /dev/sda2
swapon: /dev/sda2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/sda2: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon: /dev/sda2: swapon failed: Function not implemented

Le dimensioni differiscono tra mkswap e swapon.
Hai provato a riavviare o ad utilizzare "hdparm -z /dev/sda"?
_________________
proud user of faKeDE-4.7.3
Back to top
View user's profile Send private message
eleaffar
n00b
n00b


Joined: 09 May 2011
Posts: 26

PostPosted: Tue Apr 17, 2012 8:23 am    Post subject: Re: Swapon o swapoff ... questo e' il problema ???? Reply with quote

xdarma wrote:
Code:

mkswap /dev/sda2
Setting up swapspace version 1, size = 1048572 KiB

mybox ~ # swapon -v /dev/sda2
swapon on /dev/sda2
swapon: /dev/sda2: found swap signature: version 1, page-size 4, same byte order
swapon: /dev/sda2: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon: /dev/sda2: swapon failed: Function not implemented

Le dimensioni differiscono tra mkswap e swapon.
Hai provato a riavviare o ad utilizzare "hdparm -z /dev/sda"?

Spento e riacceso un mucchio di volte, sono un utente linux ma penso che le magie che talvolta funzionano su windows possono funzionare anche su linux ... ma niente :-)
Allora lancio il comando che mi hai consigliato
Quote:

mybox ~ # hdparm -z /dev/sda

/dev/sda:
re-reading partition table
BLKRRPART failed: Device or resource busy
mybox ~ #

Tiro fuori il disco di installazione e lo faccio ripartire e da li lancio hdparm -z /dev/sda, tutto ok, mi segnala che ha riletto le partizioni.
Con il disco di installazione provo a fare swapon /dev/sda2 e mi funziona alla grande.
Rilanciando il mio kernel niente swapon non funziona :-(
Ma dove sbaglio ????
_________________
Ho visto il film Memento ... non me lo ricordo !
Back to top
View user's profile Send private message
eleaffar
n00b
n00b


Joined: 09 May 2011
Posts: 26

PostPosted: Tue Apr 17, 2012 12:07 pm    Post subject: Reply with quote

MISTERO DELLA FEDE !
Scaricato il nuovo kernel
mybox ~ # uname -a
Linux mybox 3.2.12-gentoo #1 SMP Tue Apr 17 23:24:05 CEST 2012 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux

fatto
make oldconfig
adesso funziona regolarmente ...
Code:
mybox ~ # cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/sda2                               partition       1048572 0       -1


8O 8O 8O
_________________
Ho visto il film Memento ... non me lo ricordo !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum