Tag Info

Hot answers tagged

6

For general use, If you would like to run your program for any USB storage. Use the driver for the rule match. Add a udev rules file sudo nano /etc/udev/rules.d/90-detect-storage.rules Add this rule ACTION=="add", DRIVERS=="usb-storage", DRIVER=="sd", RUN+="/pathto/yourprogram" If you want your program to distinguish the disks, so it runs different ...


5

You can use udev to run an albitrary command. To make it work, create a rule in /etc/udev/rules.d/: sudo nano /etc/udev/rules.d/my-usb-device.rules And enter: ACTION=="add", ATTRS{idProduct}=="XXXX", ATTRS{idVendor}=="YYYY", RUN+="/location/of/my/command" NOTE: The XXXX and YYYY values will be taken from lsusb output.


3

You can use the dd utility. First unmount your usb-drive and then get the device name with: lsblk Then create the bootable usb with: sudo dd bs=4M if=/path/to/your.iso of=/dev/xxx && sync Change /dev/xxx to your usb-drive device name.


2

Here's your problem: fdisk -l /dev/sdd1 You've told fdisk to read the contents of /dev/sdd1 and treat it as a partition table; however, /dev/sdd1 is itself a partition! Chances are you should have specified /dev/sdd, not /dev/sdd1. (It is legal to put a partition table on a partition, but this is normally done only for certain specialized cases, such as ...


2

Problem is that the new image isn't meant to be used with unetbootin or any of the normal USB creators. Just use dd like: dd if=ubuntu-14.04.2-server-amd64.iso of=/dev/sdb bs=16M (obviously, replace /dev/sdb with the path to your USB key, but don't use any partitions (i.e. don't use /dev/sdb1, /dev/sdb2, etc -- just the whole device)


1

Try to create the new partition table using parted from the command line: sudo parted /dev/sdb mklabel msdos Then you can just try to create the partition and the filesystem using Gparted. If it doesn't work, create the partition table and the partition using parted from the command line: sudo parted /dev/sdb mklabel msdos mkpart primary 2048s 100% ...



Only top voted, non community-wiki answers of a minimum length are eligible