Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo mount -t ext4 /dev/sdb /mnt
- mount: /dev/sdb already mounted or /mnt busy
- root@ubuntu:~# /dev/sdb1
- bash: /dev/sdb1: Permission denied
- root@ubuntu:~# update-grub
- /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
- root@ubuntu:~# sudo grub-install /dev/sdb
- /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
- root@ubuntu:~# sudo mount /dev/sdb1
- mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab
- root@ubuntu:~# sudo grub-install --boot-directory=/mnt/boot /dev/sdb
- /usr/sbin/grub-probe: error: cannot find a device for /mnt/boot/grub (is /dev mounted?).
- root@ubuntu:~# sudo grub-install --root-directory=/mnt /dev/sdb
- /usr/sbin/grub-probe: error: cannot find a device for /mnt/boot/grub (is /dev mounted?).
- root@ubuntu:~# sudo os-prober
- /dev/sda2:Windows 7 (loader):Windows:chain
- root@ubuntu:~# sudo grub-install --boot-directory=/media/boot_partition /dev/sdb/usr/sbin/grub-probe: error: cannot find a device for /media/boot_partition/grub (is /dev mounted?).
- root@ubuntu:~# sudo fdisk -l
- Disk /dev/sda: 120.0 GB, 120034123776 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 identifier: 0x03069d28
- Device Boot Start End Blocks Id System
- /dev/sda1 2048 30715903 15356928 7 HPFS/NTFS/exFAT
- /dev/sda2 * 30717952 234441647 101861848 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 120.0 GB, 120034122752 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441646 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 identifier: 0x0006e00a
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 29639924 14819931 83 Linux
- /dev/sdb2 29639925 38025854 4192965 82 Linux swap / Solaris
- /dev/sdb3 38025916 234436544 98205314+ f W95 Ext'd (LBA)
- /dev/sdb5 38025918 234436544 98205313+ 7 HPFS/NTFS/exFAT
- root@ubuntu:~# sudo mount /dev/sdb1 /mnt
- NTFS signature is missing.
- Failed to mount '/dev/sdb1': Invalid argument
- The device '/dev/sdb1' doesn't seem to have a valid NTFS.
- Maybe the wrong device is used? Or the whole disk instead of a
- partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
- root@ubuntu:~# sudo mount --bind /dev /mnt/dev
- mount: mount point /mnt/dev does not exist
- root@ubuntu:~# sudo mount --bind /dev/pts /mnt/dev/pts
- mount: mount point /mnt/dev/pts does not exist
- root@ubuntu:~# sudo mount --bind /sys /mnt/sys
- mount: mount point /mnt/sys does not exist
- root@ubuntu:~# sudo mount -t proc /proc /mnt/proc
- mount: mount point /mnt/proc does not exist
- root@ubuntu:~# sudo chroot /mnt /bin/bash
- chroot: failed to run command `/bin/bash': No such file or directory
- root@ubuntu:~# mount -a
- root@ubuntu:~# apt-get install grub-pc
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- grub-pc is already the newest version.
- 0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
- root@ubuntu:~# update-grub
- /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
- root@ubuntu:~# grub-install /dev/sdb
- /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
- root@ubuntu:~# grub-install --force /dev/sdb
- /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
- root@ubuntu:~# umount -a
- umount: /run/shm: device is busy.
- (In some cases useful info about processes that use
- the device is found by lsof(8) or fuser(1))
- umount: /tmp: device is busy.
- (In some cases useful info about processes that use
- the device is found by lsof(8) or fuser(1))
- umount: /cdrom: device is busy.
- (In some cases useful info about processes that use
- the device is found by lsof(8) or fuser(1))
- umount: /run: device is busy.
- (In some cases useful info about processes that use
- the device is found by lsof(8) or fuser(1))
- umount: /dev: device is busy.
- (In some cases useful info about processes that use
- the device is found by lsof(8) or fuser(1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement