[62249.491845] sdb:
[62249.532482] sd 3:0:0:0: [sdb] No Caching mode page present
[62249.532490] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[62249.532575] sd 3:0:0:0: [[b]sdb[/b]] Attached SCSI removable disk
Device ID is sdb in this case.
/dev/sdb on /media/42D3-B580 type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
It is mounted on /media/42D3-B580 in this case.
umount /media/42D3-B580
fdisk /dev/sdb
Command (m for help): d
Partition number (1-4): 2
Repeat until all partitions are deleted:
Command (m for help): d
Selected partition 4
Command (m for help): p
Disk /dev/sdb: 16.0 GB, 16039018496 bytes
64 heads, 32 sectors/track, 15296 cylinders, total 31326208 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
Device Boot Start End Blocks Id System
Command (m for help):
Write changes to your USB device using the ‘w’ command, like this:
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
vmmint01 etc #
-> Your USB device is now empty, no partitions left on the device.
fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-31326207, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-31326207, default 31326207): +700M
Command (m for help): a
Partition number (1-4): 1
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Command (m for help): p
Disk /dev/sdb: 16.0 GB, 16039018496 bytes
64 heads, 32 sectors/track, 15296 cylinders, total 31326208 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
Disk identifier: 0x6f20736b
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1435647 716800 c W95 FAT32 (LBA)
Now create the 2nd partition:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 2): 2
First sector (1435648-31326207, default 1435648):
Using default value 1435648
Last sector, +sectors or +size{K,M,G} (1435648-31326207, default 31326207):
Using default value 31326207
Command (m for help): t
Hex code (type L to list codes): 83
Command (m for help): p
Disk /dev/sdb: 16.0 GB, 16039018496 bytes
64 heads, 32 sectors/track, 15296 cylinders, total 31326208 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
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1435647 716800 c W95 FAT32 (LBA)
/dev/sdb2 1435648 31326207 14945280 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
vmmint01 etc #
-> You now have 2 partitions on your USB device (without file systems).
vmmint01 etc # mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
vmmint01 etc #
vmmint01 etc # mkfs.ext3 /dev/sdb2
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
934720 inodes, 3736320 blocks
186816 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3829399552
115 block groups
32768 blocks per group, 32768 fragments per group
8128 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
vmmint01 etc #
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)