Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 06:59 AM
Robert Glueck
 
Posts: n/a
Default New Debian install doesn't recognize/automount all partitions

I recently used the Debianpure CD to install a Debian base system plus
desktop environment. This install doesn't recognize and mount all of my
HD partitions. fstab only lists the new Debian partition, swap, floppy,
CD-ROM and USB thumbdrives, i.e.

<file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb4 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb6 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda /media/usb0 auto rw,user,noauto 0 0
/dev/sdb /media/usb1 auto rw,user,noauto 0 0
/dev/sdc /media/usb2 auto rw,user,noauto 0 0

In addition to these, I have another dozen HD partitions (on two HD
drives) that allow me to multiboot into several other OS's. Xandros
automatically recognizes all of these on boot up and mounts them, and so
does Knoppix, Kanotix, Mepis, Libranet etc. Ubuntu, on the other hand,
behaves like Debianpure, it doesn't recognize them either.

What is the default behavior for Debian and what do I have to do to have
this straight Debian system recognize and automount all of these other
partitions?

Does this failure possibly have to do with the fact that I told the
Debian installer to put the GRUB boot loader on a floppy rather than in
the boot directory of the Debian partition (where I probably should have
put it, as I did with my other Linux OS installs, with the LILO boot
loader of Xandros residing in the MBR of my first HD and managing the
booting of all of the OS's). What would I have to do to rectify this
mistake, i.e. to put the Debian GRUB into the Debian partition, and does
it make any difference?

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 06:59 AM
Sparky
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Robert Glueck wrote:
>...<stuff deleted>...Ubuntu, on the other hand,
> behaves like Debianpure, it doesn't recognize them either.
>
> What is the default behavior for Debian and what do I have to do to have
> this straight Debian system recognize and automount all of these other
> partitions?
>
> Does this failure possibly have to do with the fact that I told the
> Debian installer to put the GRUB boot loader on a floppy rather than in
> the boot directory of the Debian partition ...<stuff deleted>...
>
> Robert


Hi Robert;

I've installed Ubuntu on my P4/ATI desktop and vaio r505 laptop, both
using default settings including that for GRUB. My installations
exhibit the same behavior. In short, we've the same results regardless
of the GRUB install.

regards,
-Sparky

p.s. if you find the answer to the automount, please post here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 06:59 AM
Andreas Janssen
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Hello

Robert Glueck (<rglk@web.de>) wrote:

> What is the default behavior for Debian and what do I have to do to
> have this straight Debian system recognize and automount all of these
> other partitions?


The default behaviour of Debian is to add the partitions to the fstab
that you selected during the installation. If you didn't choose the
other partitions during installation, add them to your fstab yourself.

best regards
Andreas Janssen

--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps-sarge.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 06:59 AM
Robert Glueck
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Andreas Janssen wrote:

> Hello
>
> Robert Glueck (<rglk@web.de>) wrote:
>
>
>>What is the default behavior for Debian and what do I have to do to
>>have this straight Debian system recognize and automount all of these
>>other partitions?

>
>
> The default behaviour of Debian is to add the partitions to the fstab
> that you selected during the installation. If you didn't choose the
> other partitions during installation, add them to your fstab yourself.
>
> best regards
> Andreas Janssen
>


I don't recall that during the install I had a choice of which
partitions I wanted to have recognized and/or automounted on bootup. I
did the install with the Debianpure CD which uses the new Debian installer.

In any case, I have edited /etc/fstab using nano in a root console. The
question arises, however, what syntax to use for specifying the mount
points. Xandros uses /disks/hdb.., Mepis uses /mnt/hdb.., and the
Debian install in question uses /media/..., at least for removable media
(floppy, CD-ROM, USB flashdrives). What should I use for hard disk
partitions?

At this point, I've edited /etc/fstab to look as follows:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb4 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb6 none swap sw 0 0
/dev/hda1 /mnt/C vfat
rw,nosuid,nodev,noexec,nouser,async,umask=0 0 0
/dev/hda2 /mnt/D ntfs
ro,nosuid,nodev,noexec,nouser,async,umask=0,iochar set=iso8859-1 0 0
/dev/hdb1 /mnt/fedora ext3 defaults 0 0
/dev/hdb3 /mnt/xandros2 reiserfs rw 0 0
/dev/hdb5 /mnt/mdkroot ext3 defaults 0 0
/dev/hdb7 /mnt/mdkhome ext3 defaults 0 0
/dev/hdb8 /mnt/mepis ext3 defaults 0 0
/dev/hdb9 /mnt/xandros3 reiserfs rw 0 0
/dev/hdb10 /mnt/slax ext3 defaults 0 0
/dev/hdb11 /mnt/beatrix ext3 defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda /media/usb0 auto rw,user,noauto 0 0
/dev/sdb /media/usb1 auto rw,user,noauto 0 0
/dev/sdc /media/usb2 auto rw,user,noauto 0 0

Is this correct? As a reminder, this is an install of Debian 3.1
testing done via Debianpure.

An additional question: What do I have to do to have Debian automount
these partitions at bootup?

Robert

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 06:59 AM
gregor herrmann
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

On Thu, 23 Jun 2005 15:14:53 -0400, Robert Glueck wrote:

> In any case, I have edited /etc/fstab using nano in a root console. The
> question arises, however, what syntax to use for specifying the mount
> points. Xandros uses /disks/hdb.., Mepis uses /mnt/hdb.., and the
> Debian install in question uses /media/..., at least for removable media
> (floppy, CD-ROM, USB flashdrives). What should I use for hard disk
> partitions?


Whatever you like, just make sure the mountpoints exist.

> An additional question: What do I have to do to have Debian automount
> these partitions at bootup?


As long as you don't have the noauto option in the relevant lines of
/etc/fstab they should get mounted at boot time.

gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 06:59 AM
Robert Glueck
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

gregor herrmann wrote:

> .........
>
>Whatever you like, just make sure the mountpoints exist.
>
> .........


I'm not sure I know how to create mount points. Right now, the /mnt
directory in Debian is empty whereas the /media directory has two kinds
of subdirectories in it, one set that are real directories (e.g.
floppy0, cdrom0, usb0, etc.) and another set (e.g. floppy, cdrom, usb)
that merely point to the appropriate members of the first set. All of
these directories are empty (at least when I'm looking at them from
another Linux OS in another partition, as I do now).

To create these mount points would it suffice for me to boot into Debian
and then open a console as root and enter

# mkdir /mnt/hda1
# mkdir /mnt/hda2
# mkdir /mnt/hdb1

etc. etc.?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 06:59 AM
gregor herrmann
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

On Thu, 23 Jun 2005 17:54:15 -0400, Robert Glueck wrote:

> To create these mount points would it suffice for me to boot into Debian
> and then open a console as root and enter
>
> # mkdir /mnt/hda1
> # mkdir /mnt/hda2
> # mkdir /mnt/hdb1


Yes.

gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 06:59 AM
Eduardo Silva
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Em Thu, 23 Jun 2005 17:54:15 -0400, Robert Glueck escreveu:

> gregor herrmann wrote:
> # mkdir /mnt/hda1
> # mkdir /mnt/hda2
> # mkdir /mnt/hdb1
>
> etc. etc.?


yes, and configure /etc/fstab correctly to use these directories as mount
points for your hardisks.

Eduardo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 06:59 AM
Robert Glueck
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Thanks to everyone who responded to my queries. I followed your advice
and got it to work.

For the benefit of Sparky who desires to do the same with his Ubuntu
install I'll summarize what I did:

1. Create new mount points in the /mnt dir for the partitions that you
want your distro to recognize and mount. I.e. open a console as root
and enter: mkdir /mnt/name_of_partition. I did this for all the
partitions that I wanted Debian to access, i.e.

.....# mkdir /mnt/fedora
.....# mkdir /mnt/xandros2
.....# mkdir /mnt/mepis

etc. etc. as I specified in a posting above.

2. Edit /etc/fstab as root, e.g. open a console, su to root and enter
.....# nano /etc/fstab (if you have the nano editor installed)

Add the lines

/dev/hd.... /mnt/name_of_partition <filesystem type> etc. etc.

to fstab along the lines of what I did and save the new fstab.

3. Shutdown the OS and reboot. On reboot, Debian will now automount
all the partitions added to fstab (except for the ones excluded by
noauto), and you can access them in your file manager, for read at least
if not for write.

The removable media, i.e. floppy, CD-ROM, USB flashdrives etc. are a
little more complicated, and my Debian install didn't make them
available by default (note the noauto parameter for most of them in
fstab). To mount my floppy drive manually, I open a console as root and
enter

mount -t vfat /dev/fd0 /media/floppy

I imagine I can mount the other removable media in an analogous fashion;
I only need to know the filesystem type which for most of them in my
system is vfat.

A remaining question for the more experienced Debian users: Is it
prudent to configure fstab to also automount the removable media at
bootup? That certainly would be convenient and potential problems can't
be great as is apparent by the fact that the Debian variants Knoppix,
Kanotix, Xandros, and Mepis all do automount these at bootup. Why
doesn't straight Debian do this as a default?

What would be your advice?

Robert

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 06:59 AM
Robert Glueck
 
Posts: n/a
Default Re: New Debian install doesn't recognize/automount all partitions

Thanks to everyone who responded to my queries. I followed your advice
and got it to work.

For the benefit of Sparky who desires to do the same with his Ubuntu
install I'll summarize what I did:

1. Create new mount points in the /mnt dir for the partitions that you
want your distro to recognize and mount. I.e. open a console as root
and enter: mkdir /mnt/name_of_partition. I did this for all the
partitions that I wanted Debian to access, i.e.

.....# mkdir /mnt/fedora
.....# mkdir /mnt/xandros2
.....# mkdir /mnt/mepis

etc. etc. as I specified in a posting above.

2. Edit /etc/fstab as root, e.g. open a console, su to root and enter
.....# nano /etc/fstab (if you have the nano editor installed)

Add the lines

/dev/hd.... /mnt/name_of_partition <filesystem type> etc. etc.

to fstab along the lines of what I did and save the new fstab.

3. Shutdown the OS and reboot. On reboot, Debian will now automount
all the partitions added to fstab (except for the ones excluded by
noauto), and you can access them in your file manager, for read at least
if not for write.

The removable media, i.e. floppy, CD-ROM, USB flashdrives etc. are a
little more complicated, and my Debian install didn't make them
available by default (note the noauto parameter for most of them in
fstab). To mount my floppy drive manually, I open a console as root and
enter

mount -t vfat /dev/fd0 /media/floppy

I imagine I can mount the other removable media in an analogous fashion;
I only need to know the filesystem type which for most of them in my
system is vfat.

A remaining question for the more experienced Debian users: Is it
prudent to configure fstab to also automount the removable media at
bootup? That certainly would be convenient and potential problems can't
be great as is apparent by the fact that the Debian variants Knoppix,
Kanotix, Xandros, and Mepis all do automount these at bootup. Why
doesn't straight Debian do this as a default?

What would be your advice?

Robert

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 06:38 PM.


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 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548