You are not logged in.

#1 2012-07-04 02:07:18

slughappy1
Member
Registered: 2009-03-20
Posts: 75

[Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

After installing syslinux to be my boot manager I can no longer boot into Arch, I can however boot into Windows 7. When I try to boot into Arch I get the following error.

Loading ../vmlinuz-linux......
Loading ../initramfs-linux.img......ready.
Probing EDD (edd=off to disable)... ok

Decompressing Linux... Parsing ELF... done
Booting the kernel.
:: running early hook [udev]
:: running hook [udev]
:: Triggering uevents...
:: performing fsck on '/dev/sda3'
fsck: fsck.swap: not found
fsck: error 2 while executing fsck.swap for /dev/sda3
ERROR: fsck failed on 'dev/sda3'
:: mounting '/dev/sda3' on real root
mount: unknown filesystem type 'swap'
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs /]# 

What's going on?

Last edited by slughappy1 (2012-07-05 22:50:35)

Offline

#2 2012-07-04 02:40:10

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,551

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

It's telling you that /dev/sda3 is your swap partition.  I wouldn't recommend the swap partition be in the primary partition table.  It should go extended if anywhere.
You may just need to modify your root= to something other than /dev/sda3 to find your real root.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2012-07-04 03:19:19

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

nomorewindows wrote:

It's telling you that /dev/sda3 is your swap partition.  I wouldn't recommend the swap partition be in the primary partition table.  It should go extended if anywhere.
You may just need to modify your root= to something other than /dev/sda3 to find your real root.

I guess I worded my question wrong. Why did it all of a sudden no recognize swap? I guess I should have made it a non primary, what are the reasons it shouldn't be on a primary, other than the ability to only have 4? How do I edit root to fix the boot up problem?

Offline

#4 2012-07-04 03:30:49

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

Can you post your syslinux.cfg please.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2012-07-04 03:49:34

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

loafer wrote:

Can you post your syslinux.cfg please.

Surely

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#   * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT arch
PROMPT 1        # Set to 1 if you always want to display the boot: prompt 
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux 
UI menu.c32
#UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda3 ro
	INITRD ../initramfs-linux.img

LABEL archfallback
	MENU LABEL Arch Linux Fallback
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda3 ro
	INITRD ../initramfs-linux-fallback.img

LABEL windows
        MENU LABEL Windows7
        COM32 chain.c32
        APPEND hd0 1

LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32
 
LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32
 
LABEL off
        MENU LABEL Power Off
        COMBOOT poweroff.com

Offline

#6 2012-07-04 06:46:06

Gutnix
Member
Registered: 2009-03-25
Posts: 12

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

Are you sure, /dev/sda3 is your root partition? I assume, you configured your swap partition as root partition. Enter the proper partition into your syslinux.cfg and everything will work.

Offline

#7 2012-07-04 07:47:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

The default syslinux.cfg has /dev/sda3 in it - maybe you forgot to change it.

Offline

#8 2012-07-04 08:03:08

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

Post the output of "sudo fdisk -l" and your /etc/fstab if you still haven't figured it out.

You may also want to use UUIDs instead of device names (/dev/sdxY): https://wiki.archlinux.org/index.php/Sy … nux_Config


And it doesn't matter if the swap partition is a primary partition. With MBR-formatted drives you only get 4 primary partitions, so maybe that's why nomorewindows suggested placing it in an extended (logical) partition. With 2 GB+ RAM you don't need swap. If you only use swap for hibernation, you can also use a swapfile.

Last edited by DSpider (2012-07-04 08:03:47)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-07-04 08:03:55

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

Why not make sure and use UUIDs?
See here for an example.

Edit: okay, 46 milliseconds too late ... wink

Last edited by JackH79 (2012-07-04 08:04:44)

Offline

#10 2012-07-04 08:05:52

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

As a sidenote; consider using persistent naming (uuid/id/...) when referring to partitions in bootloader (and other) configs. Will save you a fair bit of trouble with bus-based names switching around etc.

See the related wiki article for some additional info.

EDIT: sigh; what the 2 guys before me said basically smile

Last edited by Gcool (2012-07-04 08:06:31)


Burninate!

Offline

#11 2012-07-05 22:50:16

slughappy1
Member
Registered: 2009-03-20
Posts: 75

Re: [Solved]Wont boot after installing syslinux; unknown filesystem 'swap'

Gutnix wrote:

Are you sure, /dev/sda3 is your root partition? I assume, you configured your swap partition as root partition. Enter the proper partition into your syslinux.cfg and everything will work.

tomk wrote:

The default syslinux.cfg has /dev/sda3 in it - maybe you forgot to change it.

... now I just feel dumb that I overlooked that. I changed syslinux.cfg from /dev/sda3 to /dev/sda4 and now everything works. I'm not sure how I overlooked that but now it's fixed. Thanks all.

Offline

Board footer

Powered by FluxBB