All I get when using "less" is the console printing ^[[A for up and ^[[B for down. Page Up and Down don't work either.Code:less | cat /proc/partitions
Try using up arrow and down arrow keys with "less".
You mean like switching to Microsoft Windows? For some reason, these problems don't exist with that operating system.We've given several ways to do this, if none of them work... maybe it's time to try something else.
The following is an example the use of busybox. It's not clear to me why a version of busybox would not have a functioning fdisk binary, but be that as it may. Nevetheless I outline in the following the usage of busybox here in the hope that it would be helpful.Unfortunately, fdisk is also unsupported by the installer version of BusyBox. Do you know any other commands?
$ busybox --help
BusyBox v1.37.0 (Debian 1:1.37.0-4) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...
<snip>
Currently defined functions:
<snip>
dmesg ... fdisk
<snip>
$ busybox fdisk -l
Disk /dev/nvme0n1: 466 GB, 500107862016 bytes, 976773168 sectors
60563 cylinders, 256 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/nvme0n1p1 0,0,2 1023,255,63 1 976773167 976773167 465G ee EFI GPT
$ busybox fdisk -l
Disk /dev/nvme0n1: 466 GB, 500107862016 bytes, 976773168 sectors
60563 cylinders, 256 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/nvme0n1p1 0,0,2 1023,255,63 1 976773167 976773167 465G ee EFI GPT
Disk /dev/sda: 29 GB, 30765219840 bytes, 60088320 sectors
3725 cylinders, 256 heads, 63 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/sda1 0,0,2 1023,255,63 1 60088319 60088319 28.6G ee EFI GPT
/dev/sda2 0,0,1 0,0,1 0 0 1 512 0 Empty
$ busybox dmesg
<snip>
6887.792135] usb 1-2.2: new high-speed USB device number 7 using xhci_hcd
[ 6887.897394] usb 1-2.2: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.00
[ 6887.897411] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6887.897417] usb 1-2.2: Product: Cruzer Blade
[ 6887.897422] usb 1-2.2: Manufacturer: SanDisk
[ 6887.897426] usb 1-2.2: SerialNumber: 04009126081823063724
[ 6887.899315] usb-storage 1-2.2:1.0: USB Mass Storage device detected
[ 6887.900068] scsi host9: usb-storage 1-2.2:1.0
[ 6887.930451] usbcore: registered new interface driver uas
[ 6888.909367] scsi 9:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6
[ 6888.912245] scsi 9:0:0:0: Attached scsi generic sg1 type 0
[ 6888.955006] sd 9:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)
[ 6888.956170] sd 9:0:0:0: [sda] Write Protect is off
[ 6888.956179] sd 9:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 6888.956637] sd 9:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 6889.017064] sda: sda1 sda2 sda3 sda4
[ 6889.017839] sd 9:0:0:0: [sda] Attached SCSI removable disk
[ 6909.080786] usb 1-2.2: USB disconnect, device number 7
It's not the version of BusyBox that comes with a fully installed version of Debian. It's the version of BusyBox that is built into the system installer BEFORE an operating system is installed. That's where I think your confusion comes from. You're looking at things from the perspective of a fully installed operating system. I haven't even gotten half way there yet.The following is an example the use of busybox. It's not clear to me why a version of busybox would not have a functioning fdisk binary, but be that as it may. Nevetheless I outline in the following the usage of busybox here in the hope that it would be helpful.
The following command shows output which confirms that both fdisk and dmesg are in the busybox binary on a debian system and therefore should be ready for use. Note that a lot of the irrelevant output has been snipped.
Code:$ busybox --help BusyBox v1.37.0 (Debian 1:1.37.0-4) multi-call binary. BusyBox is copyrighted by many authors between 1998-2015. Licensed under GPLv2. See source distribution for detailed copyright notices. Usage: busybox [function [arguments]...] or: busybox --list[-full] or: busybox --install [-s] [DIR] or: function [arguments]... <snip> Currently defined functions: <snip> dmesg ... fdisk <snip>
Without a usb plugged into the machine the fdisk output is the following:
The output just shows the single drive.Code:$ busybox fdisk -l Disk /dev/nvme0n1: 466 GB, 500107862016 bytes, 976773168 sectors 60563 cylinders, 256 heads, 63 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/nvme0n1p1 0,0,2 1023,255,63 1 976773167 976773167 465G ee EFI GPT
After the usb has been plugged in, the output shows the usb along with its device name, /dev/sda and the partitions on the usb, /dev/sda1 and /dev/sda2.
Code:$ busybox fdisk -l Disk /dev/nvme0n1: 466 GB, 500107862016 bytes, 976773168 sectors 60563 cylinders, 256 heads, 63 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/nvme0n1p1 0,0,2 1023,255,63 1 976773167 976773167 465G ee EFI GPT Disk /dev/sda: 29 GB, 30765219840 bytes, 60088320 sectors 3725 cylinders, 256 heads, 63 sectors/track Units: sectors of 1 * 512 = 512 bytes Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type /dev/sda1 0,0,2 1023,255,63 1 60088319 60088319 28.6G ee EFI GPT /dev/sda2 0,0,1 0,0,1 0 0 1 512 0 Empty
It is also possible to see the device names of a plugged in usb with the dmesg command as suggested in post #12. The output from the dmesg command in the following shows both when the usb was first plugged into the machine, and then when it was withdrawn, that is, disconnected:
Code:$ busybox dmesg <snip> 6887.792135] usb 1-2.2: new high-speed USB device number 7 using xhci_hcd [ 6887.897394] usb 1-2.2: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 1.00 [ 6887.897411] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6887.897417] usb 1-2.2: Product: Cruzer Blade [ 6887.897422] usb 1-2.2: Manufacturer: SanDisk [ 6887.897426] usb 1-2.2: SerialNumber: 04009126081823063724 [ 6887.899315] usb-storage 1-2.2:1.0: USB Mass Storage device detected [ 6887.900068] scsi host9: usb-storage 1-2.2:1.0 [ 6887.930451] usbcore: registered new interface driver uas [ 6888.909367] scsi 9:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6 [ 6888.912245] scsi 9:0:0:0: Attached scsi generic sg1 type 0 [ 6888.955006] sd 9:0:0:0: [sda] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB) [ 6888.956170] sd 9:0:0:0: [sda] Write Protect is off [ 6888.956179] sd 9:0:0:0: [sda] Mode Sense: 43 00 00 00 [ 6888.956637] sd 9:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 6889.017064] sda: sda1 sda2 sda3 sda4 [ 6889.017839] sd 9:0:0:0: [sda] Attached SCSI removable disk [ 6909.080786] usb 1-2.2: USB disconnect, device number 7
If this sort of output is not available in dmesg, then the other usage of the command is to use it as suggested in post #12 watching the output on the terminal screen.
If your version of busybox doesn't have the capacity to show these sorts of results, it may be worth considering using a debian download disk which includes the non-free firmware, which should include the broadcom firmware. Perhaps have a look at this page: https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/, and then the archive to make a selection.
ls /dev/sd*
mount /dev/sdc1 -t ext4 /mnt
cd /mnt
ls
cp -pR b43/ /lib/firmware/.
cd /
umount /mnt
Thanks for your solution to the problem, and congratulations for achieving it.Figured it out. I'll post a guide here to help those who stumble upon this post via Google and to satiate the curiosity of those who are watching this thread.
I am especially proud of using ls to find my USB drive assignment. It's one of those "so simple it's genius" moments.Thanks for your solution to the problem, and congratulations for achieving it.