Re: [solved] Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 16:51:20 +, Rodolfo Medina wrote: > But now, one more question: after using the pendrive for the installation, how > can I restore it as it was before, to use it to store files? dd if=/dev/zero of=/dev/sdX count=1 Then partition and put filesystems on the partitions. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/24012015171322.e4a07ec0a...@desktop.copernicus.demon.co.uk
[solved] Re: Can't boot from pendrive
Rodolfo Medina writes: > Brian writes: > >> On Sat 24 Jan 2015 at 15:41:05 +, Rodolfo Medina wrote: >> >>> Brian writes: >>> >>> > On Sat 24 Jan 2015 at 15:18:28 +, Rodolfo Medina wrote: >>> > >>> >> Brian writes: >>> >> >>> >> > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: >>> >> > >>> >> >> From: >>> >> >> >>> >> >> http://www.us.debian.org/CD/netinst/ >>> >> >> >>> >> >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it >>> >> >> onto a pendrive with: >>> >> >> >>> >> >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync >>> >> >>> >> That was actually `sdb1', not `sdc', sorry. >>> > >>> > That's not an ok command if you want the stick to be bootable. Try >>> > /dev/sdb. >>> >>> How do I restore the pendrive? Now there's no space left, or permissions >>> are denied. >> >> No restoring is needed. >> >>dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdX bs=4M; sync >> >> will obliterate the drive's contents. >> >> Note it is /dev/sdX, not /dev/sdXN. Writing to partition number N will >> not make the drive bootable. > > > The command > > dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdb bs=4M; sync > > , if given as a normal user, gets the `permission denied', and, as superuser, > the complain that there's `no space left' on the device. Ok, it was `sdd', not `sdb'. Now I can boot from the pendrive. The mistake was to do: dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdd1 bs=4M; sync whereas it must be: dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdd bs=4M; sync Thanks to all. But now, one more question: after using the pendrive for the installation, how can I restore it as it was before, to use it to store files? Thanks, Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/878ugsruk7.fsf...@gmail.com
Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 16:12:52 +, Rodolfo Medina wrote: > Brian writes: > > > No restoring is needed. > > > >dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdX bs=4M; sync > > > > will obliterate the drive's contents. > > > > Note it is /dev/sdX, not /dev/sdXN. Writing to partition number N will > > not make the drive bootable. > > > The command > > dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdb bs=4M; sync > > , if given as a normal user, gets the `permission denied', That's fine. A user is not allowed to write directly to a disk device. >and, as superuser, > the complain that there's `no space left' on the device. Is the complaint issued *immediately* after the dd command or some time later? What is the size of the pendrive? Please try cat debian-7.8.0-i386-netinst.iso > /dev/sdb -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150124164052.ga27...@copernicus.demon.co.uk
Re: Can't boot from pendrive
Brian writes: > On Sat 24 Jan 2015 at 15:41:05 +, Rodolfo Medina wrote: > >> Brian writes: >> >> > On Sat 24 Jan 2015 at 15:18:28 +, Rodolfo Medina wrote: >> > >> >> Brian writes: >> >> >> >> > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: >> >> > >> >> >> From: >> >> >> >> >> >> http://www.us.debian.org/CD/netinst/ >> >> >> >> >> >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto >> >> >> a pendrive with: >> >> >> >> >> >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync >> >> >> >> That was actually `sdb1', not `sdc', sorry. >> > >> > That's not an ok command if you want the stick to be bootable. Try >> > /dev/sdb. >> >> How do I restore the pendrive? Now there's no space left, or permissions >> are denied. > > No restoring is needed. > >dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdX bs=4M; sync > > will obliterate the drive's contents. > > Note it is /dev/sdX, not /dev/sdXN. Writing to partition number N will > not make the drive bootable. The command dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdb bs=4M; sync , if given as a normal user, gets the `permission denied', and, as superuser, the complain that there's `no space left' on the device. Thanks, Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/871tmktawr@gmail.com
Re: Can't boot from pendrive
On 24/01/2015 16:10, Brian wrote: On Sat 24 Jan 2015 at 15:26:19 +0100, mrr wrote: On 24/01/2015 13:30, Rodolfo Medina wrote: Hi all. From: http://www.us.debian.org/CD/netinst/ I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a pendrive with: $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync If you create a /dev/sdc1 partition a launch the dd on it, does it work? This cannot work because the boot sector of the drive would not be written to. So we have an answer as the OP finally installed the iso on sdb1! > # fdisk -l debian-7.8.0-i386-netinst.iso > You must set cylinders. > You can do this from the extra functions menu. What does that gives ? -- mrr -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/54c3bb5f$0$2327$426a7...@news.free.fr
Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 15:41:05 +, Rodolfo Medina wrote: > Brian writes: > > > On Sat 24 Jan 2015 at 15:18:28 +, Rodolfo Medina wrote: > > > >> Brian writes: > >> > >> > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: > >> > > >> >> From: > >> >> > >> >> http://www.us.debian.org/CD/netinst/ > >> >> > >> >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a > >> >> pendrive with: > >> >> > >> >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync > >> > >> That was actually `sdb1', not `sdc', sorry. > > > > That's not an ok command if you want the stick to be bootable. Try > > /dev/sdb. > > How do I restore the pendrive? Now there's no space left, or permissions are > denied. No restoring is needed. dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdX bs=4M; sync will obliterate the drive's contents. Note it is /dev/sdX, not /dev/sdXN. Writing to partition number N will not make the drive bootable. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/24012015154956.e3a01d2be...@desktop.copernicus.demon.co.uk
Re: Can't boot from pendrive
Brian writes: > On Sat 24 Jan 2015 at 15:18:28 +, Rodolfo Medina wrote: > >> Brian writes: >> >> > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: >> > >> >> From: >> >> >> >> http://www.us.debian.org/CD/netinst/ >> >> >> >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a >> >> pendrive with: >> >> >> >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync >> >> That was actually `sdb1', not `sdc', sorry. > > That's not an ok command if you want the stick to be bootable. Try > /dev/sdb. How do I restore the pendrive? Now there's no space left, or permissions are denied. Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/87lhksuqy6@gmail.com
Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 15:18:28 +, Rodolfo Medina wrote: > Brian writes: > > > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: > > > >> From: > >> > >> http://www.us.debian.org/CD/netinst/ > >> > >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a > >> pendrive with: > >> > >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync > > That was actually `sdb1', not `sdc', sorry. That's not an ok command if you want the stick to be bootable. Try /dev/sdb. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/24012015152131.099783b12...@desktop.copernicus.demon.co.uk
Re: Can't boot from pendrive
Brian writes: > On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: > >> From: >> >> http://www.us.debian.org/CD/netinst/ >> >> I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a >> pendrive with: >> >> $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync That was actually `sdb1', not `sdc', sorry. > That's an ok command. > >> , but then can't boot from it even though the BIOS is - apparently - >> configured so to do that. Why? > > Assuming the machine can boot from USB, check the BIOS settings again. > > On a running system, please post the outputs of > >fdisk -l debian-7.8.0-i386-netinst.iso > > and, after plugging in the pendrive, > >fdisk -l /dev/sdX > > You'll get "X" from dmesg. Here is the output: # fdisk -l debian-7.8.0-i386-netinst.iso You must set cylinders. You can do this from the extra functions menu. Disk debian-7.8.0-i386-netinst.iso: 0 MB, 0 bytes 64 heads, 32 sectors/track, 0 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x178e0fca Device Boot Start End Blocks Id System debian-7.8.0-i386-netinst.iso1 * 1 277 283616 17 Hidden HPFS/NTFS # fdisk -l /dev/sdb1 You must set cylinders. You can do this from the extra functions menu. Disk /dev/sdb1: 0 MB, 0 bytes 64 heads, 32 sectors/track, 0 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x178e0fca Device Boot Start End Blocks Id System /dev/sdb1p1 * 1 277 283616 17 Hidden HPFS/NTFS -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/87iofwcim3@gmail.com
Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 15:26:19 +0100, mrr wrote: > On 24/01/2015 13:30, Rodolfo Medina wrote: > >Hi all. > > > >From: > > > > http://www.us.debian.org/CD/netinst/ > > > >I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a > >pendrive with: > > > > $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync > > If you create a /dev/sdc1 partition a launch the dd on it, does it work? This cannot work because the boot sector of the drive would not be written to. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/24012015150641.053412466...@desktop.copernicus.demon.co.uk
Re: Can't boot from pendrive
On 24/01/2015 13:30, Rodolfo Medina wrote: Hi all. From: http://www.us.debian.org/CD/netinst/ I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a pendrive with: $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync If you create a /dev/sdc1 partition a launch the dd on it, does it work? , but then can't boot from it even though the BIOS is - apparently - configured so to do that. Why? Thanks for any help, Rodolfo -- -- mrr -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/54c3ab8b$0$2334$426a3...@news.free.fr
Re: Can't boot from pendrive
Rodolfo Medina wrote: > From: > > http://www.us.debian.org/CD/netinst/ > > I downloaded the file debian-7.8.0-i386-netinst.iso and copied it > onto a pendrive with: > > $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync > > , but then can't boot from it even though the BIOS is - apparently - > configured so to do that. Why? Some computers contain buggy BIOS versions. Booting from pendrive did not work on my previous 32-bit PC either, even though the BIOS was set to do so. Fortunately, it does on my new 64-bit PC. If it does not work in your PC (did booting from pendrive _ever_ work with it?), then there are still a couple of other options you can try, as described here (section 3.6.2, last two paragraphs): www.debian.org/releases/stable/i386/ch03s06.html.en#boot-dev-select -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150124144427.23d3b766.shiems...@kpnplanet.nl
Re: Can't boot from pendrive
On Sat 24 Jan 2015 at 12:26:02 +, Rodolfo Medina wrote: > From: > > http://www.us.debian.org/CD/netinst/ > > I downloaded the file debian-7.8.0-i386-netinst.iso and copied it onto a > pendrive with: > > $ dd if=debian-7.8.0-i386-netinst.iso of=/dev/sdc bs=4M; sync That's an ok command. > , but then can't boot from it even though the BIOS is - apparently - > configured > so to do that. Why? Assuming the machine can boot from USB, check the BIOS settings again. On a running system, please post the outputs of fdisk -l debian-7.8.0-i386-netinst.iso and, after plugging in the pendrive, fdisk -l /dev/sdX You'll get "X" from dmesg. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/24012015131212.bf27112c3...@desktop.copernicus.demon.co.uk