LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2012, 11:13 AM   #1
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Rep: Reputation: Disabled
mount: unknown filesystem type 'swap'


Hi,

I'm trying to mount a file system, but I got the error:

mount: unknown filesystem type 'swap'

Any help is appreciated

This is the result of lvs:


lvs
Found duplicate PV US1LgrWctRqLSEl0JWE5k7R9OU7tsh5T: using /dev/mapper/loop3p2 not /dev/mapper/loop1p2
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
lv1 vg1 -wi-ao-- 39.06g
lv2 vg1 -wi-ao-- 858.53g
lv3 vg1 -wi-ao-- 33.41g
lv_root vg_b -wi-a--- 17.53g
lv_swap vg_b -wi-a--- 1.97g



and
# mount /dev/vg_b/lv_root /mnt/img

# mount /dev/vg_b/lv_swap /mnt/img
mount: unknown filesystem type 'swap'
 
Old 08-21-2012, 11:41 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You don't mount a swap partition to a location in your directory structure

http://www.linuxforums.org/forum/red...ux-redhat.html
 
Old 08-21-2012, 02:34 PM   #3
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
Thanks a lot, actually i'm doing mounting for my cm image, but in this link, it seems its creating swap drive for host vm. Could you please help me to create the swap for my vm image?
 
Old 08-21-2012, 03:32 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
It should all work the same in a VM. As far as the VM is concerned, it's a real machine...sort of like the Truman Show, and all commands and operations should be done as if it's a real machine.

Last edited by suicidaleggroll; 08-21-2012 at 03:34 PM.
 
Old 08-21-2012, 05:22 PM   #5
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
But this is what I got:

# cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-0 partition 35028988 0 0



mkswap /dev/dm-1
/dev/dm-1: Device or resource busy

# swapon /dev/dm-0
swapon: /dev/mapper/vg1-lv3: stat failed: No such file or directory
 
Old 08-21-2012, 06:20 PM   #6
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
and when I'm trying kernel without ro quiet splash this is gonna be the result:


grubdom> kernel /vmlinuz-3.3.4-5.fc17.i686 root=(hd0,0)

grubdom> boot
xc: error: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images: Invalid kernel
xc_dom_parse_image returned -1
close(3)

Error 9: Unknown boot failure
 
Old 08-22-2012, 03:43 PM   #7
sanaz
Member
 
Registered: Aug 2012
Posts: 76

Original Poster
Rep: Reputation: Disabled
I'm not sure it's related or not. but when I mounted the image to /mnt/img, I figure out /mnt/img/boot is empty., Is it normal?
 
  


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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 08:29 PM
mount: unknown filesystem type 'LVM2_member' santana Linux - Hardware 3 02-28-2008 07:20 AM
mount: unknown filesystem type 'ntfs' yogemathur Linux - Desktop 5 11-06-2007 07:38 AM
mount: unknown filesystem type 'NTFS' jnorcal Slackware 8 09-07-2005 07:18 PM
mount: unknown filesystem type 'ntfs' lowrida Linux - Newbie 3 08-01-2005 05:02 PM


All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration