On Tue, 14 Aug 2018, local10 wrote: > Date: Tue, 14 Aug 2018 08:44:26 > From: local10 <loca...@tutanota.com> > To: debian-user@lists.debian.org > Subject: ISO file to sd card: Disk /dev/sdb doesn't contain a valid partition > table > Resent-Date: Tue, 14 Aug 2018 12:44:40 +0000 (UTC) > Resent-From: debian-user@lists.debian.org > > Hi, > > Am having issues trasfering iso file to an sd card using dd: > > # dd if=/tmp/winfile.iso of=/dev/sdb bs=1M conv=fsync > > dd completes successfully without any issues but when I try to mount the sd > card I can't (wrong fs type, bad option, bad superblock on /dev/sdb1) and > fdisk says "Disk /dev/sdb doesn't contain a valid partition table". That's > kind of strange as I can mount and read /tmp/winfile.iso and it seems to be > in good order. > > Any ideas? Thanks > > > # fdisk -l /dev/sdb > ... > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00000000 > > Disk /dev/sdb doesn't contain a valid partition table > >
-- files and partitions are two different kinds of animal. IIII'm pretty certain if you run lsblk you will not find an entry for sdb1 or sdb2 on that disk either which means no valid partitions. Not only do you need to make a partition, you will also need to put a file system on it I'd recommend vfat for the windows stuff unless you normally use ntfs and have the necessary ntfs support utilities already on your system. Just don't loose that source file until after you got this done. Then mount -t vfat /dev/sdb1 /mnt/dvd would get you a mounted partition and a command like: cp filename /mnt/dvd as root or sudo would put that file in a partition with a file system on the drive you want. ls /mnt/dvd should show you the filename too once done.