Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 08:22 AM
anc
 
Posts: n/a
Default External USB hard drive and cameras with Gentoo

Using Gentoo 2004.2, kernel 2.4.26. I have modules usbcore,
usb-storage, sd_mod, sg (if required) compiled as mnodules.
First problem is I cannot access my digital camera via the
USB port which will be accessed as /dev/sda1.

Second problem is my old hard drive is connected using a
USB to IDE connector, and I am trying to access partition 7
(reiserfs /dev/sda7).

I have created mount point of /camera and /sda7, extract
of /etc/fstab:

/dev/sda1 /camera auto noauto,users,rw 0 0
/dev/sda7 /sda7 reiserfs noauto,users,rw 0 0


I get the following error when trying to mount my external hard drive:

anc@orac anc $ mount /sda7
mount: /dev/sda7 is not a valid block device

/dev/sda7 does not exist in Gentoo so I created it using kernel major
8 and minor 7
anc@orac anc $ ls -l /dev/sda7
brw-r--r-- 1 root root 8, 7 Oct 20 19:36 /dev/sda7

.........but as gentoo uses the devfs surely this is wrong as other
devices i.e. dev/hda1 are symbolic links. After reading the Gentoo File
System Device Guide I believe I should be symbolicly linking /dev/sda7
to /dev/scsi/xxx/xxx

My question is what do I create under /dev/scsi and do I still use mknod
to create the new devices?
Thanks in advance.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 08:22 AM
Albert
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

I'm a little bit surprised.
sda1 is the first connected device, sdb1 the second, etc.
I've never seen sda2 or 3 etc.
That's different for hda1, hda2 etc.
Why ?

anc wrote:
> Using Gentoo 2004.2, kernel 2.4.26. I have modules usbcore,
> usb-storage, sd_mod, sg (if required) compiled as mnodules.
> First problem is I cannot access my digital camera via the
> USB port which will be accessed as /dev/sda1.
>
> Second problem is my old hard drive is connected using a
> USB to IDE connector, and I am trying to access partition 7
> (reiserfs /dev/sda7).
>
> I have created mount point of /camera and /sda7, extract
> of /etc/fstab:
>
> /dev/sda1 /camera auto noauto,users,rw 0 0
> /dev/sda7 /sda7 reiserfs noauto,users,rw 0 0
>
>
> I get the following error when trying to mount my external hard drive:
>
> anc@orac anc $ mount /sda7
> mount: /dev/sda7 is not a valid block device
>
> /dev/sda7 does not exist in Gentoo so I created it using kernel major
> 8 and minor 7
> anc@orac anc $ ls -l /dev/sda7
> brw-r--r-- 1 root root 8, 7 Oct 20 19:36 /dev/sda7
>
> ........but as gentoo uses the devfs surely this is wrong as other
> devices i.e. dev/hda1 are symbolic links. After reading the Gentoo File
> System Device Guide I believe I should be symbolicly linking /dev/sda7
> to /dev/scsi/xxx/xxx
>
> My question is what do I create under /dev/scsi and do I still use mknod
> to create the new devices?
> Thanks in advance.
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 08:22 AM
Sybren Stuvel
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

Albert enlightened us with:
> sda1 is the first connected device, sdb1 the second, etc.


No it isn't. sda is the first connected SCSI block device. sda1 is the
first partition on that device, not the device itself.

> I've never seen sda2 or 3 etc.
> That's different for hda1, hda2 etc.
> Why ?


Probably because you don't have multiple partitions on your scsi dev.
No use in partitioning your camera ;-)

Please, next time, think about the way you post. Many people don't
think about this and put their reply at the top of their post, quoting
all of the original post below it. Now take a look at this:

---------------------------------------------------------------------
> Why is top posting so hard to read?
> > > What is one of the most annoying responses on Usenet?

> > When they top post.

In the English speaking world we read left to right, top to bottom.
---------------------------------------------------------------------

If people do it the other way around, things will clear up instantly:

---------------------------------------------------------------------
> > > What is one of the most annoying responses on Usenet?

> > When they top post.

> Why is top posting so hard to read?

