Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~/bin$ chmod +x mount.all.sdb.sh
- ubuntu@ubuntu:~/bin$ ./mount.all.sdb.sh
- Hello, World!
- mount: /mnt/boot/efi: mount point does not exist.
- sudo mount -B /dev /mnt/dev
- sudo mount -B /dev/pts /mnt/dev/pts
- sudo mount -B /proc /mnt/proc
- sudo mount -B /sys /mnt/sys
- sudo mount -B /run /mnt/run
- ubuntu@ubuntu:~/bin$ sudo fdisk -l
- Disk /dev/loop0: 1.8 GiB, 1953349632 bytes, 3815136 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: 0x663eb4c4
- Device Boot Start End Sectors Size Id Type
- /dev/loop0p1 * 0 3815135 3815136 1.8G 0 Empty
- /dev/loop0p2 3737268 3741939 4672 2.3M ef EFI (FAT-12/16/32)
- Disk /dev/loop1: 1.8 GiB, 1864450048 bytes, 3641504 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
- Disk /dev/loop2: 86.9 MiB, 91099136 bytes, 177928 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
- Disk /dev/loop3: 34.7 MiB, 36323328 bytes, 70944 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
- Disk /dev/loop4: 140.9 MiB, 147722240 bytes, 288520 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
- Disk /dev/loop5: 2.3 MiB, 2433024 bytes, 4752 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
- Disk /dev/loop6: 13 MiB, 13619200 bytes, 26600 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
- Disk /dev/loop7: 14.5 MiB, 15196160 bytes, 29680 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
- Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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/sdb: 29.8 GiB, 32017047552 bytes, 62533296 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: gpt
- Disk identifier: A5A2DC23-580C-4A05-B4C2-946278BF5096
- Device Start End Sectors Size Type
- /dev/sdb1 2048 11720797 11718750 5.6G Linux filesystem
- /dev/sdb2 11722752 62531583 50808832 24.2G Linux filesystem
- Disk /dev/sdc: 29.8 GiB, 32015679488 bytes, 62530624 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: 0x686a6515
- Device Boot Start End Sectors Size Id Type
- /dev/sdc1 * 2048 60434431 60432384 28.8G b W95 FAT32
- /dev/sdc2 60434432 62529535 2095104 1023M 83 Linux
- Disk /dev/loop8: 3.7 MiB, 3887104 bytes, 7592 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
- ubuntu@ubuntu:~/bin$ df -hT
- Filesystem Type Size Used Avail Use% Mounted on
- udev devtmpfs 3.9G 0 3.9G 0% /dev
- tmpfs tmpfs 787M 1.7M 785M 1% /run
- /dev/sdc1 vfat 29G 18G 12G 61% /isodevice
- /dev/loop0 iso9660 1.9G 1.9G 0 100% /cdrom
- /dev/loop1 squashfs 1.8G 1.8G 0 100% /rofs
- /cow overlay 3.9G 466M 3.4G 12% /
- tmpfs tmpfs 3.9G 30M 3.9G 1% /dev/shm
- tmpfs tmpfs 5.0M 8.0K 5.0M 1% /run/lock
- tmpfs tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
- tmpfs tmpfs 3.9G 12M 3.9G 1% /tmp
- tmpfs tmpfs 787M 52K 787M 1% /run/user/999
- /dev/loop2 squashfs 87M 87M 0 100% /snap/core/4917
- /dev/loop3 squashfs 35M 35M 0 100% /snap/gtk-common-themes/319
- /dev/loop4 squashfs 141M 141M 0 100% /snap/gnome-3-26-1604/70
- /dev/loop5 squashfs 2.4M 2.4M 0 100% /snap/gnome-calculator/180
- /dev/loop6 squashfs 13M 13M 0 100% /snap/gnome-characters/103
- /dev/loop7 squashfs 15M 15M 0 100% /snap/gnome-logs/37
- /dev/loop8 squashfs 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
- ubuntu@ubuntu:~/bin$ smartctl /dev/sdb1
- smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-29-generic] (local build)
- Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
- Smartctl open device: /dev/sdb1 failed: Permission denied
- ubuntu@ubuntu:~/bin$ umount /dev/sdb1
- umount: /dev/sdb1: not mounted.
- ubuntu@ubuntu:~/bin$ sudo umount /dev/sdb1
- umount: /dev/sdb1: not mounted.
- ubuntu@ubuntu:~/bin$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement