1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
2 |
<html> |
3 |
<head> |
4 |
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss"> |
5 |
<link rel="shortcut icon" href="favicon.ico"> |
6 |
<title>Clonezilla-SysRescCD - Documentation: Identifying devices in Linux</title> |
7 |
<style type="text/css"> |
8 |
body { font-family: Arial, 'sans serif'; color: black; font-size: 12pt; background : url(null) fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px; margin-bottom: 5px; } |
9 |
|
10 |
|
11 |
|
12 |
#header {position:relative; display: block; width: 980px; height: 121px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/header.png');clear:both;} |
13 |
#header h2{ color: #FFE6BC; font-weight: bold; font-size: 2.2em; margin:0; padding:0; padding-left: 10px; padding-top: 7px; text-shadow: #333333 2px 2px 4px;} |
14 |
#header h3{ color: #FFE6BC; font-weight: bold; font-size: 1.8em; margin:0; padding: 0; padding-left: 10px; text-shadow: #333333 2px 2px 4px;} |
15 |
#header h4{ color: #FFE6BC; font-weight: bold; font-size: 1.2em; margin:0; padding: 0; padding-left: 10px; padding-right: 10px; text-shadow: #333333 2px 2px 4px;} |
16 |
#header a {text-decoration:none;} |
17 |
|
18 |
#contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD; clear:both;} |
19 |
|
20 |
#linkline { width: 980px; height: 29px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/linkline.png');clear:both; } |
21 |
#linkline a{float: left; color: #FFE6BC; font-weight: bold; font-size: 0.8em; text-decoration: none; text-shadow: #333333 2px 2px 4px; padding-left: 10px; padding-right: 10px; padding-top: 5px;} |
22 |
#linkline a:visited{color: #FFE6BC;} |
23 |
#linkline a:hover{color: #333333;} |
24 |
#linkline a.here {color: #333333; text-decoration: none;} |
25 |
|
26 |
#lastupdate {float: right; display: block; text-align: right; margin: 0; margin-top: -1.2em; padding: 0; padding-right: 15px;} |
27 |
|
28 |
#rss { float: right; text-align: right; padding-top: 3px;} |
29 |
|
30 |
#docline-top { float: right; padding-right: 40px; text-align: right; } |
31 |
#docline-bottom { float: right; padding-right: 40px; text-align: right; font-size: 0.8em; padding-top: 15px; } |
32 |
#docline-bottom a{ padding-left: 10px; padding-right: 10px; } |
33 |
|
34 |
#menu { float: right; display: block; width: 170px; margin: auto; padding: 15px; font-size: 0.8em; font-weight: bold; background-color: #FFE6BC;} |
35 |
#menu h1 {color: #990000; font-size: 1.8em;text-shadow: gray 2px 2px 4px;} |
36 |
#menu a,a:visited{ color: black; text-decoration: none; font-weight: normal;} |
37 |
#menu a:hover{ text-decoration: underline;} |
38 |
#menu p{ margin-bottom: 10px;} |
39 |
|
40 |
#content { float: left; display: block; width: 950px; margin: auto; padding: 15px;} |
41 |
|
42 |
|
43 |
#footer {display: block; width: 980px; height: 100px;margin: auto; padding: auto; background-color: #D37624; background-image: url('images/footer.png');clear:both;text-shadow: #333333 2px 2px 4px;} |
44 |
#footer p{color: #FFE6BC; font-weight: bold; padding:15px; padding-left: 10px;} |
45 |
#footer a,a:visited{color: #FFE6BC; font-weight: bold; text-decoration:none;} |
46 |
#footer a:hover{ color: #333333; text-decoration: none;} |
47 |
|
48 |
|
49 |
#content H1,H2,H3,H4{color: #990000; text-align: left;} |
50 |
#content H2{margin-top: 2em;} |
51 |
#content H3{margin-top: 1.5em} |
52 |
#content H4{margin-top: 1em} |
53 |
#content li { margin-top: 1em;} |
54 |
#content a,a:active,a:visited{text-decoration: none; color: #4075CA; font-weight: normal;} |
55 |
#content a:hover{text-decoration: underline; font-weight: normal;} |
56 |
#content .hidden{ display:none; } |
57 |
#content p,td,table,tr,li { font-family: Arial, 'sans serif'; } |
58 |
#content .nav{margin-left: 0pt;} |
59 |
#content .newcode{font-family : "Courier New", Courier, monospace; font-weight: bold; background-color: #F2F2F2; border: solid 1px #DEDEDE;padding: 20pt;} |
60 |
#content .note{margin-top: 30pt; margin-bottom: 30pt; text-align: left; background-color: #FFEFEF; border: double 3px; border-color: #FFD5D5;} |
61 |
#content hr{color: Black; background-color: Black; height: 1px; border: none;} |
62 |
#content .header-news{margin-top: 2em; margin-left: 25pt; font-weight: bold; color: #990000;} |
63 |
#content .item-news{margin-left: 45pt; margin-right: 45pt;} |
64 |
#content .otherpage{border: solid 1px darkgoldenrod; padding: 20pt; background-color: lemonchiffon;} |
65 |
#content IMG {display: block; margin-left: auto; margin-right: auto; } |
66 |
#content .red{color: white; background-color: Red; font-weight: bold;} |
67 |
#lphp{text-align: right; padding-left: 10px; padding-right: 10px; padding-top: 50px; float: right;} |
68 |
#lphp a{padding-left: 5px;} |
69 |
</style> |
70 |
<META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba"> |
71 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
72 |
|
73 |
</head> |
74 |
|
75 |
<body> |
76 |
<div id="header"> |
77 |
<div id="lphp" style=""><a target="_blank" href="onepage.php"><img src="images/chain.png" border="0" /></a><a target="_blank" href="printable.php"><img src="images/print_it.png" border="0" /></a></div> |
78 |
<H2>Clonezilla-SysRescCD</H2> |
79 |
<H3>Documentation: Identifying devices in Linux</H3> |
80 |
<div style="margin:0; padding: 3px; width: 980; position relative;"> |
81 |
<div style="position: absolute; left: 0px;"><H4>25/02/2010 - v 3.1.0</H4></div> |
82 |
<div style="position: absolute; right: 0px;"><H4>Last update: 16/03/2010</H4></div> |
83 |
</div> |
84 |
</div> |
85 |
<div id="linkline"> |
86 |
<a href="index.html">Home</a> |
87 |
<a href="news.php">News</a> |
88 |
<!-- <a href="features.html">Features</a>--> |
89 |
<a class="here" href="doc.html">Documentation</a> |
90 |
<a href="index.html#download">Download</a> |
91 |
<a href="screenshots.html">Screenshots</a> |
92 |
<a href="index.html#credits">Credits</a> |
93 |
<a href="help.html">Help</a> |
94 |
|
95 |
<div id="rss"> |
96 |
<a href="clonezilla-sysresccd.rss"><img src="images/rss-orange-11.png" width="30" height="14" border="0"/></a> |
97 |
</div> |
98 |
<!-- docline-top--> |
99 |
<div id="docline-top"> <a href="own-scripts.html">< PREV</a> <a href="doc.html">UP</a> <a href="">NEXT ></a> </div> |
100 |
</div> |
101 |
<div id="contarea"> |
102 |
<div id="content"> |
103 |
<a name="annex-a-top"></a> |
104 |
|
105 |
|
106 |
<!-- Intro --> |
107 |
|
108 |
<H2 style="margin-top: 0;"><a name="annex-a-intro"></a>Intro <span class="hideprint">[<a href="#annex-a-top" title="go to top of the page">^</a>]</span></H2> |
109 |
<p>This page is intended to help new Linux users and Windows users identify their hard disks / CD ROMs in a Linux box.<br><br> |
110 |
<!--empty-line--> |
111 |
Linux disks and partition names may be different from other operating systems. You need to know the names that Linux uses when you format, mount or select partitions or disks.<br><br> |
112 |
<!--empty-line--> |
113 |
Linux uses the so called <b>device name</b> to access disks and partitions. You can think of it as a link to the actual driver of the disk. All available devices have a corresponding file in <b>/dev</b> (e.g. /dev/hda1).<br><br> |
114 |
<!--empty-line--> |
115 |
In general, each disk / CD-ROM has a three letter name, for example <b>hda</b>. Each partition in such a disk has a number associated with it, starting from 1. So the first partition of disk <b>hda</b> would be <b>hda<font color="Red">1</font></b>, the second <b>hda<font color="Red">2</font></b> and so on.<br><br> |
116 |
<!--empty-line--> |
117 |
Depending on the device type, Linux gives the following names to devices:</p> |
118 |
|
119 |
<ul> |
120 |
<li><b>IDE (ATA) floppies</b><br> |
121 |
The first floppy drive is named <b>/dev/fd0</b>.<br> |
122 |
The second floppy drive is named <b>/dev/fd1</b>.</li> |
123 |
<!--empty-line--> |
124 |
<li><b>IDE (ATA) disks /CD-ROMs</b><br> |
125 |
The master disk on IDE primary controller is named <b>/dev/hda</b>.<br> |
126 |
The slave disk on IDE primary controller is named <b>/dev/hdb</b>.<br> |
127 |
The master and slave disks of the secondary controller can be called <b>/dev/hdc</b> and <b>/dev/hdd</b>, respectively.<br><br> |
128 |
<!--empty-line--> |
129 |
Linux represents the primary partitions as the drive name, plus the numbers 1 through 4. For example, the first primary partition on the first IDE drive is <b>/dev/hda1</b>. The logical partitions are numbered starting at 5, so the first logical partition on that same drive is <b>/dev/hda5</b>. Remember that the extended partition, that is, the primary partition holding the logical partitions, is not usable by itself. This applies to SCSI disks as well as IDE disks.</li> |
130 |
<!--empty-line--> |
131 |
<li><b>SCSI disks</b><br> |
132 |
The first SCSI disk (SCSI ID address-wise) is named <b>/dev/sda</b>.<br> |
133 |
The second SCSI disk (address-wise) is named <b>/dev/sdb</b>, and so on.</li> |
134 |
<!--empty-line--> |
135 |
<li><b>SCSI CD-ROMs</b><br> |
136 |
The first SCSI CD-ROM is named <b>/dev/scd0</b>, also known as <b>/dev/sr0</b>.<br> |
137 |
The second SCSI CD-ROM is named <b>/dev/scd1</b>, also known as <b>/dev/sr1</b>, and so on.</li> |
138 |
<!--empty-line--> |
139 |
<li><b>USB disks</b><br> |
140 |
They are named just like SCSI disks. The only difference is that the partition number has to do with the file system on the disk. If it's <b>/dev/sdx<font color="Red">4</font></b>, then it's a VFAT file system and if it's <b>/dev/sdx<font color="Red">1</font></b> it's probably a linux (ext2, ext3) file system.</li> |
141 |
</ul> |
142 |
|
143 |
|
144 |
|
145 |
<!-- Examples --> |
146 |
<H2><a name="annex-a-examples"></a>Examples <span class="hideprint">[<a href="#annex-a-top" title="go to top of the page">^</a>]</span></H2> |
147 |
<p>In order to identify the disks of a system you have to work with, a basic knowledge of its configuration (how many disks it has, whether it's a dual-boot system etc.) is welcomed but not required. A more experienced user will not have to worry about it, though.<br><br> |
148 |
<!--empty-line--> |
149 |
Linux systems based on a 2.6.x kernel (like <b>Clonezilla Live</b> and <b>SystemRescueCD</b>) provide all the necessary support to identify a system's disk configuration, with just a couple of commands.</p> |
150 |
<!--empty-line--> |
151 |
|
152 |
|
153 |
|
154 |
<!-- Example 1 --> |
155 |
<H3><a name="annex-a-ex1"></a>Example 1 [<a href="#annex-a-top" title="go to top of the page">^</a>]</H3> |
156 |
<p>The first system I have to work with is a dual-boot system (Windows - Linux), with two disks and two DVD-ROMs.<br><br> |
157 |
<!--empty-line--> |
158 |
The first command will tell me what disks and partitions exist in the system. So here it is:</p> |
159 |
<!--empty-line--> |
160 |
<p class="newcode"># <font color="Green">cat /proc/partitions</font><br> |
161 |
major minor #blocks name<br> |
162 |
<br> |
163 |
3 0 312571224 <font color="Red">hda</font><br> |
164 |
3 1 23446836 hda1<br> |
165 |
3 2 40957717 hda2<br> |
166 |
3 3 245240257 hda3<br> |
167 |
3 4 2923830 hda4<br> |
168 |
3 64 244198584 <font color="Red">hdb</font><br> |
169 |
3 65 41945683 hdb1<br> |
170 |
3 66 2104515 hdb2<br> |
171 |
3 67 1 hdb3<br> |
172 |
3 68 125909437 hdb4<br> |
173 |
3 69 74236333 hdb5</p> |
174 |
<!--empty-line--> |
175 |
<p>The output of this command tells me that the system has two disks (<b><font color="Red">hda</font></b> and <b><font color="Red">hdb</font></b>) which are the primary master and slave devices.<br><br> |
176 |
<!--empty-line--> |
177 |
The first disk contains four primary partitions (hda1-hda4) and the second one four primary partitions (hdb1-hdb4) and a logical one (hdb5). Wait a minute!!! this can't be right... In order to have a logical partition, I must have a primary that contains it, which means that in this case I can't have four primary partitions. So what is really happening here is that I have two primary and two logical, plus an extended primary which contains them.<br><br> |
178 |
<!--empty-line--> |
179 |
What remains to be found is what type of partitions they are. I will find that out by executing the following commands:<p> |
180 |
<!--empty-line--> |
181 |
<p class="newcode"># <font color="Green">fdisk -l /dev/hda</font><br> |
182 |
<br> |
183 |
Disk /dev/hda: 320.0 GB, 320072933376 bytes<br> |
184 |
255 heads, 63 sectors/track, 38913 cylinders<br> |
185 |
Units = cylinders of 16065 * 512 = 8225280 bytes<br> |
186 |
<br> |
187 |
Device Boot Start End Blocks Id System<br> |
188 |
/dev/hda1 * 1 2919 23446836 7 HPFS/NTFS<br> |
189 |
/dev/hda2 2920 8018 40957717+ 7 HPFS/NTFS<br> |
190 |
/dev/hda3 8019 38549 245240257+ 7 HPFS/NTFS<br> |
191 |
/dev/hda4 38550 38913 2923830 82 Linux swap / Solaris<br> |
192 |
<br> |
193 |
<br> |
194 |
# <font color="Green">fdisk -l /dev/hdb</font><br> |
195 |
<br> |
196 |
Disk /dev/hdb: 250.0 GB, 250059350016 bytes<br> |
197 |
255 heads, 63 sectors/track, 30401 cylinders<br> |
198 |
Units = cylinders of 16065 * 512 = 8225280 bytes<br> |
199 |
<br> |
200 |
Device Boot Start End Blocks Id System<br> |
201 |
/dev/hdb1 * 1 5222 41945683+ 83 Linux<br> |
202 |
/dev/hdb2 5223 5484 2104515 82 Linux swap / Solaris<br> |
203 |
/dev/hdb3 5485 14726 74236365 f W95 Ext'd (LBA)<br> |
204 |
/dev/hdb4 14727 30401 125909437+ 83 Linux<br> |
205 |
/dev/hdb5 5485 14726 74236333+ 83 Linux</p> |
206 |
<!--empty-line--> |
207 |
<p>Ok, this clears things up. The first disk contains three Windows XP partitions (NTFS) and a Linux Swap partition. In fact, <b>/dev/hda1</b> is the system "disk" for Windows, since Windows will always be installed in the first partition of the primary master disk.<br><br> |
208 |
<!--empty-line--> |
209 |
The second disk, on the other hand, contains a Linux partition (<b>/dev/hdb1</b>), a Linux Swap partition <b>/dev/hdb2</b>, and an extended partition <b>/dev/hdb3</b> which contains two more Linux partitions (<b>/dev/hdb4</b> and <b>/dev/hdb5</b>).<br><br> |
210 |
<!--empty-line--> |
211 |
The final thing we need to know about this system is what CD/DVD-ROMs it has. So I execute the command:</p> |
212 |
<!--empty-line--> |
213 |
<p class="newcode"># <font color="Green">cat /proc/sys/dev/cdrom/info</font><br> |
214 |
CD-ROM information, Id: cdrom.c 3.20 2003/12/17<br> |
215 |
<br> |
216 |
drive name: <font color="Red">hdd</font> <font color="Red">hdc</font><br> |
217 |
drive speed: 0 126<br> |
218 |
drive # of slots: 1 1<br> |
219 |
Can close tray: 1 1<br> |
220 |
Can open tray: 1 1<br> |
221 |
Can lock tray: 1 1<br> |
222 |
Can change speed: 1 1<br> |
223 |
Can select disk: 0 0<br> |
224 |
Can read multisession: 1 1<br> |
225 |
Can read MCN: 1 1<br> |
226 |
Reports media changed: 1 1<br> |
227 |
Can play audio: 1 1<br> |
228 |
Can write CD-R: 0 1<br> |
229 |
Can write CD-RW: 0 1<br> |
230 |
Can read DVD: 1 1<br> |
231 |
Can write DVD-R: 0 1<br> |
232 |
Can write DVD-RAM: 0 1<br> |
233 |
Can read MRW: 1 0<br> |
234 |
Can write MRW: 1 0<br> |
235 |
Can write RAM: 0 1</p> |
236 |
<!--empty-line--> |
237 |
<p>The system has two DVD-ROMs, <b><font color="Red">hdc</font></b> which is the secondary master and is a DVD writer, and <b><font color="Red">hdd</font></b> which is the secondary slave and is a DVD reader.<br><br> |
238 |
<!--empty-line--> |
239 |
At this point I will connect my USB stick, wait for a while and execute the command:</p> |
240 |
<!--empty-line--> |
241 |
<p class="newcode"># <font color="Green">cat /proc/partitions</font><br> |
242 |
major minor #blocks name<br> |
243 |
<br> |
244 |
3 0 312571224 hda<br> |
245 |
3 1 23446836 hda1<br> |
246 |
3 2 40957717 hda2<br> |
247 |
3 3 245240257 hda3<br> |
248 |
3 4 2923830 hda4<br> |
249 |
3 64 244198584 hdb<br> |
250 |
3 65 41945683 hdb1<br> |
251 |
3 66 2104515 hdb2<br> |
252 |
3 67 1 hdb3<br> |
253 |
3 68 125909437 hdb4<br> |
254 |
3 69 74236333 hdb5<br> |
255 |
8 0 1007615 <font color="Red">sda</font><br> |
256 |
8 4 1006576 sda4</p> |
257 |
<!--empty-line--> |
258 |
<p>As you can see, we have two more lines here, that reflect the changes to our system (the connection of the USB device). So my USB stick is recognized by the system as <b><font color="Red">sda</font></b>, and the disk itself contains a VFAT file system.</p> |
259 |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
<!-- Example 2 --> |
268 |
<H3><a name="annex-a-ex2"></a>Example 2 [<a href="#annex-a-top" title="go to top of the page">^</a>]</H3> |
269 |
<p>The second system is a Linux box with one SCSI disk and a CD-ROM. Again I issue the command:</p> |
270 |
<!--empty-line--> |
271 |
<p class="newcode"># <font color="Green">cat /proc/partitions</font><br> |
272 |
major minor #blocks name<br> |
273 |
<br> |
274 |
8 0 156290904 <font color="Red">sda</font><br> |
275 |
8 1 64228 sda1<br> |
276 |
8 2 15735667 sda2<br> |
277 |
8 3 15735667 sda3<br> |
278 |
8 4 124744725 sda4</p> |
279 |
<!--empty-line--> |
280 |
<p>From its output I see I only have one disk <b><font color="Red">sda</font></b>, which contains four partitions.<br><br> |
281 |
<!--empty-line--> |
282 |
Then I execute <b>fdisk</b>, which shows me that the disk contains one DOS and three Linux partitions.</p> |
283 |
<!--empty-line--> |
284 |
<p class="newcode"># <font color="Green">fdisk -l /dev/sda</font><br> |
285 |
Disk /dev/sda: 160.0 GB, 160041885696 bytes<br> |
286 |
255 heads, 63 sectors/track, 19457 cylinders<br> |
287 |
Units = cylinders of 16065 * 512 = 8225280 bytes<br> |
288 |
<br> |
289 |
Device Boot Start End Blocks Id System<br> |
290 |
/dev/sda1 1 8 64228+ 6 FAT16<br> |
291 |
/dev/sda2 9 1967 15735667+ 83 Linux<br> |
292 |
/dev/sda3 1968 3926 15735667+ 83 Linux<br> |
293 |
/dev/sda4 3927 19456 124744725 83 Linux</p> |
294 |
<!--empty-line--> |
295 |
<p>Finally I query its CD-ROMs, by executing the command:</p> |
296 |
<!--empty-line--> |
297 |
<p class="newcode"># <font color="Green">cat /proc/sys/dev/cdrom/info</font><br> |
298 |
CD-ROM information, Id: cdrom.c 3.20 2003/12/17<br> |
299 |
<br> |
300 |
drive name: <font color="Red">hda</font><br> |
301 |
drive speed: 0<br> |
302 |
drive # of slots: 1<br> |
303 |
Can close tray: 1<br> |
304 |
Can open tray: 1<br> |
305 |
Can lock tray: 1<br> |
306 |
Can change speed: 1<br> |
307 |
Can select disk: 0<br> |
308 |
Can read multisession: 1<br> |
309 |
Can read MCN: 1<br> |
310 |
Reports media changed: 1<br> |
311 |
Can play audio: 1<br> |
312 |
Can write CD-R: 1<br> |
313 |
Can write CD-RW: 1<br> |
314 |
Can read DVD: 1<br> |
315 |
Can write DVD-R: 0<br> |
316 |
Can write DVD-RAM: 0<br> |
317 |
Can read MRW: 1<br> |
318 |
Can write MRW: 1<br> |
319 |
Can write RAM: 0</p> |
320 |
<!--empty-line--> |
321 |
<p>Which tells me that I only have an IDE CD-ROM, (<b><font color="Red">hda</font></b>), which is actually a CD writer.<br><br> |
322 |
<!--empty-line--> |
323 |
Then I connect my USB stick, and I get:</p> |
324 |
<!--empty-line--> |
325 |
<p class="newcode"># <font color="Green">cat /proc/partitions</font><br> |
326 |
major minor #blocks name<br> |
327 |
<br> |
328 |
8 0 156290904 sda<br> |
329 |
8 1 64228 sda1<br> |
330 |
8 2 15735667 sda2<br> |
331 |
8 3 15735667 sda3<br> |
332 |
8 4 124744725 sda4<br> |
333 |
8 16 1007615 <font color="Red">sdb</font><br> |
334 |
8 20 1006576 sdb4</p> |
335 |
<!--empty-line--> |
336 |
<p>Although it's the same stick I used with the previous system, which was recognized as <b><font color="Red">sda</font></b> there, now its name is <b><font color="Red">sdb</font></b>. So, its name depends on the system it is connected to, and will not always be the same.</p> |
337 |
|
338 |
|
339 |
|
340 |
|
341 |
<!-- SCSI - ATA --> |
342 |
<H2><a name="annex-a-scsi-ata"></a>SCSI disks when there are none!!! <span class="hideprint">[<a href="#annex-a-top" title="go to top of the page">^</a>]</span></H2> |
343 |
<p>I am confused!!! I am on a disk with two ATA (PATA) disks, but when I query the partition list, this is what I get:</p> |
344 |
<!--empty-line--> |
345 |
<p class="newcode"># <font color="Green">cat /proc/partitions</font><br> |
346 |
major minor #blocks name<br> |
347 |
<br> |
348 |
3 0 312571224 <font color="Red">sda</font><br> |
349 |
3 1 23446836 sda1<br> |
350 |
3 2 40957717 sda2<br> |
351 |
3 3 245240257 sda3<br> |
352 |
3 4 2923830 sda4<br> |
353 |
3 64 244198584 <font color="Red">sdb</font><br> |
354 |
3 65 41945683 sdb1<br> |
355 |
3 66 2104515 sdb2<br> |
356 |
3 67 1 sdb3<br> |
357 |
3 68 125909437 sdb4<br> |
358 |
3 69 74236333 sdb5</p> |
359 |
<!--empty-line--> |
360 |
<p>According to what's discussed up to now, the system seems to have two SCSI disks, but I know it actually has two ATA (PATA) disks. What's going on?.<br><br> |
361 |
<!--empty-line--> |
362 |
What is really happening here is that you have one of the newest Linux kernels (using the libata disk driver), which shows <b>ALL</b> disks as SCSI. That does not mean that the system thinks it has SCSI disks, it just names them as such.<br><br> |
363 |
<!--empty-line--> |
364 |
To make is clear, execute the commands:</p> |
365 |
<!--empty-line--> |
366 |
<p class="newcode"># <font color="Green">hdparm -i /dev/sda</font><br> |
367 |
<br> |
368 |
/dev/sda:<br> |
369 |
<br> |
370 |
Model=WDC WD3200AAJB-00TYA0, FwRev=00.02C01, SerialNo= WD-WCAPZ0648927<br> |
371 |
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }<br> |
372 |
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50<br> |
373 |
BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?<br> |
374 |
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455<br> |
375 |
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}<br> |
376 |
PIO modes: pio0 pio3 pio4<br> |
377 |
DMA modes: mdma0 mdma1 mdma2<br> |
378 |
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5<br> |
379 |
AdvancedPM=no WriteCache=enabled<br> |
380 |
Drive conforms to: Unspecified: <font color="Red">ATA/ATAPI-1,2,3,4,5,6,7</font><br> |
381 |
<br> |
382 |
* signifies the current active mode<br> |
383 |
<br> |
384 |
<br> |
385 |
# <font color="Green">hdparm -i /dev/sdb</font><br> |
386 |
<br> |
387 |
/dev/sdb:<br> |
388 |
<br> |
389 |
Model=WDC WD2500JB-00GVC0, FwRev=08.02D08, SerialNo= WD-WCAL76141931<br> |
390 |
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }<br> |
391 |
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74<br> |
392 |
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?<br> |
393 |
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455<br> |
394 |
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}<br> |
395 |
PIO modes: pio0 pio1 pio2 pio3 pio4<br> |
396 |
DMA modes: mdma0 mdma1 mdma2<br> |
397 |
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5<br> |
398 |
AdvancedPM=no WriteCache=enabled<br> |
399 |
Drive conforms to: Unspecified: <font color="Red">ATA/ATAPI-1,2,3,4,5,6</font><br> |
400 |
<br> |
401 |
* signifies the current active mode</p> |
402 |
<!--empty-line--> |
403 |
<p>This is also valid for the CDs/DVDs of the system:</p> |
404 |
<!--empty-line--> |
405 |
<p class="newcode"># <font color="Green">cat /proc/sys/dev/cdrom/info</font><br> |
406 |
CD-ROM information, Id: cdrom.c 3.20 2003/12/17<br> |
407 |
<br> |
408 |
drive name: <font color="Red">sr1</font> <font color="Red">sr0</font><br> |
409 |
drive speed: 0 126<br> |
410 |
drive # of slots: 1 1<br> |
411 |
Can close tray: 1 1<br> |
412 |
Can open tray: 1 1<br> |
413 |
Can lock tray: 1 1<br> |
414 |
Can change speed: 1 1<br> |
415 |
Can select disk: 0 0<br> |
416 |
Can read multisession: 1 1<br> |
417 |
Can read MCN: 1 1<br> |
418 |
Reports media changed: 1 1<br> |
419 |
Can play audio: 1 1<br> |
420 |
Can write CD-R: 0 1<br> |
421 |
Can write CD-RW: 0 1<br> |
422 |
Can read DVD: 1 1<br> |
423 |
Can write DVD-R: 0 1<br> |
424 |
Can write DVD-RAM: 0 1<br> |
425 |
Can read MRW: 1 0<br> |
426 |
Can write MRW: 1 0<br> |
427 |
Can write RAM: 0 1</p> |
428 |
<!--empty-line--> |
429 |
<p>While the <b><font color="Green">hdparm</font></b> shows they are ATA devices:</p> |
430 |
<!--empty-line--> |
431 |
<p class="newcode"># <font color="Green">hdparm -i /dev/sr0</font><br> |
432 |
<br> |
433 |
/dev/sr0:<br> |
434 |
<br> |
435 |
Model=HL-DT-ST DVDRAM GSA-H42L, FwRev=SL01 , SerialNo=K286CQF2231 <br> |
436 |
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }<br> |
437 |
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0<br> |
438 |
BuffType=unknown, BuffSize=0kB, MaxMultSect=0<br> |
439 |
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0<br> |
440 |
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}<br> |
441 |
PIO modes: pio0 pio3 pio4<br> |
442 |
DMA modes: mdma0 mdma1 mdma2<br> |
443 |
UDMA modes: udma0 udma1 *udma2 udma3 udma4<br> |
444 |
AdvancedPM=no<br> |
445 |
Drive conforms to: unknown: <font color="Red">ATA/ATAPI-4,5,6,7</font><br> |
446 |
<br> |
447 |
* signifies the current active mode<br> |
448 |
<br></p> |
449 |
|
450 |
|
451 |
</div> |
452 |
|
453 |
|
454 |
|
455 |
<!--<a name="template-top"></a>--> |
456 |
|
457 |
<div id="footer"> |
458 |
<div id="docline-bottom"> <a href="own-scripts.html">< PREV</a> <a href="doc.html">UP</a> <a href="">NEXT ></a> </div> |
459 |
<p>Copyright: © <a href="mailto:sng@hellug.gr?subject=About Clonezilla-SysRescCD v 3.1.0">Spiros Georgaras</a>, 2007-2010<br /><br/> |
460 |
Hosted by <a href="http://www.hellug.gr" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p> |
461 |
</div> |
462 |
</div> |
463 |
</body> |
464 |
</html> |