Error 2 While Executing Fsck.swap For /dev
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions fsck error 2 no such file or directory you might have Meta Discuss the workings and policies of this
Fsck Swap Partition
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Fsck Swap Not Found Ubuntu
or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network
The Root Filesystem On Requires A Manual Fsck
administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Strange behavior of fsck up vote 0 down vote favorite I am using Debian 7 with two HDDs: 500Gb PATA and 750Gb SATA. blkid shows me the following: root@intel:/etc# blkid /dev/sda1: UUID="b6350c6b-5fbd-4e07-9a4b-10b600fbb64c" TYPE="swap" /dev/sda2: UUID="2f852e13-38ee-4b56-a474-d675c22d5f28" TYPE="ext4" /dev/sda3: UUID="78e34fe3-365c-4c4d-86b8-51615641f9ec" TYPE="ext4" /dev/sdb1: LABEL="data" UUID="03c3f01f-d390-49de-a570-3de4b73a9fea" TYPE="ext4" content of fstab: root@intel:/etc# cat /etc/fstab #
08:03 AMWhenever i boot up, since i last modified with my /etc/fstab file, i get an Error at the splash screen saying "could not mount swap, S to skip, M to manually recover." i created this thread because i wasnt getting any replies on the other thread, i thought it was probably because it was labeled SOLVED, so i started this one, excuse any misconception about this topic.. "sudo blkid" produces : /dev/sda1: UUID="2955b4dc-24e6-4da1-b5b4-cc7e5c25944" TYPE="ext4" /dev/sda5: UUID="........." TYPE="swap" "cat /etc/fstab" produces : /. . . . proc /proc proc nodev,noexec,nosuid 0 0 /dev/sda1 / ext4 errors=remount-ro 0 0 #swap was on http://serverfault.com/questions/548627/strange-behavior-of-fsck /dev/sda5 during installation UUID=9d3ad268-d68c-4308-845f-30cc6ada2171 none swap sw 0 0 the repeated dots after one another are commends, talking about how to use blkid when i press M to manually recover, i go to the terminal, and when i try to edit my /etc/fstab (nano /etc/fstab) while i am already logged in as root, i get Cannot write changes to disk, Read-only filesystem..?? thank you very much in advance OdaymJanuary 14th, https://ubuntuforums.org/archive/index.php/t-1666687.html 2011, 08:31 AMthe only restriction i have right now is that i cannot edit /etc/fstab because of "Read-only filesystem"...how is my filesystem read-only? I AM ROOT! please help. OdaymJanuary 14th, 2011, 08:39 AMalso, when i run "fsck /dev/sda1" i get : fsck from util-linux-ng 2.17.2 WARNING: bad format on line 11 of /etc/fstab e2fsck 1.41.11 (14-March-2010) /dev/sda1 : clean, 263674/18989056 files, etc...blocks and when i run "fsck /dev/sda5" which is the swap, i get : fsck from util-linux-ng 2.17.2 WARNING: bad format on line 11 of /etc/fstab fsck: fsck.swap: not found fsck: Error 2 while executing fsck.swap for /dev/sda5 the 11th line of /etc/fstab is : UUID=9d3ad268-d68c-4308-845f-30cc6ada2171 and under it none swap sw 0 0 WthItehJanuary 14th, 2011, 08:40 AMthe only restriction i have right now is that i cannot edit /etc/fstab because of "Read-only filesystem"...how is my filesystem read-only? I AM ROOT! please help. The filesystem could be mounted read-only during boot-up due to errors. You should not be able to write on a read-only mounted filesystem even as root. You could boot in recovery mode instead, (single user mode) and try to change the file there. OdaymJanuary 14th, 2011, 08:42 AMbut how do i do that? i dont have a menu that offers me this
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware How does one test the disk surface of the swap partition? User Name Remember Me? Password Linux - Hardware This forum is for http://www.linuxquestions.org/questions/linux-hardware-18/how-does-one-test-the-disk-surface-of-the-swap-partition-59324/ Hardware issues. Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining http://www.thegeekstuff.com/2012/08/fsck-command-examples 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 error 2 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. Introduction to Linux - A Hands on error 2 while Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 1 of 2 1 2 > Search this Thread 05-12-2003, 12:16 AM #1 gregmcavoy Member Registered: Apr 2003 Location: Northern California, USA Distribution: Debian Posts: 54 Rep: How does one test the disk surface of the swap partition? I'm using RH 8.0. I get a "segmentation fault" anytime I try to run Gnome's system monitor, and the lock screen function doesn't do anything. I'm assuming some hardware has failed, and I've tested every hard disk partition except the swap partition using fsck -c -c. How do I test the swap partition? If I find it is OK, should I assume by ABIT BH6 motherboard or Celeron 300 is to blame, and buy a new
ext3, ext4, etc.). Depending on when was the last time a file system was checked, the system runs the fsck during boot time to check whether the filesystem is in consistent state. System administrator could also run it manually when there is a problem with the filesystems. Make sure to execute the fsck on an unmounted file systems to avoid any data corruption issues. This article explains 10 practical examples on how to execute fsck command to troubleshoot and fix any filesystem errors. 1. Filesystem Check on a Disk Partition First, view all the available partitions on your system using parted command as shown below. # parted /dev/sda 'print' Number Start End Size Type File system Flags 1 1049kB 106MB 105MB primary fat16 diag 2 106MB 15.8GB 15.7GB primary ntfs boot 3 15.8GB 266GB 251GB primary ntfs 4 266GB 500GB 234GB extended 5 266GB 466GB 200GB logical ext4 6 467GB 486GB 18.3GB logical ext2 7 487GB 499GB 12.0GB logical fat32 lba You can check a specific filesystem (for example: /dev/sda6) as shown below. # fsck /dev/sda6 fsck from util-linux 2.20.1 e2fsck 1.42 (29-Nov-2011) /dev/sda6: clean, 95/2240224 files, 3793506/4476416 blocks The following are the possible exit codes for fsck command. 0 - No errors 1 - Filesystem errors corrected 2 - System should be rebooted 4 - Filesystem errors left uncorrected 8 - Operational error 16 - Usage or syntax error 32 - Fsck canceled by user request 128 - Shared-library error 2. Fsck Command Specific to a Filesystem Type fsck internally uses the respective filesystem checker command for a filesystem check operation. These fsck checker commands are typically located under /sbin. The following example show the various possible fsck checker commands (for example: fsck.ext2, fsck.ext3, fsck.ext4, etc.) # cd /sbin # ls fsck* fsck fsck.cramfs fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev fsck.minix fsck.msdos fsck.nfs fsck.vfat fsck command will give you an error when it doesn't find a filesystem checker for the filesystem that is being checked. For example, if you exec