Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login as: pi
- pi@192.168.1.200's password:
- Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- SSH is enabled and the default password for the 'pi' user has not been changed.
- This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
- pi@raspberrypi:~ $ sudo fdisk -l
- Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 532480 15523839 14991360 7.2G 83 Linux
- pi@raspberrypi:~ $ sudo fdisk -l
- Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 532480 15523839 14991360 7.2G 83 Linux
- Disk /dev/sda: 59.6 GiB, 64023257088 bytes, 125045424 sectors
- Disk model: 900
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/sda2 532480 4390911 3858432 1.9G 83 Linux
- pi@raspberrypi:~ $ sudo parted /dev/sda
- GNU Parted 3.2
- Using /dev/sda
- Welcome to GNU Parted! Type 'help' to view a list of commands.
- (parted) unit s
- (parted) print free
- Model: ADATA SP 900 (scsi)
- Disk /dev/sda: 125045424s
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 32s 8191s 8160s Free Space
- 1 8192s 532479s 524288s primary fat32 lba
- 2 532480s 4390911s 3858432s primary ext4
- 4390912s 125045423s 120654512s Free Space
- (parted) resizepart 2 125045359s
- (parted) print free
- Model: ADATA SP 900 (scsi)
- Disk /dev/sda: 125045424s
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 32s 8191s 8160s Free Space
- 1 8192s 532479s 524288s primary fat32 lba
- 2 532480s 125045359s 124512880s primary ext4
- 125045360s 125045423s 64s Free Space
- (parted) quit
- Information: You may need to update /etc/fstab.
- pi@raspberrypi:~ $ sudo e2fsck -f /dev/sda2
- e2fsck 1.44.5 (15-Dec-2018)
- Pass 1: Checking inodes, blocks, and sizes
- Pass 2: Checking directory structure
- Pass 3: Checking directory connectivity
- Pass 4: Checking reference counts
- Pass 5: Checking group summary information
- rootfs: 44367/120720 files (0.3% non-contiguous), 292014/482304 blocks
- pi@raspberrypi:~ $ sudo resize2fs /dev/sda2 124512880s
- resize2fs 1.44.5 (15-Dec-2018)
- Resizing the filesystem on /dev/sda2 to 15564110 (4k) blocks.
- The filesystem on /dev/sda2 is now 15564110 (4k) blocks long.
- pi@raspberrypi:~ $ sudo fdisk -l
- Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 532480 15523839 14991360 7.2G 83 Linux
- Disk /dev/sda: 59.6 GiB, 64023257088 bytes, 125045424 sectors
- Disk model: 900
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/sda2 532480 125045359 124512880 59.4G 83 Linux
- pi@raspberrypi:~ $ sudo mount -t ext4 /dev/sda2 /mnt
- pi@raspberrypi:~ $ df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/root 7.1G 1.3G 5.5G 19% /
- devtmpfs 459M 0 459M 0% /dev
- tmpfs 464M 0 464M 0% /dev/shm
- tmpfs 464M 12M 452M 3% /run
- tmpfs 5.0M 4.0K 5.0M 1% /run/lock
- tmpfs 464M 0 464M 0% /sys/fs/cgroup
- /dev/mmcblk0p1 253M 52M 201M 21% /boot
- tmpfs 93M 0 93M 0% /run/user/1000
- /dev/sda2 59G 1.1G 55G 2% /mnt
- pi@raspberrypi:~ $ sudo umount /dev/sda2
- pi@raspberrypi:~ $ sudo fdisk /dev/mmcblk0
- Welcome to fdisk (util-linux 2.33.1).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): p
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x6c586e13
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 532480 15523839 14991360 7.2G 83 Linux
- Command (m for help): x
- Expert command (m for help): i
- Enter the new disk identifier: 0x11111111
- Disk identifier changed from 0x6c586e13 to 0x11111111.
- Expert command (m for help): r
- Command (m for help): p
- Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x11111111
- Device Boot Start End Sectors Size Id Type
- /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
- /dev/mmcblk0p2 532480 15523839 14991360 7.2G 83 Linux
- Command (m for help): w
- The partition table has been altered.
- Syncing disks.
- pi@raspberrypi:~ $ cd boot
- -bash: cd: boot: No such file or directory
- pi@raspberrypi:~ $ cd /boot
- pi@raspberrypi:/boot $ sudo touch ssh
- pi@raspberrypi:/boot $ ls
- bcm2708-rpi-b.dtb bcm2708-rpi-zero-w.dtb bcm2710-rpi-3-b-plus.dtb BOOTEX.LOG fixup4cd.dat fixup_cd.dat issue.txt kernel.img start4cd.elf start_cd.elf 'System Volume Information'
- bcm2708-rpi-b-plus.dtb bcm2709-rpi-2-b.dtb bcm2710-rpi-cm3.dtb cmdline.txt fixup4.dat fixup.dat kernel7.img LICENCE.broadcom start4db.elf start_db.elf
- bcm2708-rpi-cm.dtb bcm2710-rpi-2-b.dtb bcm2711-rpi-4-b.dtb config.txt fixup4db.dat fixup_db.dat kernel7l.img overlays start4.elf start.elf
- bcm2708-rpi-zero.dtb bcm2710-rpi-3-b.dtb bootcode.bin COPYING.linux fixup4x.dat fixup_x.dat kernel8.img ssh start4x.elf start_x.elf
- pi@raspberrypi:/boot $ sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement