Hi, I'm having some noobish difficulty understanding something that is happening on my Kingston USB drive. If I try to execute this:
$ sudo zcat boot.img.gz > /dev/sdb
I get:
$ /dev/sdb Permission Denied.
But the drive is partitioned as FAT32 W95 (which I thought didn't have ownership issues).
I thought it might be something to do with the type of partition so I tried to change the partition to a linux one, but get the same message.
I also tried it with the disc mounted and unmounted.
Here is the strange part. If I gained root (sudo su) I could execute the zcat boot.img.gz > /dev/sdb and also cp debian-40r5-i386-netinst.iso and it appears to write to the disc, but for some reason nothing is copied to the USB disk and it fails to boot the install program.
I can however copy and create files directly onto the USB disc with no problem. So why does is deny me permissions sometimes? Whats going on!?
Thanks.
Some extra info...
$ lsusb
Bus 004 Device 003: ID 0951:1603 Kingston Technology
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c001 Logitech, Inc. N48/M-BB48 [FirstMouse Plus]
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
$ fdisk -l
Disk /dev/sda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd991d991
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2425 19478781 7 HPFS/NTFS
/dev/sda2 2426 4805 19117350 83 Linux
/dev/sda3 4806 4870 522112+ 82 Linux swap / Solaris
Disk /dev/sdb: 4141 MB, 4141875200 bytes
255 heads, 63 sectors/track, 503 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000043e6
Device Boot Start End Blocks Id System
/dev/sdb1 1 503 4040316 b W95 FAT32
Bookmarks