Hi all,
I've been trying to format my flash drive, but I cannot get fdisk to write to the drive without it complaining about "error 22 invalid argument"
I've been trying to format my flash drive, but I cannot get fdisk to write to the drive without it complaining about "error 22 invalid argument"
Code:
root@dv8000:/media# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda3 39774220 11296968 26472744 30% / varrun 1031000 152 1030848 1% /var/run varlock 1031000 0 1031000 0% /var/lock udev 1031000 64 1030936 1% /dev devshm 1031000 0 1031000 0% /dev/shm lrm 1031000 45040 985960 5% /lib/modules/2.6.24-19-generic/volatile /dev/sda1 985380 1288 934432 1% /media/disk root@dv8000:/media# /sbin/fdisk /dev/sda1 Command (m for help): p Disk /dev/sda1: 1017 MB, 1017101312 bytes 32 heads, 61 sectors/track, 1017 cylinders Units = cylinders of 1952 * 512 = 999424 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1p1 1 1017 992561+ 83 Linux Command (m for help): d Selected partition 1 Command (m for help): 1 1: unknown command Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1017, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1017, default 1017): Using default value 1017 Command (m for help): t Selected partition 1 Hex code (type L to list codes): 83 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. root@dv8000:/media#
Comment