sudo lshw -C disk *-cdrom description: DVD-RAM writer physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/cdrom logical name: /dev/dvd logical name: /dev/scd0 logical name: /dev/sr0 capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram configuration: status=open
*-disk:0 description: SCSI Disk physical id: 0.0.0 bus info: scsi@2:0.0.0 logical name: /dev/sda size: 100GiB (107GB) capabilities: partitioned partitioned:dos configuration: signature=000a2bb9 *-disk:1 description: SCSI Disk physical id: 0.1.0 bus info: scsi@2:0.1.0 logical name: /dev/sdb size: 30GiB (32GB) capabilities: partitioned partitioned:dos configuration: signature=d78abb53
sudo fdisk /dev/sdb
Command (m for help): m
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)
Нажимаем n p 1 w
sudo mkfs -t ext3 /dev/sdb1
sudo tune2fs -m 1 /dev/sdb1
sudo mkdir /media/disk1
sudo nano -Bw /etc/fstab
Добавляем
/dev/sdb1 /media/disk1 ext3 defaults 0 2
mount -a