Ubuntu :: Clone Bootable USB Stick To Smaller Drive?

Aug 22, 2011

I wanted to back up my 4Gb boot drive and the new drive I had was slightly smaller. Couldn't find any info on here and precious little on the internet but I have previously used this technique to clone an 8Gb disk onto a 4Gb one. Since I have gained a lot of useful info from this forum over the years its probably time I contributed something. I used my netbook but this would work equally well from a live CD. Note the disk has to be unmounted so you can't use the live system. Firstly your USB stick probably has 2 partitions one for "/" and one for swap.

The first step is to reduce the "/" partition on the source drive to a size smaller than your target drive. I used gparted for this. Next create a partition on your target drive that is the same size or bigger than your newly shrunken partition. I formatted this although I'm not sure this is necessary. Personally I just used the whole drive and used a file on a hard disk as swap. Next you have to use dd to copy the partition.What is important is that you are copying the partition not the drive. So your source would be /dev/sdx1 and target /dev/sdy1 (you will need to find your own values for x&y).

Once again be very careful that you get these the right way around or you will destroy your souce disk. Even better do it in two stages - copy your source to a file and then the file to the target. Now you have a replica of your original disk but it is not bootable. If you are planning to use a swap partition you may as well create it now. Remember you will probably have to change /etc/fstab to read the new swap - at least on my system this was referenced by UUID. No need to change anything for the replicated partition as the UUID came over with everything else.

View 3 Replies


ADVERTISEMENT

CentOS 5 Hardware :: How To Clone CentOS Installation To Smaller Drive

May 9, 2010

I am trying to clone the hard drive to a slightly smaller hard drive in the same computer, same setup.What software or commands do you use to clone the entire system and resize the partition automatically?The original HD is a little larger than the destination HD. The source partition only has about 20 GB in use and the rest is blank.

I have 2 partition, a small 100MB boot partition and another 500GB LVM partition.I can't just clone from the original disk to the new disk. (for another long reason) I need to make an image of the original disk on an external USB drive first, then move that image onto a new disk.I have tried creating an image of the whole disk with Clonezilla, but then the restoration didn't work because the target drive is smaller than the original.

View 7 Replies View Related

General :: Clone A Larger Disk To Smaller With Cp?

Jul 10, 2010

I need to clone a 160GB hard drive with Linux Mint 9 (not more than 10GB used) to a 30GB SSD that is partitioned carefully (aligned to cylinder boundaries) and is currently running Ubuntu (which I wish to overwrite with Linux Mint 9). The SSD has a /boot partition, / and swap. The source (160 GB) does not have a separate boot partition. Can anyone help me fill in the steps below? /dev/sdc will be the source (160GB) and /dev/sda is the target (with partitions 1,2 and swap on 5).

make a copy of /etc/fstab from the target drive before proceeding. Ready the target partitions. Can I reuse the existing destination partitions on the SSD? Ready the filesystems on each of the target partitions. /boot is ext2, / is ext4 and swap is already set up too. As I said, all contain data (Ubuntu) that I wish to overwrite. So what steps are needed here? Do I need to erase anything (files, etc.) before the copy/clone? next, use dd to copy MBR (right?) And exclude partition table:

Code:

dd if=/dev/sdc1 of=/dev/sda1 count=1 bs=446

Mount the source and destination drives:

Code:

mount -t ext4 /dev/sdc1 /mnt/source
mount -t ext2 /dev/sda1 /mnt/boot_target
mount -t ext4 /dev/sda2 /mnt/root_target

I suppose I can leave the swap partition on the target untouched. Copy the files from the source partition to the destination

Code:

cp -a /mnt/source/boot /mnt/boot_target
cp -a /mnt/source/ /mnt/root_target

then I assume I go to /mnt/root_target and delete the /boot directory, right? Change /etc/fstab to reflect the new partitions. I mount by label. Will my partition labels be intact after this? Do I have to make any changes to GRUB? Anything else?

View 14 Replies View Related

Slackware :: Making A USB Stick Bootable From A Bootable Cdrom?

Oct 23, 2009

I have a cdrom (bootable) that I want to copy over to a usb stick, and have THAT boot the system (Adding other files to it before hand) I know it's easy, but how? I've already made a iso of the cdrom.

View 2 Replies View Related

Ubuntu :: Error "occurred While Executing Syslinux. Your USB Drive Won't Be Bootable" When Installing To USB Memory Stick

Jan 18, 2011

When using the Universal USB Installer and following the instructions according to the Ubuntu web site, I get the following error: an error () "occurred while executing syslinux. Your USB drive won't be bootable" There is no number between the brackets and I has no problem with a previous version of Ubuntu netbook remix.

View 9 Replies View Related

Ubuntu :: Clone USB Stick To Another?

Jul 28, 2011

I have linux installation which is on USB flash drive...there are two partitions. how to clone it to another USB. I tried manualy creating partitions on new flash drive and manualy copyng files but this doesn't work.

View 2 Replies View Related

General :: Copy / Clone Usb Stick That Have Several Partitions?

May 6, 2010

Is there a good way from the shell to copy/clone a usb stick that have several partitions?

View 5 Replies View Related

Debian Installation :: Clone Root System And Make It Bootable?

Aug 10, 2010

Running Squeeze here. I added a new SSD to my system. Root is /dev/sda3 and I want to clone that system to the new SSD on /dev/sdb1 and make it bootable. I tried:

mount /dev/sdb1 /mnt/ssd_root
cp -dpRx / /mnt/ssd_root

then

update-grub

or

grub-install --recheck --root-directory=/mnt/ssd_root /dev/sdb

but to no avail. I cannot get the new system to be bootable and available through Grub. Part of the problem is that I do not know my way around Grub v2 so well, I could probably manage quite well with legacy grub. So, whats the easiest way to clone a system and make it bootable on another partition? Should I be using debootstrap, and importing/exporting the package list to install the same packages on the new system as the old? or is using cp -dpRx to copy the old ok? How do I make the new system boot?

View 9 Replies View Related

General :: Clone Or Copy Entire System To External Bootable HD?

Sep 5, 2010

I have a 16GB Ubuntu Webserver running on a Transcend SMART CF chip (Yes I know all the reasons not to). I want to move that entire system (OS, Files and structure) to an external bootable HD that will probably be closer to 100GB. What's the easiest way to do this and have it be plug and play. By which I mean I can then plug the drive into a new system and boot it up just as it was running on the old system.

View 1 Replies View Related

Ubuntu :: Replace A Hard Drive With Smaller Drive?

Jan 20, 2010

I have ubuntu server acting as a router installed on a 60 gig drive, i'd like to use that drive in another machine and replace it with a 5 gig drive. how can i transfer from the 60 gig drive to the 5 gig drive?

View 9 Replies View Related

Ubuntu :: Creating Bootable WIN USB Stick?

May 2, 2010

I want to install Windows on my netbook. In order to to so I need to create a bootable disk-on-key.How do I do that?

View 7 Replies View Related

Ubuntu :: Making Bootable Usb Stick?

Aug 12, 2010

I'm trying to make a Windows bootable USB stick in ubuntu 10.4 remix (netbook one)

View 5 Replies View Related

Ubuntu :: How To Create Bootable Usb Stick

Nov 4, 2010

Running: Ubuntu 9.04 32 bits I'm trying to create an bootable usb drive for installing windows 7 so i took this release"Microsoft.Windows.7.Enterprise.x64.Integrated.Oct ober.2010-BIE"

1. Extracted to get the iso

2. Formated my 8gb usb flash drive with gparted

3. Extracted all the files from the iso with UNetbootin to my usb stick

4. Restarted and selected boot from removable drive in the bios options

After step 4 nothing worked i tried to remove booting from the hdd to force the computer to boot from the usb drive but just get the message that i need to insert an bootable media or restart.

Tried several times and the usb worked propperly while installing ubuntu 9.04 which I run this writing moment. I'm out of ideas and I don't have an cd/dvd reader to boot an dvd from either so via usb is the only thing my knowledge is capable to.

View 8 Replies View Related

Ubuntu :: How To Make Bootable USB Stick In XP

Jul 23, 2011

I recently found myself in need of an installation of windows xp on my eee 901. I know I once did it long time ago (half year before I permanently moved over to ubuntu. How to make bootable usbstick for Ubuntu in XP.

View 2 Replies View Related

Apple :: Ubuntu 10.04 : Create A Bootable Usb Stick From Mac OS X?

May 19, 2010

I'm trying to install Ubuntu 10.04 on my netbook, but I can't figure out how to create a bootable USB stick form my current computer, running Mac OS X.

View 5 Replies View Related

Ubuntu :: Installing Windows 7 From USB Stick - Bootable?

Dec 24, 2010

Since playing games on Ubuntu is a pain, I've decided to sacrifice a few GB's to install Windows 7 on another partition. Is there any tool for Ubuntu to make USB sticks bootable? I've tried UNetbootin, but that's just for Linux distributions. I use Ubuntu 10.04 64Bit and want to install Windows Home Premium 64Bit, in case it's important...

View 9 Replies View Related

Ubuntu Installation :: Backup Bootable 10.04 USB Stick?

Dec 25, 2010

I'm really chuffed with the first bootable USB stick I created so easily with 10.04 desktop. I've added applications that I want, codecs etc and got the configuration just how I like it. Now I'd like to back up the entire stick, as I use it a lot and the stick will die eventually. I've not used Clonezilla, but I wondered if that would make a copy? It's a 4G stick, with all the remaining space allocated to the casper persistence file.

View 2 Replies View Related

Ubuntu Installation :: Backup To Bootable USB Stick?

Jan 13, 2011

I would like to back up my current system to a bootable memory stick. (I do not want to create an image of the ubuntu installation disk.)

such a backup should not be a big problem---even after updating 350MB of ubuntu 10.04 LTS, I still have only about 3GB used. so, it should all fit easily onto a 4GB stick.

is there a GUI or script solution that will make a full bootable backup of a running ubuntu system (incl root, etc.)?

View 2 Replies View Related

Ubuntu :: Install And Make Bootable A Usb Stick?

Feb 10, 2010

how I can install and make bootable a usb stick. I have tried multiple walkthroughs on this subject and not one of them has worked, i am trying to do this via windows, i cant get any workable wifi drivers for linux i have an atheros wifi card. the closest i have come to getting the usb to work is the splash screen then it freezes and this was with linux live usb creator 2.0 it doesn't matter which ones i've tried i can't get them to work no matter what version i try to use. it's driving me mad.

i want the usb to boot without having a hardrive present in the computer. i just got a possible driver that will work for my wifi card and i will put that on the stick too then install it when i get the usb stick to boot into linux. i honestly dont know why there are so many walkthroughs on this subject that dont work it's silly. oh and besides bookmarking each post i make where is the button that links you to your own posts without having to manually search them out?

View 11 Replies View Related

General :: Weird About Bootable USB Stick?

Jul 24, 2011

I'm gonna sound weird but i have little curiosity abt bootable USB...I had downloaded Ubuntu 11.04 iso file and created a bootable USB using universal USB installer and installed Ubuntu on my machine...now my set file has gotten deleted bcoz of some reasons but i still have that Bootable USB with Ubuntu.....so here is my question if i copy the data from that USB to any other USB will it work?and if no, is there any other way to get back setup file from bootable USB or from the system in which it is already installed?

View 6 Replies View Related

Red Hat :: Software For Bootable Memory Stick?

Apr 19, 2010

I by an memory stick with 16Gb memory. I want to make it bootable. Because I am beginner in using linux, I need an software from which I can made bootable the stick.

View 1 Replies View Related

Software :: If I Dd Copy A Bootable Usb Drive To An Iso Will The Iso Be Bootable

Mar 23, 2011

If I dd copy a bootable usb drive to an iso will the iso be bootable?

I haven't tried it yet, but i'm going to. Heres the situation and tell me if I'm crazy.

I have several bootable CDs I use at work to do different things, so I went ahead and made a multi-boot usb stick with the isos on them and everything is golden. When i need something else, I am able to slap the ISO on the usb stick, edit the menu.lst and I'm good to go.

The problem is, for some of our equipment I have a bootable USB stick that I have to use. I tried copying the files on the bootable USB to my multi-boot usb and setup grub to boot it (which admittedly I'm no expert at), but have had no luck.

So now I'm thinking, I'll use dd to copy the bootable USB stick to an iso (using bs=2048) and then do my normal setup with an ISO and maybe it will work.

View 5 Replies View Related

Ubuntu :: Creating A Usb Bootable Windows XP Install Stick

Mar 27, 2011

I no longer have access to a Windows machine.

I have been trying for days now to successfully create a usb bootable Windows XP install, but without success.

So, is it possible ? If so, HOW ?

Tools used so far without success:
UNetbootin
And
Startup Disk Creator.

View 9 Replies View Related

Debian :: Get Full Installer On Bootable USB Stick

Jun 30, 2010

I've been trying to work out how to get a "full" debian installer (ie, not a netinst installer but as much as you'd find on say, the first CD) onto a bootable USB stick.Most of the tutorials I've seen work with the netboot installers only.The installer works until the "Detect and mount CD-ROM" step where it wants to mount a CD drive. Won't accept /dev/sdb or whatever device the USB stick is.

Using live-magic with the option to include the installer.The installer works until the "Detect and mount CD-ROM" step where it wants to mount a CD drive, as above. This confuses me, since why would live-magic include this capability if it didn't work for a USB stick?

View 11 Replies View Related

OpenSUSE Install :: Making A Bootable USB Stick

May 10, 2010

Downloaded openSUSE-11.2-DVD-x86_64.iso Burned on a DVD and used to make an install op a Dell laptop Everything went okay. Now I like to make a install on a ASUS UL20A laptop without an optical drive Placed the iso on a USB stick with dd command The stick can be read by openSUSE 11.2 machine NOT by WIN 7 machine I tried to make the USB stick with Win32DiskImager.exe

View 9 Replies View Related

OpenSUSE Install :: Setting Up A Bootable USB-stick?

Dec 15, 2010

I need some help to set up a bootable USB stick. I have an USB stick, 3.7 gigs big, on which I want to put the OpenSuse Live CD iso, but somehow I am stuck... I have formatted the stick and I have set the boot flag in KDE partitionmanager. Then I have put the .iso on it, using Unetbootin. When I now try to boot it, I get the message

Code:

could not find Kernel boot image: gfxboot

Is maybe the boot flag not set, despite the partitionmanager shows it set? Can I set it also afterwards, after I have installed the .iso on the stick (I tried this already, did not change anything)? Or is there something wrong with the .iso?

View 2 Replies View Related

General :: Making Bootable Usb Stick For Clonezilla?

May 6, 2010

One of my computers is a netbook with no CD drive, so I need to create a bootable USB stick so I can reload a Clonezilla-made backup image from an external HD on to the netbook.I bought a 4Gb thumb drive and used Parted Magic to create a 200Mb partition on it. I formatted this and the remaining free space both as FAT32 and used Parted Magic to flag the small partition as bootable. Then I loaded the Clonezilla Live files onto this boot partition.Now the thumb drive boots up ok, but goes straight into a Parted Magic menu screen from which there is no way out! It's just the menu screen alone and has no PM functionality. This also happens on other systems where there is no PM installed or in the CD drive. So it must be something PM has done to the thumb drive.

View 1 Replies View Related

General :: Making A USB Stick Bootable RHEL5 From Iso?

Sep 4, 2010

I have RHEL5x86_64 iso,I have windows XP 64 bit OS installed and a 4 GB USB Stick and my optical drive is not working . I want to install RHEL5 on my system from the USB. I can do this in a linux system but unfortunately I have no linux system. How will I do it in windows, as I am not getting any correct application or correct procedure to do this ...

View 6 Replies View Related

Ubuntu :: How Do I Clone A Hard Drive To Different Sized Drive

Jun 23, 2010

I am soon going to have to return my intel ssd for replacement. Therefore, I am going to be cloning the 160gb drive to a 320gb drive to keep my system settings while I am waiting for my new drive. I will not change the size of the partitions to fill the 320gb drive. I'll just change the grub settings if I absolutely have to. After that, I am going to have to clone the 320gb drive back to the replacement 160gb drive. Am I going to have problems doing that since I will be going from a larger to a smaller drive?I typically use Clonezilla with the default settings.

View 2 Replies View Related

Debian Installation :: Volume Encryption Onto Bootable USB Stick?

Aug 27, 2015

I have been trying for close to 7 hours now to create a working encrypted bootable usb key for debian now.

I start by running the debian installation dvd (1 of 3. I downloaded and burnt all three ISO's that I found here: [URL] .... (2015-06-06 17:33) to disk), and when I get to the partitioning part, I cannot get an encrypted volume that will hold the root filesystem.

Here is what I have tried:

I have tried the Guided partitioning option to use the entire disk and set up encrypted LVM, to no avail.

I am left with a primary boot partition of 254.8 MB, at ext2 with /boot mountpoint on it, and a logical partition of 15.8 GB, with crypto as it's file system that says it's "not active". This bit here seems to be a running theme as I keep coming back to this set up, (give or take some space arrangement). From what I've read and seen, I should be seeing an Encrypted Volume container similar to LVM, but called an "Encrypted Container" that I can create additional partitions in like / and /home, and what have you.

And I can't "activate" the partition either. I have tried both the Configure Logical Volume Manager, which changed the partition to an LVM partition that dosn't encrypt anything inherently (and I have checked), and I have tried the Configure encrypted volumes option, which leads to the same results basically.

I have tried manually creating the partitions, a 512 MB ext4 /boot partition and then partitioning the rest of the space as "physical volume for encryption" with aes encryption, 256 key size, xts-plain64, Passphrase encryption key, erase data flag, bootable flag off.

Same result, 1 primary boot partition, 1 logical (I later tried making it a primary partition to, with the same results) crypto volume that is "not active".

I also tried setting up the a logical volume manager, which created a container to create additional partitions in which I could encrypt, but it was either a partition dedicated to something (i.e. root (/) or /home, or /swap, etc) or it could be encrypted, but not both. I even tried creating a root partion, and then selecting Configure encrypted volumes, and then selecting the root partition, and here is where I thought I was getting somewhere, because then it comes up giving me all the same options above, but it also specifies mount point under encryption. Which is /, which is what I'm after. So I accept that, and it goes back to being crypto, "not active" and when I check the partition again, the mount point option is gone.

Last thing I tried was going back to having a 512 MB /boot partition, and an encrypted partition set up with Configure encrypted volumes option, and then specifying the encrypted partiton with the Logical Volume Manager as the place to create logical groups and volumes, to little avail. I can create more volumes that are either encrypted, or a useful non encrypted volumes like / (root), /home, /swap, and the like, but not both at the same time.

Following this guide: [URL] ....

This leads me to a useable system, but the system wasn't encrypted. When I booted, I wasn't asked for a passphrase, and I checked the stick with my old linux mint dristro, and I was able to mount the logical volume and look at the contents, /etc, /home, /var by activating the partition in GParted and mounting it.

A number of users seem to mark an encrypted partition as lvm and then create more logical volumes within that that either actually become encrypted, or they don't check. I'm not sure which after my testing.

[URL] .....

I have also read this: [URL] .... and this [URL] .....

I found this which shows the container I believe I should be seeing if I do this right, but I can't get it : [URL] ....

I have also watched movies on youtube about it : [URL] ....

Could the issue be that I'm using a Lexar JumpDrive? 16 GM USB 3.0.

I've gotten debian to run off of it on it's own so I kind of doubt it.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved