I have been trying to install BT5R2-KDE-32.iso to my 8GB flash drive using http://www.backtrack-linux.org/wiki/...Persistent_USB but after getting to this point, and after the computer churns for a few minutes after initially entering the command it gives errors. The input and output is below, please review.
Code:
dusf@banshee:~$ sudo fdisk /dev/sdf
[sudo] password for dusf:
Command (m for help): d
No partition is defined yet!
Command (m for help): u
Changing display/entry units to cylinders (DEPRECATED!)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 1):
Using default value 1
First cylinder (1-1021, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1021, default 1021): +2500M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 2): 2
First cylinder (335-1021, default 335):
Using default value 335
Last cylinder, +cylinders or +size{K,M,G} (335-1021, default 1021):
Using default value 1021
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.
dusf@banshee:~$ mkfs.vfat -F 32 -n BT5 /dev/sdf1
mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/sdf1: Permission denied
dusf@banshee:~$ sudo mkfs.vfat -F 32 -n BT5 /dev/sdf1
mkfs.vfat 3.0.9 (31 Jan 2010)
dusf@banshee:~$ sudo mkfs.ext3 -b 4096 -L casper-rw /dev/sdf2
mke2fs 1.41.14 (22-Dec-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
328656 inodes, 1313175 blocks
65658 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1346371584
41 block groups
32768 blocks per group, 32768 fragments per group
8016 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
dusf@banshee:~$ mount | grep BT
/media/DUMP/dusf/Downloads/.transmission/BT5R2-KDE-32/BT5R2-KDE-32.iso on /media/BT5R2 type iso9660 (ro)
dusf@banshee:~$ mkdir /mnt/sdf1
mkdir: cannot create directory `/mnt/sdf1': File exists
dusf@banshee:~$ mount /dev/sdf1 /mnt/sdf1
mount: only root can do that
dusf@banshee:~$ sudo mount /dev/sdf1 /mnt/sdf1
dusf@banshee:~$ cd cd /mnt/sdf1
bash: cd: cd: No such file or directory
dusf@banshee:~$ cd /mnt/sdf1
dusf@banshee:/mnt/sdf1$ sudo rsync -r /media/BT5R2/* .
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/mnt/sdf1/casper/filesystem.squashfs": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.8]
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.8]
I have the ISO mounted to /media/BT5R2.
I have read in the FAQ section I can install it from a virtual machine, or from Windows, but surely there's a supported way to install linux from linux?
Code:
dusf@banshee:/mnt/sdf1$ sudo fdisk -l /dev/sdf
[sudo] password for dusf:
Disk /dev/sdf: 8010 MB, 8010301440 bytes
214 heads, 8 sectors/track, 9138 cylinders, total 15645120 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: 0x7a43caea
Device Boot Start End Blocks Id System
/dev/sdf1 * 2048 4283423 2140688 b W95 FAT32
/dev/sdf2 4283424 15644255 5680416 83 Linux
Code:
dusf@banshee:/mnt/sdf1$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 15G 6.3G 7.9G 45% /
udev 491M 4.0K 491M 1% /dev
tmpfs 201M 1008K 200M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 501M 16K 500M 1% /run/shm
/dev/sda7 210G 208G 2.4G 99% /media/DUMP
/dev/sda6 14G 7.7G 5.3G 60% /home
/home/dusf/.Private 14G 7.7G 5.3G 60% /home/dusf
/dev/sda1 56G 48G 8.2G 86% /media/WINXP
/dev/loop0 2.7G 2.7G 0 100% /media/BT5R2
/dev/sdf1 2.1G 136K 2.1G 1% /mnt/sdf1
I am using Ubuntu 11.10.
Perhaps the guide simply does not apply to BT5R2-KDE-32 and there is no guide for new users to install it from linux? Last time I used Unetbootin I was advised to use Persistent USB with fdisk instead...
I successfully installed BT5R2-KDE-32 with Unetbootin as per the guide on the Wiki but when running live it would take a long long time to start, seemed buggy freezing, hanging for over 10 minutes after logging off and doing a sudo shutdown -h now, and eveutally it would not start up at all.
I then downloaded BT5-KDE-32 and installed successfully using the guide at the start of this thread but it just gave me a 'boot:' prompt when I tried to boot from USB.
Tried installing BT5-KDE-32 again after confirming the MD5, but this time when trying to boot I saw:
Code:
Error: file not found
grub rescue>
I then installed it using Windows USB Universal Installer but on trying the same I would just see some information on syslinux and then a 'boot:' prompt.
I am not sure where to go from here, please advise!