Grub-Install Not Found Or Not A Block Device

KN1.jpg' alt='Grub-install Not Found Or Not A Block Device Is Write' title='Grub-install Not Found Or Not A Block Device Is Write' />Ubuntu linux on Dell XPS 1. Wiki Git. Hub. DISCLAIMER These are my personal notes for experiments with my own laptop. These instructions could cause data loss, damage to your system, or even your system becoming unusable. Use at your own risk. These are my notes to get Ubuntu working on a Dell XPS 1. I originally started with Ubuntu 1. LTS. Then I upgraded to Ubuntu 1. Name synopsis description api overview. Grubinstall Not Found Or Not A Block Device On RouterUbuntu 1. At this point, I have. Ubuntu runningencrypted home directory in Ubuntuencrypted Windows partitiondual boot with Windows 1. Pro it works fineSuspendresume work fine with the n. Vidia 3. 81 driver. XG8_qjre5yg/UhyR2aOIPwI/AAAAAAAABVM/IDBI1XFzZwg/s640/install2.png' alt='Grub-Install Not Found Or Not A Block Device' title='Grub-Install Not Found Or Not A Block Device' />I can also run the Windows 1. Pro guest from Ubuntu host as a virtual machine, at full resolution. That is, I can choose whether I want to boot Windows natively, or as a virtual machine from Ubuntu. I also have a shared folder so that Windows as virtual machine can access my linux encrypted home directory. This way, all the data and documents can live on the Ubuntu partition and I dont need to allocate extra space for data in the Windows partition. However, there are a couple of small outstanding problems Table of Contents. EFIBooting Ubuntu on a Mac by Rod Smith, rodsmithrodsbooks. Originally written 12011 Last Web page update 6172013 last major update 542012. NAME SYNOPSIS WARNING DESCRIPTION EXAMPLES. As an interactive shell From shell scripts On one command line Mount disks automatically As a script interpreter. HyperV can run Linux easily, with inbuilt HyperV Integration Components available for linux distributions that are less than a few years old. Heres howGrub-install Not Found Or Not A Block Device From NetworkCreated by gh md toc. Laptop specs. 15. K 2. 82ppi IPS Infinity. Edge LCD glossy. 2. GHz Intel Core i. HQ 3. 8. GHz boost 4 cores, 8 threads. Windows 1. 0 Home 6. Nvidia Ge. Force GTX 1. GPU Mobile with 4. GB GDDR5 RAM1. 6GB 2. MHz DDR4 RAM Up to 3. GB5. 12. GB PCIe SSD Lite On CX2 8. B5. 12 Q1. 1 NV Up to 1. TB SSDWi. Fi Qualcomm Atheros 8. MIMOBluetooth 4. 1 lsusb reports Qualcomm Atheros. Invoice reports Killer 1. USB C 3. 1. 2x USB 3. HDMIKensington security slot. SDXC card slot. Stereo speakers. HD webcam. Single mic. UK tiled keyboard. Two button trackpad. WHr, 6 cell lithium ion battery, removable design capacity 8. Ah3. 57mm x 2. 35mm x 1. Installation steps. Prep work with Windows. Plug the power cord into the laptop. Start laptop and go through the Windows 1. Create a Windows recovery USB stick so that we can reset the laptop to factory settings if things go wrong. Go to the XPS 1. 5 9. BIOS version 1. 1. Other driver updates. Graphics card n. Vidia n. P G0. Change SATA Operation so that Ubuntu can see the SSDLogin into Windows 1. Safe Mode Change advanced Startup Options Restart Now Troubleshoot Advanced options Startup Settings RestartBoot laptop and press F1. BIOS Setup. System Configuration SATA Operation. Change SATA Operation from RAID On to AHCIApply and Exit. This will reboot the laptop, and provide several boot options. Choose 4. Safe ModeStart Windows System Control Panel Device Manager. Check that the IDE ATAATAPI controller is IntelR 1. SeriesC2. 30 Chipset Family SATA AHCI ControllerReboot normally. This should boot into the regular Window 1. If you reboot and go into the BIOS, SATA Operation should still be AHCIInstalling Ubuntu. Create a bootable USB stick with Ubuntu Live currently 1. LTS. You can do it from Windows or Linux. Boot the laptop with the USB stick you need to press F1. USB stick from the BIOS menuLaunch Ubuntu Live with Try Ubuntu without installingClick on Install Ubuntu 1. Avr Studio Serial Communication Library. LTS to start installation. Select language e. EnglishSelect whether you want to connect to Wifi in my case I couldnt, because it doesnt give you the option to enter the Wifi usernameSelect Install third party software for graphic and Wi Fi hardware, Flash, MP3 and other mediaCheck Turn off Secure Boot and enter a password that youll need later. In Installation Type, it should have detected the existing Windows installation, and offer to install Ubuntu alongside dual boot. Now youll see the partitions in your drive. Select the main one, that contains Windows, and reduce it to make space for Ubuntu. For example, I reduced the Windows space to 5. GB, and left the rest for Ubuntu. The rest of the steps time zone, keyboard layout, login name and password is straightforward, just complete them. After the system installs, you will have dual boot. Boot into Ubuntu, login and now you can upgrade to 1. LTS support, but I did. Upgrading things. Graphics card driver. By default, Ubuntu uses the noveau driver. You can switch to the n. Vidia driver by launching Additional drivers from the dash, waiting for GUI to search for proprietary drivers, and then clicking on the n. Vidia driver, or using the command line. For example, to install v. Vidia driver,sudo apt get install nvidia 3. Centos 5.3 Final Iso there. This will ask you for permission to deactivate Safe Booting, as its a third party driver. Youll have to provide a password, the system will reboot, boot up into a configuration mode that will ask whether you want to deactivate Safe Booting, and ask for said password. To avoid corruption of the window manager after resuming from suspend, you need v. This is not in the regular repository of Ubuntu 1. To install the latest versions of the n. Vidia drivers, first you have to add the graphics team repositoriessudo add apt repository ppa graphics driversppa. Now launching Additional drivers from the dash will provide more options, in particular v. Select and click Apply changes. The n. Vidia driver seems to work fine, and provides GPU acceleration. It also solves the window manager corruption after resuming from suspend caused by previous versions of the driver. Fixing problems. Touchpad. Moving your hand near the touchpad can cause the mouse pointer jump to the bottom left corner of the desktop and open the Trash. Sometimes, it also makes your cursor jump back so that you type in the middle of the sentence. To fix this problem, Juan Hernndez suggests replacing xserver xorg input synaptics with xserver xorg input libinputsudo apt get install xserver xorg input libinput. Windows update removes your dual boot. After updating Windows, or installing a program, you may lose the dual boot i. Windows boots without giving you the option to choose between Ubuntu or Windows. This is very easy to fix. Reboot the machine. Press F1. 2 when the Dell logo appears. Apart from the BIOS options, at the top youll be given the option to boot in Windows or Ubuntu. Select Ubuntu. Log in, and run in a terminalsudo grub install. This will recover the dual boot. Run your native Windows 1. Pro install as guest on Virtual. Box with Ubuntu as host. DISCLAIMER The instructions in this section are particularly dangerous, and can corrupt or destroy your system. If you use these instructions, its really at your own risk. Usually, in Virtual. Box you create a virtual disk where you install your guest operating system e. Windows 1. 0 Pro. Thus, Windows, all its programs and data are all inside a large file somewhere within your linux install. For example, Virtual. BoxVMswin. 10pro. However, here we want to do something different. Instead of creating a virtual disk, we want to run the already installed native Windows 1. Pro from Ubuntu. Basically, we are going to install Virtual. Box in Ubuntu and follow Green. Ashs Running a real Windows install in Virtual. Box on Linux instructions, slightly modified and with a couple of extra steps at the end. Prep work. First, we want to install Virtual. Box. Ubuntu provides a package virtualbox 5. For that, we are going to get the deb package virtualbox 5. Virtual. Box repository. Rogue Gun Game here. The reason is that the Guest Additions silently fail to work with the default Ubuntu 1. Windows virtual machine to full resolution and full screen. From the Ubuntu dash, Software Updates Other software Add. NAMEguestfs Library for accessing and modifying virtual machine images. SYNOPSIS include lt guestfs. DESCRIPTIONLibguestfs is a library for accessing and modifying disk images and virtual machines. This manual page documents the C API. If you are looking for an introduction to libguestfs, see the web site http libguestfs. Each virt tool has its own man page for a full list, go to SEE ALSO at the end of this file. Other libguestfs manual pages guestfs faq1Frequently Asked Questions FAQ. Examples of using the API from C. For examples in other languages, see USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES below. Tips and recipes. Performance tips and solutions. Help testing libguestfs. How to build libguestfs from source. Contribute code to libguestfs. How libguestfs works. Security information, including CVEs affecting libguestfs. API OVERVIEWThis section provides a gentler overview of the libguestfs API. We also try to group API calls together, where that may not be obvious from reading about the individual calls in the main section of this manual. HANDLESBefore you can use libguestfs calls, you have to create a handle. Then you must add at least one disk image to the handle, followed by launching the handle, then performing whatever operations you want, and finally closing the handle. By convention we use the single letter g for the name of the handle variable, although of course you can use any name you want. The general structure of all libguestfs using programs looks like this guestfsh g guestfscreate. Call guestfsadddrive additional times if there are. Most manipulation calls wont work until youve launched. You have to do this after adding drives. Either examine what partitions, LVs etc are available. Or ask libguestfs to find filesystems for you. Or use inspection see INSPECTION section below. To access a filesystem in the image, you must mount it. Now you can perform filesystem actions on the guest. Synchronize the disk. This is the opposite of guestfslaunch. Close and free the handle g. The code above doesnt include any error checking. In real code you should check return values carefully for errors. In general all functions that return integers return 1 on error, and all functions that return pointers return NULL on error. See section ERROR HANDLING below for how to handle errors, and consult the documentation for each function call below to see precisely how they return error indications. The code above does not free3 the strings and arrays returned from functions. Consult the documentation for each function to find out how to free the return value. See guestfs examples3 for fully worked examples. DISK IMAGESThe image filename guest. Libguestfs lets you do useful things to all of these. The call you should use in modern code for adding drives is guestfsadddriveopts. To add a disk image, allowing writes, and specifying that the format is raw, do guestfsadddriveopts g, filename. GUESTFSADDDRIVEOPTSFORMAT, raw. You can add a disk read only using guestfsadddriveopts g, filename. GUESTFSADDDRIVEOPTSFORMAT, raw. GUESTFSADDDRIVEOPTSREADONLY, 1. If you use the readonly flag, libguestfs wont modify the file. See also DISK IMAGE FORMATS below. Be extremely cautious if the disk image is in use, eg. Adding it read write will almost certainly cause disk corruption, but adding it read only is safe. You should usually add at least one disk image, and you may add multiple disk images. If adding multiple disk images, they usually have to be related, ie. In the API, the disk images are usually referred to as devsda for the first one you added, devsdb for the second one you added, etc. Once guestfslaunch has been called you cannot add any more images. You can call guestfslistdevices to get a list of the device names, in the order that you added them. See also BLOCK DEVICE NAMING below. There are slightly different rules when hotplugging disks in libguestfs 1. See HOTPLUGGING below. MOUNTINGBefore you can read or write files, create directories and so on in a disk image that contains filesystems, you have to mount those filesystems using guestfsmount or guestfsmountro. If you already know that a disk image contains for example one partition with a filesystem on that partition, then you can mount it directly guestfsmount g, devsda. If the disk contains Linux LVM2 logical volumes you could refer to those instead eg. VGLV. Note that these are libguestfs virtual devices, and are nothing to do with host devices. If you are given a disk image and you dont know what it contains then you have to find out. Libguestfs can do that too use guestfslistpartitions and guestfslvs to list possible partitions and LVs, and either try mounting each to see what is mountable, or else examine them with guestfsvfstype or guestfsfile. To list just filesystems, use guestfslistfilesystems. Libguestfs also has a set of APIs for inspection of unknown disk images see INSPECTION below. You might also want to look at higher level programs built on top of libguestfs, in particular virt inspector1. To mount a filesystem read only, use guestfsmountro. There are several other variations of the guestfsmountcall. FILESYSTEM ACCESS AND MODIFICATIONThe majority of the libguestfs API consists of fairly low level calls for accessing and modifying the files, directories, symlinks etc on mounted filesystems. There are over a hundred such calls which you can find listed in detail below in this man page, and we dont even pretend to cover them all in this overview. Specify filenames as full paths, starting with and including the mount point. For example, if you mounted a filesystem at and you want to read the file called etcpasswd then you could do char ata guestfscat g, etcpasswd This would return data as a newly allocated buffer containing the full content of that file with some conditions see also DOWNLOADING below, or NULL if there was an error. As another example, to create a top level directory on that filesystem called var you would do guestfsmkdir g, var To create a symlink you could do guestfslns g, etcinit. S3. 0portmap Libguestfs will reject attempts to use relative paths and there is no concept of a current working directory. Libguestfs can return errors in many situations for example if the filesystem isnt writable, or if a file or directory that you requested doesnt exist. If you are using the C API documented here you have to check for those error conditions after each call. Other language bindings turn these errors into exceptions. File writes are affected by the per handle umask, set by calling guestfsumask and defaulting to 0. See UMASK. Since libguestfs 1. See MOUNT LOCAL below. PARTITIONINGLibguestfs contains API calls to read, create and modify partition tables on disk images. In the common case where you want to create a single partition covering the whole disk, you should use the guestfspartdisk call const char arttype mbr. TB. parttype gpt. Obviously this effectively wipes anything that was on that disk image before. LVM2. Libguestfs provides access to a large part of the LVM2 API, such as guestfslvcreate and guestfsvgremove. It wont make much sense unless you familiarize yourself with the concepts of physical volumes, volume groups and logical volumes.