mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
6 lines
231 B
Bash
6 lines
231 B
Bash
#!/bin/bash -x
|
|
# this will break on machines with LVM, but other things will too
|
|
|
|
FIRSTDEV=`ls -lav /dev |grep brw| grep 'sd\|mmc' | awk 'NR==1' |awk --field-separator=' ' '{ print $10 }'`
|
|
|
|
parted /dev/$FIRSTDEV -ms print devices
|