You are not logged in.

#1 2017-09-22 20:19

fasn
Member
Registered: 2017-09-09
Posts: 21

two hard disk boot problem

i have two hardisk running
i just installed q4os but i don't know what the Q4OS done with my two disk on the process of installation since i just wanna install it to sdb

but when i remove sda, boot the computer , and display the error
"remove disk and insert disk to reboot" something.so

when i remove sdb, boot the computer with sda, it comes with grub error
' no device id '97c12c6e-59a0-4f03-9049-78c870bfcca2


that's really anony me and i wanna how to remove my disk 'sda.
because when i echo ' fdisk -l ' it says my main files installed into sdb

there my fdisk -l echo

sudo fdisk -l

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 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
Disklabel type: dos
Disk identifier: 0x26c22382

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1  *     2048 234440703 234438656 111.8G 83 Linux

Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 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: 0xe8dbd537

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sdb1            2048 119883775 119881728 57.2G 83 Linux
/dev/sdb2       119885822 125044735   5158914  2.5G  5 Extended
/dev/sdb5       119885824 125044735   5158912  2.5G 82 Linux swap / Solaris

there my fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb1 during installation
UUID=97c12c6e-59a0-4f03-9049-78c870bfcca2 /               ext4    errors=remoun$
# swap was on /dev/sdb5 during installation
UUID=25d866a7-a79f-42d7-af7d-86d93c1f7a26 none            swap    sw           $
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

Last edited by fasn (2017-09-22 21:04)

Offline

#2 2017-09-24 12:28

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,245
Website

Re: two hard disk boot problem

Q4OS installation procedure has probably installed grub bootloader onto the first disk, sda, with grub configuration on Q4OS partition in the second disk sdb, so you need to connect both disks to be able to load grub.

If you want to reinstall the bootloader on sda, you will need to proceed the following:
- Plug the both disks as they were during installation and boot your primary system installed on the first disk /dev/sda
- Install former bootloader into /dev/sda

Offline

#3 2017-09-25 15:24

fasn
Member
Registered: 2017-09-09
Posts: 21

Re: two hard disk boot problem

what i shoud do as i wanna install  grub to sdb? so i can remove sda for other use

Offline

#4 2017-09-25 16:55

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,245
Website

Re: two hard disk boot problem

fasn wrote:

what i shoud do as i wanna install  grub to sdb? so i can remove sda for other use

Run in Q4OS terminal:
$ sudo grub-install /dev/sdb
Keep in mind, this command will overwrite a bootloader installed on sdb before.

Offline

Board footer

Powered by FluxBB