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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-21-2012, 10:13 AM
|
#1
|
Member
Registered: Aug 2012
Posts: 76
Rep: 
|
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'
|
|
|
08-21-2012, 01:34 PM
|
#3
|
Member
Registered: Aug 2012
Posts: 76
Original Poster
Rep: 
|
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?
|
|
|
08-21-2012, 02:32 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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 02:34 PM.
|
|
|
08-21-2012, 04:22 PM
|
#5
|
Member
Registered: Aug 2012
Posts: 76
Original Poster
Rep: 
|
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
|
|
|
08-21-2012, 05:20 PM
|
#6
|
Member
Registered: Aug 2012
Posts: 76
Original Poster
Rep: 
|
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
|
|
|
08-22-2012, 02:43 PM
|
#7
|
Member
Registered: Aug 2012
Posts: 76
Original Poster
Rep: 
|
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?
|
|
|
All times are GMT -5. The time now is 12:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|