I want to create a bootable USB stick in CentOS 7.9 I found this webpage
https://wiki.centos.org/HowTos/InstallFromUSBkey
but it uses as an example
dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdz
The problem I have, is I don't know what to put in place of "sdz"
Looking in /var/log/messages I see
Jan 18 15:53:07 duck kernel: usb 2-8.2: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
Jan 18 15:53:07 duck kernel: usb 2-8.2: New USB device found, idVendor=30de, idProduct=6545, bcdDevice= 1.10
Jan 18 15:53:07 duck kernel: usb 2-8.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 18 15:53:07 duck kernel: usb 2-8.2: Product: TransMemory
Jan 18 15:53:07 duck kernel: usb 2-8.2: Manufacturer: KIOXIA
Jan 18 15:53:07 duck kernel: usb 2-8.2: SerialNumber: C03FD5F770FBE4207312345E
Jan 18 15:53:07 duck kernel: usb-storage 2-8.2:1.0: USB Mass Storage device detected
Jan 18 15:53:07 duck kernel: scsi host10: usb-storage 2-8.2:1.0
Jan 18 15:53:08 duck kernel: scsi 10:0:0:0: Direct-Access KIOXIA TransMemory PMAP PQ: 0 ANSI: 6
Jan 18 15:53:08 duck kernel: sd 10:0:0:0: [sdd] 30265344 512-byte logical blocks: (15.4 GB/14.4 GiB)
Jan 18 15:53:08 duck kernel: sd 10:0:0:0: [sdd] Write Protect is off
Jan 18 15:53:08 duck kernel: sd 10:0:0:0: Attached scsi generic sg4 type 0
Jan 18 15:53:08 duck kernel: sd 10:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Jan 18 15:53:08 duck kernel: sdd: sdd1
Jan 18 15:53:08 duck kernel: sd 10:0:0:0: [sdd] Attached SCSI removable disk
Looking in /dev, I see
brw-rw----. 1 root disk 8, 48 Jan 18 15:53 sdd
brw-rw----. 1 root disk 8, 49 Jan 18 15:53 sdd1
Should I use /dev/sdd1 or /dev/sdd or something else? Clearly this is not a case of "suck it and see", as it will seriously mess up the system, if one needs to be root. I don't know if one needs to be root or not. That page does not mention it, but it would not surprise me if one needs to be.
Dave
Creating a bootable USB stick - what in /dev?
Re: Creating a bootable USB stick - what in /dev ?
Okay, one does need to be root
[drkirkby@duck ~]$ dd if=CentOS-7-x86_64-Everything-2003.iso of=/dev/sdd
dd: failed to open ‘/dev/sdd’: Permission denied
[drkirkby@duck ~]$ dd if=CentOS-7-x86_64-Everything-2003.iso of=/dev/sdd1
dd: failed to open ‘/dev/sdd1’: Permission denied
so clearly I need to get it right, as I don't want to make an error as root.
[drkirkby@duck ~]$ dd if=CentOS-7-x86_64-Everything-2003.iso of=/dev/sdd
dd: failed to open ‘/dev/sdd’: Permission denied
[drkirkby@duck ~]$ dd if=CentOS-7-x86_64-Everything-2003.iso of=/dev/sdd1
dd: failed to open ‘/dev/sdd1’: Permission denied
so clearly I need to get it right, as I don't want to make an error as root.
Re: Creating a bootable USB stick - what in /dev ?
You need to use the entire device (sdd) not sdd1.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Creating a bootable USB stick - what in /dev ?
Run this as root to figure out what device to use:
fdisk -l
fdisk -l