In the English speaking world we read left to right, top to bottom.
---------------------------------------------------------------------

The best response type is "in-line" posting, that is, remove all the
quoted text that does not apply to your response, adding your comments
in context underneath as you go.

The distributed nature of Usenet is causing that not everyone sees all
posts in a particular thread in the right order or or even at all. If
you make sure you put your reply in a top-to-bottom order, people will
be able to easily read through it from top to bottom.

Be sure to remove all excess quoted text though. There is nothing more
annoying than having to scroll down three pages of quoted text you
already read, just to read a two-lined reply ;-)

A more complete guide to posting to Usenet can be found at
http://www.netmeister.org/news/learn2quote.html

The relevant section on good posting form is here
http://www.netmeister.org/news/learn2quote2.html#ss2.3



Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 08:22 AM
Felix Tiede
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

anc wrote:
> Using Gentoo 2004.2, kernel 2.4.26. I have modules usbcore,
> usb-storage, sd_mod, sg (if required) compiled as mnodules.
> First problem is I cannot access my digital camera via the
> USB port which will be accessed as /dev/sda1.
>
> Second problem is my old hard drive is connected using a
> USB to IDE connector, and I am trying to access partition 7
> (reiserfs /dev/sda7).
>
> I have created mount point of /camera and /sda7, extract
> of /etc/fstab:
>
> /dev/sda1 /camera auto noauto,users,rw 0 0
> /dev/sda7 /sda7 reiserfs noauto,users,rw 0 0
>

This is of course not right, since your harddisc will be device "sda" (as it
is connected first) and your camera will become device "sdb". But your
camera and you disc can not share the same device (sda).
>
> I get the following error when trying to mount my external hard drive:
>
> anc@orac anc $ mount /sda7
> mount: /dev/sda7 is not a valid block device
>

That means that there is no partition number seven available on /dev/sda or
it is a symbolic link and points to an invalid node.
>
> My question is what do I create under /dev/scsi and do I still use mknod
> to create the new devices?


You don't need to.
USB (and hotplug) take care of this on their own.
Your entries in /etc/fstab should therefore look like this:
/dev/sdb1 /camera auto noauto,users,rw 0 0
/dev/sda7 /sda7 reiserfs noauto,users,rw 0 0

If this doesn't work, you can try and look your up your devices under
/dev/scsi/. You can also use fdisk to show the partitions:
#> fdisk -l /dev/sda
and
#> fdisk -l /dev/sdb
or their corresponding nodes under /dev/scsi/, but I assume, you don't need
them. If that should turn up, that "sdb" is the device with seven partitions
you need to alter the corresponding line(s) in /etc/fstab.

HTH, regards
Felix
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 08:22 AM
Albert
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

Thank you for the answer Sybren. Quite useful.
After a little bit more than one year with Linux, I still learn
everyday, that's good.

Concerning my way of posting, it is my choice to post on top, because I
don't think it is a good idea to read through tons of replies to find
the answer at the bottom. Instead, I think it is a loss of time. When
you follow a thread, you generally know already the discussion and you
don't need to read all the text again. The text below my post is for
reference only.
Concerning in line-posting, my own feeling is that it is painful to read
and may be seen as impolite.
You must understand that Internet is a place of freedom, and as long as
someone does not offend the others, he is perfectly free to follow his
own way, whatever the so-called 'netiquette' is. I don't know who
decided what Netiquette is. Self-appointed ?
I hardly accept conservatism here.
I kindly think that you should keep this kind of remark for yourself.
Freedom means some degree of anarchy, by definition.


Sybren Stuvel wrote:
> Albert enlightened us with:
>
>>sda1 is the first connected device, sdb1 the second, etc.

>
>
> No it isn't. sda is the first connected SCSI block device. sda1 is the
> first partition on that device, not the device itself.
>
>
>>I've never seen sda2 or 3 etc.
>>That's different for hda1, hda2 etc.
>>Why ?

>
>
> Probably because you don't have multiple partitions on your scsi dev.
> No use in partitioning your camera ;-)
>
> Please, next time, think about the way you post. Many people don't
> think about this and put their reply at the top of their post, quoting
> all of the original post below it. Now take a look at this:
>
> ---------------------------------------------------------------------
> > Why is top posting so hard to read?
> > > > What is one of the most annoying responses on Usenet?
> > > When they top post.

> In the English speaking world we read left to right, top to bottom.
> ---------------------------------------------------------------------
>
> If people do it the other way around, things will clear up instantly:
>
> ---------------------------------------------------------------------
> > > > What is one of the most annoying responses on Usenet?
> > > When they top post.

> > Why is top posting so hard to read?

> In the English speaking world we read left to right, top to bottom.
> ---------------------------------------------------------------------
>
> The best response type is "in-line" posting, that is, remove all the
> quoted text that does not apply to your response, adding your comments
> in context underneath as you go.
>
> The distributed nature of Usenet is causing that not everyone sees all
> posts in a particular thread in the right order or or even at all. If
> you make sure you put your reply in a top-to-bottom order, people will
> be able to easily read through it from top to bottom.
>
> Be sure to remove all excess quoted text though. There is nothing more
> annoying than having to scroll down three pages of quoted text you
> already read, just to read a two-lined reply ;-)
>
> A more complete guide to posting to Usenet can be found at
> http://www.netmeister.org/news/learn2quote.html
>
> The relevant section on good posting form is here
> http://www.netmeister.org/news/learn2quote2.html#ss2.3
>
>
>
> Sybren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 08:22 AM
Andy Fraser
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

In alt.os.linux.gentoo, Albert uttered the immortal words:

> Concerning my way of posting, it is my choice to post on top, because I
> don't think it is a good idea to read through tons of replies to find
> the answer at the bottom. Instead, I think it is a loss of time.


You only have to read down 6 lines to read this bit of my reply (the
introduction phrase, 3 lines quoted from your post and 2 blank lines). You
can then skip the 2 or 3 lines I quoted to see my other replies to your
post. All the time you're reading top to bottom and you can see exactly
which points in your post I'm replying to. When you reach the bottom you've
read the whole post. There's no need to scroll up unless you choose to do
so. How is that a waste of time?

> When
> you follow a thread, you generally know already the discussion and you
> don't need to read all the text again.


You're making an assumption here. What if there are no replies to a thread
for a few days? What if someone is away and doesn't read the group for a
few days? What about groups that get hundreds of posts a day? Are you
expecting people to remember everything about all the threads they read for
several days?

> The text below my post is for
> reference only.


But you quoted everything that Sybren said plus everything he quoted from
previous posts making your post 81 lines long. You could've cut your post
down to 20 - 25 lines by snipping and replying below the points you're
commenting on.

If everyone posted the way you do posts could easily reach several hundred
lines each on long threads. That's several hundred lines wasting disk space
on the network of NNTP servers, people's HDD if they're storing posts local
and bandwidth when we all download the body and NNTP servers peer their
posts.

> Concerning in line-posting, my own feeling is that it is painful to read
> and may be seen as impolite.


How is this post painful to read? You can see exactly which points you've
raised that I'm replying to because I'm replying directly below them.
Someone joining this thread at this post can see why I'm saying what I'm
saying because the relevant parts of your post are included for context
(remember that there's no guarantee that all posts will end up on all NNTP
servers or will turn up in the order that they're posted). If I posted your
way they'd be scrolling up and down to try to make sense of it.

> You must understand that Internet is a place of freedom,


To a point. In most Linux groups it's the convention to post below the lines
you're replying to for context and snip the rest.

> and as long as
> someone does not offend the others, he is perfectly free to follow his
> own way,


Offend could be a bit strong in this case but some of us feel that you're
being impolite to the very people who're trying to help you.

> whatever the so-called 'netiquette' is. I don't know who
> decided what Netiquette is. Self-appointed ?


Usenet, like society, works on a set of rules. If I have a house rule that
people should take their shoes off when they enter my house I'll consider
it rude if you keep your shoes on. Linux Usenet groups are a bit like that.
I consider your posting style to be rude.

> Self-appointed ?


Look up RFC 1855 (I think that's the right one).

> I hardly accept conservatism here.
> I kindly think that you should keep this kind of remark for yourself.
> Freedom means some degree of anarchy, by definition.


You're quite right of course. You're free to post any way you like just like
I'm free to read and respond to your posts or ignore them if I want.

This conversation comes up again and again on Usenet but no one's ever given
a good reason for top posting over inline posting IME.

Apologise to all members of this group who have seen all this before and are
bored with it.

--
Andy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 08:22 AM
Albert
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

What ? Apologise to the newsgroup ?
Do you want to send me to the Gulag directly, comrade, or do you give me
a last opportunity to make a kneeling public apology ?
You are the one with the aggressive and intolerant behaviour.

You quote RFC 1855 (http://www.dtcc.edu/cs/rfc1855.html).

1- It says : "This memo does not specify an Internet standard of any kind".

This means it is an indicative set of informations / advices that you
may or not follow. Up to each person.

2- RFC 1855 does not mean it was created in 1855, but almost.

It is 10 years old, which means eons for internet, and was created at a
time when people had an average connection speed of 14,4Kb/s.
Naturally, in the old times it was better to manage the data very carefully.

3- If you are still using a 14.4k modem, please give me your address, I
will send to you free a 56K modem, but you need to apologise to me first.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 08:22 AM
Andy Fraser
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

In alt.os.linux.gentoo, Albert uttered these immortal words:

> What ? Apologise to the newsgroup ?


I was apologising to the NG for bring up this tired argument again.

> Do you want to send me to the Gulag directly, comrade, or do you give me
> a last opportunity to make a kneeling public apology ?


If that's your attitude then you're not worth talking to.

> You are the one with the aggressive and intolerant behaviour.


You're the one who talks about your freedom to post what you want, how you
want. Don't get uptight when someone disagrees with you. IMHO nothing I
posted was aggressive or intolerant. If that's the way you read it then
that's your problem.

--
Andy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 08:22 AM
Sybren Stuvel
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

Albert enlightened us with:
> After a little bit more than one year with Linux, I still learn
> everyday, that's good.


Good.

> Concerning my way of posting, it is my choice to post on top,
> because I don't think it is a good idea to read through tons of
> replies to find the answer at the bottom.


You didn't really read what I wrote, did you? Let me quote one piece
again:

>> The best response type is "in-line" posting, that is, remove all
>> the quoted text that does not apply to your response, adding your
>> comments in context underneath as you go.


So there is no need to scroll all the way to the bottom to read
someone's reply. I agree with you that *that* is irritating.

> Instead, I think it is a loss of time. When you follow a thread, you
> generally know already the discussion and you don't need to read all
> the text again.


Which was entirely my point.

> The text below my post is for reference only.


But why keep it there in it's entirity if people can read my original
post?

> Concerning in line-posting, my own feeling is that it is painful to
> read and may be seen as impolite.


It's not.

> You must understand that Internet is a place of freedom, and as long
> as someone does not offend the others, he is perfectly free to
> follow his own way, whatever the so-called 'netiquette' is. I don't
> know who decided what Netiquette is. Self-appointed ?


Nope, officially documented.

> I hardly accept conservatism here.


Conservatism? You mean top posting is "the new cool thing" and inline
posting and snipping unneeded text is "old and conservative"?

> I kindly think that you should keep this kind of remark for
> yourself. Freedom means some degree of anarchy, by definition.


So in this freedom of yours I need to keep certain remarks to myself?
Your idea of freedom sure is impolite.


Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 08:22 AM
Sybren Stuvel
 
Posts: n/a
Default Re: External USB hard drive and cameras with Gentoo

Albert enlightened us with:
> 2- RFC 1855 does not mean it was created in 1855, but almost.
>
> It is 10 years old, which means eons for internet


Internet is 40 years old. 25% hardly counts as eons.

> and was created at a time when people had an average connection
> speed of 14,4Kb/s. Naturally, in the old times it was better to
> manage the data very carefully.


It still is. If every post in a thread copies the entire thread, every
post is going to more than double the bandwidth. You do the math.

You barge in here asking for help, and we gladly help you out, but
when someone asks you to behave yourself a little you start making a
big deal out of it. You should show your gratitude a little bit more.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450