[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB key and lost space



Hi,

Rodary Jacques wrote:
> I did subscribe  in april 2016,

The mail header X-Spam-Status in your mail to the list does not contain
the test "LDOSUBSCRIBER". So currently your address rodaryj@free.fr is
not subscribed.

Consider to subscribe again and also to Cc: the debian-user list with
your replies.


> Where am I supposed to find firmware.tar.gz. It may be a very stupid
> question, I was used with .iso  image disks only.

Other people on debian-user probably have more experience with that.
I have to google.
For the current Debian release 9 "stretch" it is probably on
  https://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stretch/current/


I wrote:
> > So use /sbin/fdisk to create partition 3.

> I used fdisk, cfdisk and partitionprobe and it seems my Key is  quite
> useless now

Which ISO image did you put onto the USB stick ?

Let's give current netinst a try:

  $ dd if=debian-9.3.0-amd64-netinst.iso of=/dev/sdc bs=1M
  ...
  $ /sbin/fdisk /dev/sdc
  ...
  Command (m for help): p
  ...
  Device     Boot Start    End Sectors  Size Id Type
  /dev/sdc1  *        0 593919  593920  290M  0 Empty
  /dev/sdc2        3760   4591     832  416K ef EFI (FAT-12/16/32)

  Command (m for help): n
  Partition type
     p   primary (2 primary, 0 extended, 2 free)
     e   extended (container for logical partitions)
  Select (default p): p
  Partition number (3,4, default 3): 3
  First sector (593920-7864318, default 593920): 
  Last sector, +sectors or +size{K,M,G,T,P} (593920-7864318, default 7864318): 

  Created a new partition 3 of type 'Linux' and of size 3.5 GiB.

  Command (m for help): p
  Disk /dev/sdc: 3.8 GiB, 4026531328 bytes, 7864319 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 512 bytes
  I/O size (minimum/optimal): 512 bytes / 512 bytes
  Disklabel type: dos
  Disk identifier: 0x0347fd41

  Device     Boot  Start     End Sectors  Size Id Type
  /dev/sdc1  *         0  593919  593920  290M  0 Empty
  /dev/sdc2         3760    4591     832  416K ef EFI (FAT-12/16/32)
  /dev/sdc3       593920 7864318 7270399  3.5G 83 Linux


  Command (m for help): w
  The partition table has been altered.
  Calling ioctl() to re-read partition table.
  Re-reading the partition table failed.: Permission denied

The final error message comes because i did this as normal user, just
having rw-permission to /dev/sdc.
I unplug and replug the USB stick to let the kernel assess the new
partitioning:

  $ ls /dev/sdc*
  /dev/sdc  /dev/sdc1  /dev/sdc2  /dev/sdc3


> I will try dd, very carefully. to erase this new partition I finally
> created, and perhaps come back to you afterwards.

I would just copy the ISO again onto the USB stick base device 
and then run fdisk.


Have a nice day :)

Thomas


Reply to: