Zde je výpis.....
Skript šlo aplikovat pouze na externí disk (výzva k odpojení a připojení disku), druhý interní disk který je přímo v PC se nikde nezobrazuje ani jako připojený.....
dmesg
---------------------------
951,968d950
< [ 4503.203762] usb 1-3: new high speed USB device using ehci_hcd and address 7
< [ 4503.352575] scsi8 : usb-storage 1-3:1.0
< [ 4504.351054] scsi 8:0:0:0: Direct-Access WD Ext HDD 1021 2002 PQ: 0 ANSI: 4
< [ 4504.351496] sd 8:0:0:0: Attached scsi generic sg7 type 0
< [ 4504.353420] sd 8:0:0:0: [sdg] 1953519616 512-byte logical blocks: (1.00 TB/931 GiB)
< [ 4504.354419] sd 8:0:0:0: [sdg] Test WP failed, assume Write Enabled
< [ 4504.354422] sd 8:0:0:0: [sdg] Assuming drive cache: write through
< [ 4504.356039] sd 8:0:0:0: [sdg] Test WP failed, assume Write Enabled
< [ 4504.356041] sd 8:0:0:0: [sdg] Assuming drive cache: write through
< [ 4504.356045] sdg: sdg1
< [ 4504.366183] sdg: p1 size 1953523120 extends beyond EOD, enabling native capacity
< [ 4504.367789] sd 8:0:0:0: [sdg] Test WP failed, assume Write Enabled
< [ 4504.367792] sd 8:0:0:0: [sdg] Assuming drive cache: write through
< [ 4504.367795] sdg: sdg1
< [ 4504.368297] sdg: p1 size 1953523120 extends beyond EOD, truncated
< [ 4504.370541] sd 8:0:0:0: [sdg] Test WP failed, assume Write Enabled
< [ 4504.370545] sd 8:0:0:0: [sdg] Assuming drive cache: write through
< [ 4504.370548] sd 8:0:0:0: [sdg] Attached SCSI disk
lsusb
---------------------------
10d9
< Bus 001 Device 007: ID 1058:1021 Western Digital Technologies, Inc.
fdisk -l
---------------------------
21,30d20
<
< Disk /dev/sdg: 1 000,2 GB, 1 000 202 043 392 bajtů
< hlav: 255, sektorů na stopu: 63, cylindrů: 121 600
< Jednotky = cylindry po 16065 * 512 = 8 225 280 bajtech
< Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů
< Velikost I/O (minimální/optimální): 512 bajtů / 512 bajtů
< Identifikátor disku: 0x0002553b
<
< Zařízení Zavádět Začátek Konec Bloky Id Systém
< /dev/sdg1 1 121602 976761560 7 HPFS/NTFS
parted -l
---------------------------
19,20d18
<
Chyba: Nemohu mít oddíl mimo disk!
<
mount
---------------------------
blkid -c /dev/null
---------------------------
4d3
< /dev/sdg1: LABEL="Elements" UUID="924872A3487285AF" TYPE="ntfs"
ls -l /media
---------------------------
Devkit
---------------------------
451,546d450
< Showing information for /org/freedesktop/UDisks/devices/sdg
< native-path: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host8/target8:0:0/8:0:0:0/block/sdg
< device: 8:96
< device-file: /dev/sdg
< presentation: /dev/sdg
< by-id: /dev/disk/by-id/usb-WD_Ext_HDD_1021_574341563539373838343031-0:0
< by-path: /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0
< detected at: Čt 9. prosinec 2010, 09:55:02 CET
< system internal: 0
< removable: 0
< has media: 1 (detected at Čt 9. prosinec 2010, 09:55:02 CET)
< detects change: 0
< detection by polling: 0
< detection inhibitable: 0
< detection inhibited: 0
< is read only: 0
< is mounted: 0
< mount paths:
< mounted by uid: 0
< presentation hide: 0
< presentation nopolicy: 0
< presentation name:
< presentation icon:
< size: 1000202043392
< block size: 512
< job underway: no
< usage:
< type:
< version:
< uuid:
< label:
< partition table:
< scheme: mbr
< count: 1
< drive:
< vendor: WD
< model: Ext HDD 1021
< revision: 2002
< serial: 574341563539373838343031
< WWN:
< detachable: 1
< can spindown: 1
< rotational media: Yes, unknown rate
< write-cache: unknown
< ejectable: 0
< adapter: Unknown
< ports:
< similar devices:
< media:
< compat:
< interface: usb
< if speed: 480000000 bits/s
< ATA SMART: Data not collected
< Showing information for /org/freedesktop/UDisks/devices/sdg1
< native-path: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host8/target8:0:0/8:0:0:0/block/sdg/sdg1
< device: 8:97
< device-file: /dev/sdg1
< presentation: /dev/sdg1
< by-id: /dev/disk/by-id/usb-WD_Ext_HDD_1021_574341563539373838343031-0:0-part1
< by-id: /dev/disk/by-uuid/924872A3487285AF
< by-path: /dev/disk/by-path/pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0-part1
< detected at: Čt 9. prosinec 2010, 09:55:02 CET
< system internal: 0
< removable: 0
< has media: 1 (detected at Čt 9. prosinec 2010, 09:55:02 CET)
< detects change: 0
< detection by polling: 0
< detection inhibitable: 0
< detection inhibited: 0
< is read only: 0
< is mounted: 0
< mount paths:
< mounted by uid: 0
< presentation hide: 0
< presentation nopolicy: 0
< presentation name:
< presentation icon:
< size: 1000200994816
< block size: 512
< job underway: no
< usage: filesystem
< type: ntfs
< version:
< uuid: 924872A3487285AF
< label: Elements
< partition:
< part of: /org/freedesktop/UDisks/devices/sdg
< scheme: mbr
< number: 1
< type: 0x07
< flags:
< offset: 1048576
< alignment offset: 0
< size: 1000203837440
< label:
< uuid:
uname -a
---------------------------
Linux ubuntu 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 11:55:36 UTC 2010 x86_64 GNU/Linux
cat /etc/lsb-release
---------------------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
free -m
---------------------------
total used free shared buffers cached
Mem: 8003 3172 4831 0 1163 1416
-/+ buffers/cache: 592 7410
Swap: 254 0 254
df -Th
---------------------------
Soub. systém Typ Velikost Užito Volno Uži% Mounted on
/dev/loop0 ext4 17G 2,8G 13G 19% /
none devtmpfs 4,0G 320K 4,0G 1% /dev
none tmpfs 4,0G 248K 4,0G 1% /dev/shm
none tmpfs 4,0G 92K 4,0G 1% /var/run
none tmpfs 4,0G 0 4,0G 0% /var/lock
/dev/sdb1 fuseblk 299G 173G 126G 58% /host