Skip to content

Instantly share code, notes, and snippets.

View KenwoodFox's full-sized avatar
💽
wstool update -t src

KenwoodFox KenwoodFox

💽
wstool update -t src
View GitHub Profile
# mount -o sb=163840 /dev/sda1 /mnt/rescue/
mount: /mnt/rescue: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
# mount -o sb=163841 /dev/sda1 /mnt/rescue/
mount: /mnt/rescue: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
# hexdump -s $((4096*163840)) -n 1024 rescue.img -C
28000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
28000200 00 e0 01 00 3e 7e 07 00 e9 5f 00 00 64 87 05 00 |....>~..._..d...|
28000210 f6 a7 01 00 00 00 00 00 02 00 00 00 02 00 00 00 |................|
28000220 00 80 00 00 00 80 00 00 00 20 00 00 8e 65 87 59 |......... ...e.Y|
28000230 fe 65 87 59 01 00 ff ff 53 ef 00 00 01 00 00 00 |.e.Y....S.......|
28000240 89 65 87 59 00 00 00 00 00 00 00 00 01 00 00 00 |.e.Y............|
28000250 00 00 00 00 0b 00 00 00 00 01 05 00 38 00 00 00 |............8...|
28000260 02 00 00 00 03 00 00 00 6f 78 e7 92 4c f6 49 78 |........ox..L.Ix|
# hexdump -s $((4096*32768)) -n 1024 rescue.img -C
08000000 42 db e9 10 17 7e 42 b7 9d ee 48 23 b7 d3 4d 33 |B....~B...H#..M3|
08000010 c9 ad e8 90 c8 c4 8d a8 c3 24 b7 b3 a7 49 6e 60 |.........$...In`|
08000020 b8 60 23 af 1a a7 9c 27 32 ba 02 5a f5 df c8 72 |.`#....'2..Z...r|
08000030 9d 2c 21 de c2 4e 6b 43 53 2f 67 8e c0 a1 1c a0 |.,!..NkCS/g.....|
08000040 c4 3a e8 71 d4 dc b3 c4 10 85 57 25 64 70 31 b7 |.:.q......W%dp1.|
08000050 3a ab 2c 04 13 62 6f 04 63 0f 14 1a 30 ac d0 1a |:.,..bo.c...0...|
08000060 5f ad 66 4a e1 2e 68 1e cb 35 40 b8 ab d8 ba 21 |_.fJ..h..5@....!|
08000070 c4 a5 e2 a0 c9 19 28 92 ed 17 78 71 0b 9c bf de |......(...xq....|
08000080 95 c7 b1 2b 38 47 47 a4 c0 2a 97 e3 a5 ca 0b d9 |...+8GG..*......|
# hexdump -s 32768 -n 4096 rescue.img -C
00008000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00008200 08 80 00 00 08 80 01 00 08 80 02 00 08 80 03 00 |................|
00008210 08 80 04 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00008220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00009000
# hexdump -s 8193 -n 4096 /dev/sda1 -C
# mkfs.ext2 -n /dev/sda1
mke2fs 1.47.0 (5-Feb-2023)
/dev/sda1 contains a ext2 file system labelled 'ROOT_FS'
last mounted on Tue Mar 8 14:40:47 2022
Proceed anyway? (y,N) y
Creating filesystem with 491070 4k blocks and 122880 inodes
Filesystem UUID: 382b22e4-7b57-4c03-be28-348c3ac50851
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
e2fsck -b 8193 /dev/sda1
e2fsck 1.47.0 (5-Feb-2023)
e2fsck: Bad magic number in super-block while trying to open /dev/sda1
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
uhub5: <vendor 0x04b4 product 0x6560, class 9/0, rev 2.00/0.0b, addr 3> on usbus3
uhub5: MTT enabled
Root mount waiting for: usbus3
uhub5: 4 ports with 4 removable, self powered
lo0: link state changed to UP
bce1: Gigabit link up!
bce1: link state changed to UP
bce0: Gigabit link up!
bce0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
bconsole
Connecting to Director 10.85.3.30:9101
1000 OK: 103 bacula-dir Version: 9.4.2 (04 February 2019)
Enter a period to cancel a command.
*status all
bacula-dir Version: 9.4.2 (04 February 2019) x86_64-pc-linux-gnu ubuntu 20.04
Daemon started 29-Nov-22 21:07, conf reloaded 29-Nov-2022 21:07:14
Jobs: run=1, running=1 mode=0,0
Heap: heap=241,664 smbytes=143,114 max_bytes=183,427 bufs=499 max_bufs=566
Res: njobs=12 nclients=2 nstores=1 npools=5 ncats=1 nfsets=13 nscheds=3
# Plugging into the rear
```
...
[ 276.791396] usb 1-5: can't set config #1, error -71
[ 276.791495] usb 1-5: USB disconnect, device number 98
[ 277.328923] usb 1-5: new high-speed USB device number 99 using xhci_hcd
[ 277.782024] usb 1-5: New USB device found, idVendor=6e30, idProduct=fef0, bcdDevice= 4.09
[ 277.782027] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 277.782028] usb 1-5: Product: OBSBOT Tiny
[ 277.782030] usb 1-5: Manufacturer: Remo Tech Co., Ltd.
Application: KiCad Schematic Editor
Version: (6.0.2), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.82.0 OpenSSL/1.1.1m zlib/1.2.11 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.47.0
Platform: Linux 5.10.105-1-MANJARO x86_64, 64 bit, Little endian, wxGTK, KDE, x11