Skip to content

Instantly share code, notes, and snippets.

@BugRoger
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BugRoger/67fe14e34f08f7b39ee6 to your computer and use it in GitHub Desktop.
Save BugRoger/67fe14e34f08f7b39ee6 to your computer and use it in GitHub Desktop.
EdgeRouter Reinstall
EMRK>emrk-reinstall
WARNING: This script will reinstall EdgeOS from scratch
If you have any usable data on your router storage,
it will be irrecoverably destroyed!
Do you want to continue?
yes or no: yes
Unmounting boot partition
Unmounting root partition
Re-creating partition table
Creating boot partition
Formatting boot partition
mkfs.vfat 3.0.9 (31 Jan 2010)
Creating root partition
Formatting root partition
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=0x11 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 20 78 00 00 00 08 00
end_request: I/O error, dev sda, sector 2127872
Warning, had trouble writing out superblocks.EMRK>emrk-reinstall
WARNING: This script will reinstall EdgeOS from scratch
If you have any usable data on your router storage,
it will be irrecoverably destroyed!
Do you want to continue?
yes or no: yes
Unmounting boot partition
Unmounting root partition
Re-creating partition table
Creating boot partition
Formatting boot partition
mkfs.vfat 3.0.9 (31 Jan 2010)
Creating root partition
Formatting root partition
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x3 [current]
sd 0:0:0:0: [sda] ASC=0x11 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 20 78 00 00 00 08 00
end_request: I/O error, dev sda, sector 2127872
Warning, had trouble writing out superblocks.
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 38 85 20 00 00 f0 00
end_request: I/O error, dev sda, sector 3704096
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x7 [current]
sd 0:0:0:0: [sda] ASC=0x27 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 38 86 10 00 00 e8 00
end_request: I/O error, dev sda, sector 3704336
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x7 [current]
sd 0:0:0:0: [sda] ASC=0x27 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 38 9f 80 00 00 80 00
end_request: I/O error, dev sda, sector 3710848
sd 0:0:0:0: [sda] Unhandled sense code
sd 0:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:0:0: [sda] Sense Key : 0x7 [current]
sd 0:0:0:0: [sda] ASC=0x27 ASCQ=0x0
sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 04 78 00 00 00 08 00
end_request: I/O error, dev sda, sector 292864
Mounting boot parition
Mounting root partition
mount: mounting /dev/sda2 on /mnt/root failed: Invalid argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment