RHEL4 i external USB mass storage device
Dakle ako na RHEL4U5 (u mom slučaju) nakačite eksterni USB disk od 1,2T i dobijete ovakvu poruku :
# mount /dev/sdf1 /usb1
mount: fs type ntfs not supported by kernel
Šta sad?
Najbolje je, ako vam sadržaj sa diska ne treba, nego samo disk, kao prostor za podatke, da formatirate disk kao Linux particiju :
Kako uopšte znaki kroz koji drajver ga mašina vidi :
# dmesg
…..
usb 1-6: new high speed USB device using address 4
Initializing USB Mass Storage driver…
scsi11 : SCSI emulation for USB Mass Storage devices
Vendor: WD Model: My Book 1110 Rev: 2003
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdf: 2928904192 512-byte hdwr sectors (1499599 MB)
sdf: assuming drive cache: write through
…..
Moramo obrisati staru NTFS particiju, i napraviti novu, Linux :
# fdisk /dev/sdf
…..
Command (m for help): p gledamo šta već postoji na uređaju
Disk /dev/sdf: 1499.5 GB, 1499598946304 bytes
255 heads, 63 sectors/track, 182315 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 182316 1464451072 7 HPFS/NTFS
Command (m for help): d brišemo postojeću ntfs particiju
Selected partition 1
Command (m for help): p pregledamo da više nema particija
Disk /dev/sdf: 1499.5 GB, 1499598946304 bytes
255 heads, 63 sectors/track, 182315 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n kreiramo novu Linux particiju
Command action
e extended
p primary partition (1-4)
p obavezno staviti da je primarna particija
Partition number (1-4): 3
First cylinder (1-182315, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-182315, default 182315):
Using default value 182315
Command (m for help): w pišemo izmenu na disk
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Posle ovoga formiramo fajl sistem na novom prostoru :
# mkfs -t ext3 /dev/sdf3
Napomena : sdf3 broj “3” je zato što smo odabrali primarnu particiju broj 3 pri formatiranju
…..
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
183058432 inodes, 366111301 blocks
18305565 blocks (5.00%) reserved for the super user
…..
Writing inode tables: 205/11173
…..
Ako je veći disk to će da traaajjjeeeee.
I sad mount nad folderom koji smo za to napravili :
# mount -t ext3 /dev/sdf3 /usb1/
I provera :
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 68G 562M 64G 1% /
…..
/dev/sdf3 1.4T 109M 1.3T 1% /usb1
I još jedna provera :
# dmesg
…..
EXT3 FS on sdf3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Paziti! USB uređaj će se prilikom svakog kačenja (ili restarta mašine) videti po drugom device fajlu. To se najbolje vidi u dmesg poruci (uključiti i isključiti uređaj, i pratiti dmesg output).