Here is the code that I have use to make a peristent usb.
I'm following the wiki persistent usb at http://www.backtrack-linux.org/wiki/...Persistent_USB
I'm running wMware workstation 9 btr3 kde 64
Code:
root@bt:~# dmesg | egrep hd.\|sd.
[ 0.224912] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.238972] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.253759] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.267489] NMI watchdog enabled, takes one hw-pmu counter.
[ 5.127966] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 5.128765] sd 2:0:0:0: [sda] 41943040 512-byte logical blocks: (21.4 GB/20.0 GiB)
[ 5.129533] sd 2:0:0:0: [sda] Write Protect is off
[ 5.130199] sd 2:0:0:0: [sda] Mode Sense: 61 00 00 00
[ 5.130995] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.132176] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.133571] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.134319] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.135514] sda: unknown partition table
[ 5.136930] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.137884] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.138874] sd 2:0:0:0: [sda] Attached SCSI disk
[ 518.994277] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 518.999232] sd 3:0:0:0: [sdb] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 519.007112] sd 3:0:0:0: [sdb] Write Protect is off
[ 519.007118] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 519.015120] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 519.049092] sdb: sdb1
[ 519.078043] sd 3:0:0:0: [sdb] Attached SCSI removable disk
root@bt:~# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): U
Changing display/entry units to sectors
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): D
No partition is defined yet!
Command (m for help): N
Command action
e extended
p primary partition (1-4)
P
Partition number (1-4): 1
First sector (63-62530623, default 63):
Using default value 63
Last sector, +sectors or +size{K,M,G} (63-62530623, default 62530623): +3500M
Command (m for help): N
Command action
e extended
p primary partition (1-4)
P
Partition number (1-4): 2
First sector (7168064-62530623, default 7168064):
Using default value 7168064
Last sector, +sectors or +size{K,M,G} (7168064-62530623, default 62530623):
Using default value 62530623
Command (m for help): T
Partition number (1-4): 1
Hex code (type L to list codes): B
Changed system type of partition 1 to b (W95 FAT32)
Command (m for help): T
Partition number (1-4): 2
Hex code (type L to list codes): 83
Command (m for help): A
Partition number (1-4): 1
Command (m for help): W
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
root@bt:~# dmesg | egrep hd.\|sd.
[ 0.224912] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.238972] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.253759] NMI watchdog enabled, takes one hw-pmu counter.
[ 0.267489] NMI watchdog enabled, takes one hw-pmu counter.
[ 5.127966] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 5.128765] sd 2:0:0:0: [sda] 41943040 512-byte logical blocks: (21.4 GB/20.0 GiB)
[ 5.129533] sd 2:0:0:0: [sda] Write Protect is off
[ 5.130199] sd 2:0:0:0: [sda] Mode Sense: 61 00 00 00
[ 5.130995] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.132176] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.133571] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.134319] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.135514] sda: unknown partition table
[ 5.136930] sd 2:0:0:0: [sda] Cache data unavailable
[ 5.137884] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 5.138874] sd 2:0:0:0: [sda] Attached SCSI disk
[ 518.994277] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 518.999232] sd 3:0:0:0: [sdb] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 519.007112] sd 3:0:0:0: [sdb] Write Protect is off
[ 519.007118] sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 519.015120] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 519.049092] sdb: sdb1
[ 519.078043] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 953.954164] sdb: sdb1 sdb2
[ 992.732823] sd 4:0:0:0: Attached scsi generic sg2 type 0
[ 992.737992] sd 4:0:0:0: [sdb] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 992.745830] sd 4:0:0:0: [sdb] Write Protect is off
[ 992.745836] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 992.754464] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 992.789808] sdb: sdb1 sdb2
[ 992.817759] sd 4:0:0:0: [sdb] Attached SCSI removable disk
root@bt:~# mkfs.vfat -F 32 -n BT5 /dev/sdb1
mkfs.vfat 3.0.7 (24 Dec 2009)
root@bt:~# mkfs.ext3 -b 4096 -L casper-rw /dev/sdb2
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=casper-rw
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1733312 inodes, 6920320 blocks
346016 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
212 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@bt:~# mkdir /mnt/sdb1
root@bt:~# mount /dev/sdb1 /mnt/sdb1
mount: special device /dev/sdb1 does not exist
root@bt:~# cd /mnt/sdb1
root@bt:/mnt/sdb1# rsync -r /cdrom/* .
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/mnt/sdb1/casper/filesystem.squashfs": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (164 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
root@bt:/mnt/sdb1# syslinux /dev/sdb1
/dev/sdb1: No such file or directory
root@bt:/mnt/sdb1# syslinux /dev/sdb
/dev/sdb: No such file or directory
root@bt:/mnt/sdb1#
I notice that when I type in:
root@bt:~# mount /dev/sdb1 /mnt/sdb1
I get
mount: special device /dev/sdb1 does not exist
Is this the my problem?