Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PARTED -L:
- ***********************************************************************************************
- root/# parted -l
- Model: ATA WDC WD10EZEX-00B (scsi)
- Disk /dev/sda: 1000GB
- Sector size (logical/physical): 512B/4096B
- Partition Table: msdos
- Number Start End Size Type File system Flags
- 1 1049kB 997GB 997GB primary ext4 boot
- 2 997GB 1000GB 3202MB extended
- 5 997GB 1000GB 3202MB logical linux-swap(v1)
- Model: (scsi)
- Disk /dev/sdb: 4010MB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Number Start End Size Type File system Flags
- 1 4129kB 4010MB 4006MB primary fat32 lba
- Model: (scsi)
- Disk /dev/sdc: 124GB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Number Start End Size Type File system Flags
- 1 16.0MB 124GB 124GB primary fat32 lba
- ***********************************************************************************************
- FDISK -L
- ***********************************************************************************************
- root/# fdisk -l
- Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
- 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x000742b2
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 1947267071 973632512 83 Linux
- /dev/sda2 1947269118 1953523711 3127297 5 Extended
- Partition 2 does not start on physical sector boundary.
- /dev/sda5 1947269120 1953523711 3127296 82 Linux swap / Solaris
- Disk /dev/sdb: 4009 MB, 4009754624 bytes
- 23 heads, 23 sectors/track, 14804 cylinders, total 7831552 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: 0x6f1dc27c
- Device Boot Start End Blocks Id System
- /dev/sdb1 8064 7831551 3911744 c W95 FAT32 (LBA)
- Disk /dev/sdc: 123.8 GB, 123765522432 bytes
- 66 heads, 2 sectors/track, 1831284 cylinders, total 241729536 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: 0x84e4ee1c
- Device Boot Start End Blocks Id System
- /dev/sdc1 31232 241729535 120849152 c W95 FAT32 (LBA)
- ***********************************************************************************************
- OLD SCRIPT ROUTINE:
- ***********************************************************************************************
- for f in /sys/block/sd[cdef]/removable;
- do [ "$(cat $f)" = "1" ];
- SDDRV=$(basename $(dirname $f));
- echo "F=> " ${f};
- echo "DRV=> " ${SDDRV};
- # echo "SD => " ${SDDRV};
- SIZ=$(( (( $(cat $(dirname $f)/size) * 512 )) / 1000000000 ));
- echo "SIZ: ${SIZ}";
- getname ${SIZ}; # Set the SDNAM var
- DI="`df -h | grep -i ${SDDRV}`";
- if [ -z ${DI} ]; then
- DI="`df -h | grep -i sd[cdef]`";
- fi
- AV="`echo ${DI} | awk '{ print $4 }'`";
- MP="`echo ${DI} | awk '{ print $6 }'`";
- done
- ***********************************************************************************************
- LSBLK
- ***********************************************************************************************
- root/# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 931.5G 0 disk
- ├─sda1 8:1 0 928.5G 0 part /
- ├─sda2 8:2 0 1K 0 part
- └─sda5 8:5 0 3G 0 part [SWAP]
- sdb 8:16 1 3.8G 0 disk
- └─sdb1 8:17 1 3.7G 0 part /media/ndavis/USB DISK
- sdc 8:32 1 115.3G 0 disk
- └─sdc1 8:33 1 115.3G 0 part
- sr0 11:0 1 21M 0 rom
- ***********************************************************************************************
Advertisement
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement