LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-25-2010, 10:46 AM   #1
rmknox
Member
 
Registered: May 2010
Posts: 352

Rep: Reputation: 29
read swap header failed invalid arguement Fedora 12


When I boot, after startup and before I log on, an error icon appears. I click - it shows a summary of the
material that normally rolls by on a unix startup. One item is checked. it says
Code:
Enabling /etc/fstab swaps: swapon: /dev/mapping/vg_knox-lv_swap: 
read swap header failed: invalid arguement
I have 1 disk - it has 2 partitions - one an 83 type with a file system in it, holds the kernel, mounts at /boot.

The second partition is an 8e type contains a volume group logically split between lv_root and lv_swap and physically located on sda2.

As I understand it, the system is having trouble processing the commands for lv_swap.

I am tempted to mess with these commands, but don't have enough know how to do so and am short on the time required to learn enough to master this subject.

Can someone help?

Dick

Fedora 12
 
Old 08-25-2010, 11:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Doesn't sound too serious - presumably you can login o.k.

Lets' see the output of "swapon -s".
 
1 members found this post helpful.
Old 08-25-2010, 12:14 PM   #3
rmknox
Member
 
Registered: May 2010
Posts: 352

Original Poster
Rep: Reputation: 29
here is swapon -s
Code:
Filename				Type		Size	Used	Priority
correct - not too serious because I'm not doing anyting right now that would require swapping.

regrding verified backup - i have one but am having some trouble doing another - it is the subject of another thread

while you're at it it would be nice if you told me the recognized way to do a full disk backup - I dont see a way to do it with tar because lvm has taken control of main partition - did one with clonezilla which I doubt is the "official" way

thanks

dick
 
Old 08-26-2010, 05:44 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Just do a mkswap on that lv (as root); then "swapon". Then try the "swapon -s" again to confirm.
Reboot just to be sure.

*Edit*: forgot to mention; F13 uses UUID in fstab, don't know about F12. The mkswap will change the UUID - make sure you check fstab before the reboot.

Hmmm - "recognised", ... "official" ...
Wrong person to ask. Do what works for you. I like things that protect me like dvdisaster and fsarchiver.

Last edited by syg00; 08-26-2010 at 05:53 AM.
 
2 members found this post helpful.
Old 08-27-2010, 10:25 AM   #5
rmknox
Member
 
Registered: May 2010
Posts: 352

Original Poster
Rep: Reputation: 29
syg00 - worked like a charm - thanks (looks like the thanks icon is gone)

Ill look at fsarchiver - I want to copy my fedora 12 system to a new smaller drive - system is using a small fraction of current drive

am stuck trying to do it with fdisk and tar

used fdisk to make 2nd drive have same partitions - copied sda1 (kernel) no sweat since it has a file system -- I just used tar pipe tar.

but sda2 is a different story since it contins lvm combination of a lv (lv_root) with a file system and a lv wiothout a filesystem (lv_swap). Have not figured out how to mount it so that tar can get to the lv_root.

any suggestions?

Last edited by rmknox; 08-27-2010 at 10:30 AM.
 
Old 08-27-2010, 06:31 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
If I have access to both disks I don't even both with tar - just "cp -a ...".
KISS.

As for the lv issue, just make sure they (and the vg) aren't the same name as any already known to LVM - then they should be discovered automagically. Else try the {pv,vg,lv}scan suite to see what gets found.

Seems jeremy is trying (yet another) reputation/thanks system. Try hovering over the "scales" ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 04:16 AM
Fedora 9: Compile Apache 2.2.9 failed (can't read APR issue) seow_ming Fedora 7 04-24-2010 12:24 AM
Invalid ELF header? Am I screwed? MythN00b Linux - Software 2 01-25-2008 06:52 AM
Transcode invalid ELF header DragonM15 Linux - Software 8 05-13-2007 11:09 PM
Wine: Invalid ELF Header stevesk Linux - Software 1 07-17-2006 10:50 PM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration