Re: Clone a bootable USB key

2009-10-06 Thread Emanoil Kotsev
Dieder Vervoort wrote:

 Copied the MBR:  dd if=/dev/sdb of=/dev/sdc bs=446  count =1

I think the correct value for bs is 512

(google) i.e. the first usable
http://forums.opensuse.org/archives/sls-archives/archives-suse-linux/archives-install-boot/384843-moving-grub-mbr-record-another-hdd.html

if you keep the partition table with bs=446, you have to setup grub I think.
In fact I prefer reinstalling grub than copying the mbr

regards

 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Clone a bootable USB key

2009-09-28 Thread Stefan Monnier
 Indeed this is working. ( Test it with 2 identical USB-keys)
 But I think this is not a solution because the target usb is not the same
 size and make.

It will work as long as the destination is as large or larger than
the source.
If the new key is larger, the added space will stay unused after the
cloning, but you can recover it either by creating a new partition in
this empty space, or by resizing the last partition.


Stefan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Clone a bootable USB key

2009-09-26 Thread Dieder Vervoort

Hi Adrian,

Indeed this is working. ( Test it with 2 identical USB-keys)
But I think this is not a solution because the target usb is not the 
same size and make.
Thats why I copied the files and the MBR separately.( forgot to mention 
this )


What I am trying to do: I would like to make a copy of my USB-key to one 
or more  files,
send the files to a friend and he has to dd / copy this file to his 
USB-Key, and I was hoping this should work.


Thanks,

Adrian Levi wrote:

2009/9/26 Dieder Vervoort lin...@telenet.be:
  

Hi All,

I am trying to clone a bootable USB key B ( FAT32)

I format USB key C and  set the boot flag.
Copied all files from USB-B to USB-C in Windows.
Copied the MBR:  dd if=/dev/sdb of=/dev/sdc bs=446  count =1

When I boot from USB-B I get only the word GRUB in the left upper corner.
I noticed: USB-B has an icon in the browser , USB-C has not.
What could be wrong ?  Thanks.



The MBR and grub are working but Grub does not know the sector
location of the kernel, So it does not continue to boot.
Use dd to copy the entire thing, it will work.

dd if=/dev/sdb of=/dev/sdc

Adrian

  



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Clone a bootable USB key

2009-09-26 Thread Adrian Levi
2009/9/27 Dieder Vervoort lin...@telenet.be:

 What I am trying to do: I would like to make a copy of my USB-key to one or
 more  files,
 send the files to a friend and he has to dd / copy this file to his USB-Key,
 and I was hoping this should work.

Then what you have done previously will work on the proviso that you
update grub to let it know where to find the kernel to boot. probably
the easiest way for you to do this is to boot from the first working
USB key and specify on the kernel command line root=/dev/sdc1

then as root run:
update-grub



-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Clone a bootable USB key

2009-09-25 Thread Dieder Vervoort

Hi All,

I am trying to clone a bootable USB key B ( FAT32)

I format USB key C and  set the boot flag.
Copied all files from USB-B to USB-C in Windows.
Copied the MBR:  dd if=/dev/sdb of=/dev/sdc bs=446  count =1

When I boot from USB-B I get only the word GRUB in the left upper corner.
I noticed: USB-B has an icon in the browser , USB-C has not.
What could be wrong ?  Thanks.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Clone a bootable USB key

2009-09-25 Thread Adrian Levi
2009/9/26 Dieder Vervoort lin...@telenet.be:
 Hi All,

 I am trying to clone a bootable USB key B ( FAT32)

 I format USB key C and  set the boot flag.
 Copied all files from USB-B to USB-C in Windows.
 Copied the MBR:  dd if=/dev/sdb of=/dev/sdc bs=446  count =1

 When I boot from USB-B I get only the word GRUB in the left upper corner.
 I noticed: USB-B has an icon in the browser , USB-C has not.
 What could be wrong ?  Thanks.

The MBR and grub are working but Grub does not know the sector
location of the kernel, So it does not continue to boot.
Use dd to copy the entire thing, it will work.

dd if=/dev/sdb of=/dev/sdc

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
erno hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org