Thread: Messed up the fstab file in Ubuntu 12.04
i changed 1 of partition ntfs, started getting error "press s skip or m manual recovery". tried ntfs-3g application , pysdm of no help.
messed fstab file manually. dont know changes made. , cant boot in normal mode.it says can't mount.and when try fix grub error through recovery mode/it prompts plymouth not found or this.
booted via live cd, downloaded bootinfoscript result.
attaching it.
code:boot info script 0.61 [1 april 2012] ============================= boot info summary: =============================== => grub2 (v1.99) installed in mbr of /dev/sda , looks @ sector 1 of same hard drive core.img. core.img @ location , looks (,msdos6)/boot/grub on drive. => syslinux mbr (4.04 , higher) installed in mbr of /dev/sdb. sda1: __________________________________________________________________________ file system: ntfs boot sector type: windows vista/7: ntfs boot sector info: no errors found in boot parameter block. operating system: windows 7 boot files: /grldr /bootmgr /boot/bcd /windows/system32/winload.exe /grldr sda2: __________________________________________________________________________ file system: extended partition boot sector type: unknown boot sector info: sda5: __________________________________________________________________________ file system: ntfs boot sector type: windows xp: ntfs boot sector info: according info in boot sector, sda5 starts @ sector 63. operating system: boot files: sda6: __________________________________________________________________________ file system: ext4 boot sector type: - boot sector info: operating system: ubuntu 12.04 lts boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sda7: __________________________________________________________________________ file system: swap boot sector type: - boot sector info: sda8: __________________________________________________________________________ file system: ntfs boot sector type: windows vista/7: ntfs boot sector info: according info in boot sector, sda8 starts @ sector 1901. according info fdisk, sda8 starts @ sector 231643136. operating system: boot files: sdb1: __________________________________________________________________________ file system: vfat boot sector type: syslinux 4.06 4.06-pre1 boot sector info: syslinux looks @ sector 32800 of /dev/sdb1 second stage. syslinux installed in /multiboot directory. integrity check of adv area failed. no errors found in boot parameter block. operating system: boot files: ============================ drive/partition info: ============================= drive: sda _____________________________________________________________________ disk /dev/sda: 160.0 gb, 160000000000 bytes 255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes partition boot start sector end sector # of sectors id system /dev/sda1 * 63 102,767,804 102,767,742 7 ntfs / exfat / hpfs /dev/sda2 102,767,866 312,498,175 209,730,310 5 extended /dev/sda5 102,767,868 207,640,124 104,872,257 7 ntfs / exfat / hpfs /dev/sda6 207,640,188 227,640,187 20,000,000 83 linux /dev/sda7 227,641,344 231,641,087 3,999,744 82 linux swap / solaris /dev/sda8 231,643,136 312,498,175 80,855,040 7 ntfs / exfat / hpfs drive: sdb _____________________________________________________________________ disk /dev/sdb: 8036 mb, 8036286464 bytes 255 heads, 63 sectors/track, 977 cylinders, total 15695872 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes partition boot start sector end sector # of sectors id system /dev/sdb1 * 2,200 15,695,504 15,693,305 b w95 fat32 "blkid" output: ________________________________________________________________ device uuid type label /dev/loop0 squashfs /dev/sda1 2a80a34780a31879 ntfs /dev/sda5 7228fdc428fd877f ntfs /dev/sda6 191d2eac-f94d-4b90-9602-f1c66de131b6 ext4 /dev/sda7 1c6662d6-245b-4ce3-af9b-34e9663bb02c swap /dev/sda8 f6a04fbea04f83d9 ntfs /dev/sdb1 5cda-14b4 vfat multiboot /dev/sr0 iso9660 pathways1gold1.2 ================================ mount points: ================================= device mount_point type options /dev/loop0 /rofs squashfs (ro,noatime) /dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/sr0 /media/pathways1gold1.2 iso9660 (ro,nosuid,nodev,uid=999,gid=999,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks) =========================== sda6/boot/grub/grub.cfg: =========================== -------------------------------------------------------------------------------- # # not edit file # # automatically generated grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub # ### begin /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; set have_grubenv=true load_env fi set default="0" if [ "${prev_saved_entry}" ]; set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; saved_entry="${chosen}" save_env saved_entry fi } function recordfail { set recordfail=1 if [ -n "${have_grubenv}" ]; if [ -z "${boot_once}" ]; save_env recordfail; fi; fi } function load_video { insmod vbe insmod vga insmod video_bochs insmod video_cirrus } insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 if loadfont /usr/share/grub/unicode.pf2 ; set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 set locale_dir=($root)/boot/grub/locale set lang=en_in insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ]; set timeout=-1 else set timeout=10 fi ### end /etc/grub.d/00_header ### ### begin /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/light-gray if background_color 44,0,30; clear fi ### end /etc/grub.d/05_debian_theme ### ### begin /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="$1" if [ "$1" = "keep" ]; set vt_handoff=vt.handoff=7 else set vt_handoff= fi } if [ ${recordfail} != 1 ]; if [ -e ${prefix}/gfxblacklist.txt ]; if hwmatch ${prefix}/gfxblacklist.txt 3; if [ ${match} = 0 ]; set linux_gfx_mode=keep else set linux_gfx_mode=text fi else set linux_gfx_mode=text fi else set linux_gfx_mode=keep fi else set linux_gfx_mode=text fi export linux_gfx_mode if [ "$linux_gfx_mode" != "text" ]; load_video; fi menuentry 'ubuntu, linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 linux /boot/vmlinuz-3.2.0-23-generic root=uuid=191d2eac-f94d-4b90-9602-f1c66de131b6 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-23-generic } menuentry 'ubuntu, linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 echo 'loading linux 3.2.0-23-generic ...' linux /boot/vmlinuz-3.2.0-23-generic root=uuid=191d2eac-f94d-4b90-9602-f1c66de131b6 ro recovery nomodeset echo 'loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-23-generic } ### end /etc/grub.d/10_linux ### ### begin /etc/grub.d/20_linux_xen ### ### end /etc/grub.d/20_linux_xen ### ### begin /etc/grub.d/20_memtest86+ ### menuentry "memory test (memtest86+)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 linux16 /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" { insmod part_msdos insmod ext2 set root='(hd0,msdos6)' search --no-floppy --fs-uuid --set=root 191d2eac-f94d-4b90-9602-f1c66de131b6 linux16 /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ### ### begin /etc/grub.d/30_os-prober ### menuentry "windows 7 (loader) (on /dev/sda1)" --class windows --class os { insmod part_msdos insmod ntfs set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 2a80a34780a31879 chainloader +1 } ### end /etc/grub.d/30_os-prober ### ### begin /etc/grub.d/40_custom ### # file provides easy way add custom menu entries. type # menu entries want add after comment. careful not change # 'exec tail' line above. ### end /etc/grub.d/40_custom ### ### begin /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; source $prefix/custom.cfg; fi ### end /etc/grub.d/41_custom ### -------------------------------------------------------------------------------- =============================== sda6/etc/fstab: ================================ -------------------------------------------------------------------------------- # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 #entry /dev/sda6 : uuid=191d2eac-f94d-4b90-9602-f1c66de131b6 / ext4 errors=remount -ro 0 1 #entry /dev/sdb5 : uuid=50747f3e747f263e /media/arif\040catalyst ntfs-3g defaults,nosuid,nodev,locale=en_in 0 0 #entry /dev/sda1 : uuid=2a80a34780a31879 /media/sda1 ntfs-3g defaults,locale=en_in 0 0 #entry /dev/sda5 : uuid=7228fdc428fd877f /media/sda5 ntfs-3g defaults,locale=en_in 0 0 #entry /dev/sda8 : uuid=f6a04fbea04f83d9 /media/sda8 ntfs-3g defaults,locale=en_in 0 0 uuid=2337-c493 0 1 #entry /dev/sda7 : uuid=1c6662d6-245b-4ce3-af9b-34e9663bb02c none swap sw 0 0 /dev/sda6 /media/sda6 ext4 defaults 0 0 -------------------------------------------------------------------------------- =================== sda6: location of files loaded grub: ==================== gib - gb file fragment(s) = boot/grub/core.img 1 = boot/grub/grub.cfg 1 = boot/initrd.img-3.2.0-23-generic 1 = boot/vmlinuz-3.2.0-23-generic 1 = initrd.img 1 = vmlinuz 1 ======================== unknown mbrs/boot sectors/etc: ======================== unknown bootloader on sda2 00000000 24 78 f5 f1 a2 ab 18 c8 89 8f 08 20 44 e7 a7 61 |$x......... d..a| 00000010 03 4e a0 5c 36 02 45 f4 c8 76 2b 89 1c 96 83 27 |.n.\6.e..v+....'| 00000020 c8 d8 37 73 14 07 c8 51 31 ce ea 56 39 07 dc f1 |..7s...q1..v9...| 00000030 ea c1 89 58 22 13 61 34 1a a4 f4 0b 62 f5 53 71 |...x".a4....b.sq| 00000040 a0 75 26 ee 08 43 8d ae 9a c0 b8 eb 1f dd 45 1b |.u&..c........e.| 00000050 e1 1e 5c d9 2d 70 8c 94 8a b0 64 f9 b6 f7 d1 21 |..\.-p....d....!| 00000060 64 a7 3b 7a b8 37 5e 77 7e e8 f7 2e 40 d7 76 |d.;z.7^w~....@.v| 00000070 a0 bc 91 f6 8f f2 c0 ab cf f4 f4 69 4e 73 f6 ce |...........ins..| 00000080 cc c7 ed 2f 5a bb 33 43 94 1e f5 92 9e 0b 8d 9b |.../z.3c........| 00000090 df f3 9f c8 80 6f f5 12 a3 c7 1b 74 64 42 ba 11 |.....o.....tdb..| 000000a0 90 2b b5 24 27 a8 05 ab 94 3a 54 d3 a7 13 5c 22 |.+.$'....:t...\"| 000000b0 56 1b fe 67 38 c1 22 61 bd 82 51 32 2e 3a 13 82 |v..g8."a..q2.:..| 000000c0 68 2d 0a 72 58 d4 cb 47 35 69 80 d3 80 31 3e a3 |h-.rx..g5i...1>.| 000000d0 bd 8d 27 ea ee 3f 30 d4 7b 0f ba e5 35 fc b8 |..'...?0.{...5..| 000000e0 0c 24 64 31 23 19 7e af 31 03 ee aa 63 3e 2b b5 |.$d1#.~.1...c>+.| 000000f0 cc 9f 91 6a dc 40 45 16 a2 0c cc 25 c1 09 6a 4c |...j.@e....%..jl| 00000100 33 69 3c 78 c1 4e 15 7a 3e 61 18 6f 87 11 1a f1 |3i<x.n.z>a.o....| 00000110 3a ab b5 ff 39 1f 2b ac dd 8c 01 8b fa 90 57 d6 |:...9.+.......w.| 00000120 97 52 09 60 6a 4c 88 41 15 d9 76 3b 23 82 03 ee |.r.`jl.a..v;#...| 00000130 c1 08 0a c0 3c 31 ea 8a 3e 53 25 03 c8 a2 bb ed |....<1..>s%.....| 00000140 ef 39 44 01 56 e9 d0 9b 6f c5 7f 26 71 69 df 45 |.9d.v...o..&qi.e| 00000150 17 0e 08 c6 1f 50 79 47 7e b9 b1 a6 63 15 8d 2a |.....pyg~...c..*| 00000160 f2 75 65 73 bd ff e4 21 02 7c ab 47 a7 9f a5 8e |.ues...!.|.g....| 00000170 f6 16 28 29 18 52 d1 7c 53 17 1c 8c 03 c2 c5 25 |..().r.|s......%| 00000180 5a 5e e2 cd d7 65 bd 6b 87 56 73 b7 fe fb 4e 61 |z^...e.k.vs...na| 00000190 14 76 e2 01 60 11 e9 c1 76 c3 df cc e0 82 5c 75 |.v..`...v.....\u| 000001a0 dd 4c 35 28 dc f3 52 11 b6 ab 4e 8e af 54 d1 55 |.l5(..r...n..t.u| 000001b0 2b 88 ac 65 30 64 b9 ae 9f 17 70 7f 32 2c 00 fe |+..e0d....p.2,..| 000001c0 ff ff 07 fe ff ff 02 00 00 00 41 39 40 06 00 fe |..........a9@...| 000001d0 ff ff 05 fe ff ff 43 39 40 06 3f 2d 31 01 00 00 |......c9@.?-1...| 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............u.| 00000200 =============================== stderr messages: =============================== xz: (stdin): compressed data corrupt awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in awk: cmd. line:36: math support not compiled in /home/this/desktop/bootinfoscript: line 1646: [: 2.73495e+09: integer expression expected
ntfs-3g driver ntfs filesystem , installed. pysdm old buggy, unmaintained piece of software , suggest uninstall have repaired system. need mount sda6 root partition live cd , edit fstab live session. do:
boot live cd , "try ubuntu" live desktop. open nautilus file browser , click on sda6 root partition in left pane. since has no partition label, appear either "10.2gb filesystem" or "9.5gb filesystem," or similar. once has automounted, press ctrl-l see mount path is. should "/media/191d2eac-f94d-4b90-9602-f1c66de131b6". if is, open terminal, and:
don't forget tab completion in terminal when 191d2eac-f94d-4b90-9602-f1c66de131b6! /etc/fstab @ moment , i've highlighted 2 problem lines:code:gksu gedit /media/191d2eac-f94d-4b90-9602-f1c66de131b6/etc/fstab
the lines in red refer partition not exist , line in green malformed, , don't think want mount partition anyway. remove 2 lines , save. reboot , see if helps.code:# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 #entry /dev/sda6 : uuid=191d2eac-f94d-4b90-9602-f1c66de131b6 / ext4 errors=remount -ro 0 1 #entry /dev/sdb5 : uuid=50747f3e747f263e /media/arif\040catalyst ntfs-3g defaults,nosuid,nodev,locale=en_in 0 0 #entry /dev/sda1 : uuid=2a80a34780a31879 /media/sda1 ntfs-3g defaults,locale=en_in 0 0 #entry /dev/sda5 : uuid=7228fdc428fd877f /media/sda5 ntfs-3g defaults,locale=en_in 0 0 #entry /dev/sda8 : uuid=f6a04fbea04f83d9 /media/sda8 ntfs-3g defaults,locale=en_in 0 0 uuid=2337-c493 0 1 #entry /dev/sda7 : uuid=1c6662d6-245b-4ce3-af9b-34e9663bb02c none swap sw 0 0 /dev/sda6 /media/sda6 ext4 defaults 0 0
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Messed up the fstab file in Ubuntu 12.04
Ubuntu
Comments
Post a Comment