{"action":"created","issue":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/288","labels_url":"https://api.github.com/repos/dnschneid/crouton/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/dnschneid/crouton/issues/288/comments","events_url":"https://api.github.com/repos/dnschneid/crouton/issues/288/events","html_url":"https://github.com/dnschneid/crouton/issues/288","id":17310824,"number":288,"title":"Suspend/resume breaks chroot when running off external SDC card","user":{"login":"stsquad","id":22458,"avatar_url":"https://avatars.githubusercontent.com/u/22458?v=3","gravatar_id":"","url":"https://api.github.com/users/stsquad","html_url":"https://github.com/stsquad","followers_url":"https://api.github.com/users/stsquad/followers","following_url":"https://api.github.com/users/stsquad/following{/other_user}","gists_url":"https://api.github.com/users/stsquad/gists{/gist_id}","starred_url":"https://api.github.com/users/stsquad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stsquad/subscriptions","organizations_url":"https://api.github.com/users/stsquad/orgs","repos_url":"https://api.github.com/users/stsquad/repos","events_url":"https://api.github.com/users/stsquad/events{/privacy}","received_events_url":"https://api.github.com/users/stsquad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dnschneid/crouton/labels/upstreambug","name":"upstreambug","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":44,"created_at":"2013-07-28T11:17:41Z","updated_at":"2015-01-07T10:22:17Z","closed_at":null,"body":"On my Chromebook Pixel it looks like a suspend/resume cycle leaves the chroot in an odd state.\r\n\r\n04:14 alex@localhost/x86_64 [~] >echo \"before suspend\"\r\nbefore suspend\r\n04:14 alex@localhost/x86_64 [~] >echo \"after suspend\"\r\nafter suspend\r\n-su: history: /home/alex/.bash_history: cannot create: Input/output error\r\n11:15 alex@localhost/x86_64 [~] >\r\n\r\nLooking at the dmesg it looks like there are ext4 errors on the SDC card which forces a re-mount breaking the chroot (or possibly the SDC is just unmounted as part of the suspend cycle).\r\n\r\nss     Generic  STORAGE DEVICE   0207 PQ: 0 ANSI: 0\r\n[15015.434666] sd 12:0:0:0: [sdf] 125827072 512-byte logical blocks: (64.4 GB/59.9 GiB)\r\n[15015.435935] sd 12:0:0:0: [sdf] Write Protect is off\r\n[15015.435946] sd 12:0:0:0: [sdf] Mode Sense: 0b 00 00 08\r\n[15015.437146] sd 12:0:0:0: [sdf] No Caching mode page present\r\n[15015.437156] sd 12:0:0:0: [sdf] Assuming drive cache: write through\r\n[15015.441164] sd 12:0:0:0: [sdf] No Caching mode page present\r\n[15015.441174] sd 12:0:0:0: [sdf] Assuming drive cache: write through\r\n[15015.448779]  sdf: sdf1\r\n[15015.452132] sd 12:0:0:0: [sdf] No Caching mode page present\r\n[15015.452142] sd 12:0:0:0: [sdf] Assuming drive cache: write through\r\n[15015.452151] sd 12:0:0:0: [sdf] Attached SCSI removable disk\r\n[15016.731447] EXT4-fs (sdf1): recovery complete\r\n[15016.736860] EXT4-fs (sdf1): mounted filesystem with ordered data mode. Opts: \r\n[15024.898066] wlan0: no IPv6 routers present\r\n[15029.857907] EXT4-fs error (device sde1): ext4_find_entry:935: inode #3020490: comm bash: reading directory lblock 0\r\n[15029.857941] EXT4-fs error (device sde1): ext4_read_inode_bitmap:171: comm bash: Cannot read inode bitmap - block_group = 368, inode_bitma\r\np = 12058640\r\n[15029.857954] EXT4-fs error (device sde1) in ext4_new_inode:895: IO failure\r\n[15029.857993] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2884078: comm bash: reading directory lblock 0\r\n[15029.858071] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2883586: comm bash: reading directory lblock 0\r\n[15029.858090] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2883586: comm bash: reading directory lblock 0\r\n[15035.044833] Aborting journal on device sde1-8.\r\n[15035.044845] Buffer I/O error on device sde1, logical block 7372800\r\n[15035.044851] lost page write due to I/O error on sde1\r\n[15035.044857] JBD2: Error -5 detected when updating journal superblock for sde1-8.\r\n[15092.013341] EXT4-fs error (device sde1): ext4_find_entry:935: inode #3020490: comm bash: reading directory lblock 0\r\n[15092.013363] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2884078: comm bash: reading directory lblock 0\r\n[15092.013395] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2883587: comm bash: reading directory lblock 0\r\n[15092.013410] EXT4-fs error (device sde1): ext4_find_entry:935: inode #2884078: comm bash: reading directory lblock 0\r\n[15092.014147] EXT4-fs error (device sde1): ext4_journal_start_sb:328: Detected aborted journal\r\n[15092.014160] EXT4-fs (sde1): Remounting filesystem read-only\r\n[15094.359077] EXT4-fs error (device sde1): ext4_find_entry:935: inode #3020490: comm bash: reading directory lblock 0"},"comment":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/comments/69003229","html_url":"https://github.com/dnschneid/crouton/issues/288#issuecomment-69003229","issue_url":"https://api.github.com/repos/dnschneid/crouton/issues/288","id":69003229,"user":{"login":"ee7klt","id":1049154,"avatar_url":"https://avatars.githubusercontent.com/u/1049154?v=3","gravatar_id":"","url":"https://api.github.com/users/ee7klt","html_url":"https://github.com/ee7klt","followers_url":"https://api.github.com/users/ee7klt/followers","following_url":"https://api.github.com/users/ee7klt/following{/other_user}","gists_url":"https://api.github.com/users/ee7klt/gists{/gist_id}","starred_url":"https://api.github.com/users/ee7klt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ee7klt/subscriptions","organizations_url":"https://api.github.com/users/ee7klt/orgs","repos_url":"https://api.github.com/users/ee7klt/repos","events_url":"https://api.github.com/users/ee7klt/events{/privacy}","received_events_url":"https://api.github.com/users/ee7klt/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T10:22:17Z","updated_at":"2015-01-07T10:22:17Z","body":"hi grobbie, can you please elaborate on \"I edited the chroot's /etc/passwd and set my home directory to the path on the sd card. I removed the home directory in the chroot and migrated the chroot back to the ssd drive in the chromebook.\". In particular, can you provide sample cod for each stop of the way?\r\n thanks."}}