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

Re: Adding partition(s) to a Debian install pendrive



On Thu 18 Aug 2016 at 20:57:33 +0200, Thomas Schmitt wrote:

>   $ /sbin/fdisk  /dev/sdc
>   ...
>   Command (m for help): n
>   Select (default p): p
>   Partition number (3,4, default 3): 3
>   First sector (505856-3915775, default 505856): 
>   Last sector, +sectors or +size{K,M,G,T,P} (505856-3915775, default 3915775): 
> 
>   Created a new partition 3 of type 'Linux' and of size 1.6 GiB.
>   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

I get exactly this.

> (I wonder by what method fdisk tries to read the table and fails)

I ignore things I do not understand.

> In any case it has worked:

As it did for me.

>   $ /sbin/fdisk -l /dev/sdc
>   ...
>   Device     Boot  Start     End Sectors  Size Id Type
>   /dev/sdc1  *         0  505855  505856  247M  0 Empty
>   /dev/sdc2         3900    4731     832  416K ef EFI (FAT-12/16/32)
>   /dev/sdc3       505856 3915775 3409920  1.6G 83 Linux
> 
> Let's hope the USB stick still boots via BIOS and EFI ...

It does.

> Next one would mkfs.fat a filesystem onto /dev/sdc2 and copy files to it.

Indeed.


Reply to: