Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
Now working on a second computer which already has Ubuntu 6.06 installed. Have partitioned and formatted a second (larger) hard drive with partitions: Device Boot Start End Blocks Id System ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215

    Second hard drive issue

    Now working on a second computer which already has Ubuntu 6.06 installed. Have partitioned and formatted a second (larger) hard drive with partitions:

    Device Boot Start End Blocks Id System
    /dev/hdb1 1 1217 9775521 83 Linux
    /dev/hdb2 1218 1340 987997+ 82 Linux swap / Solaris
    /dev/hdb3 1341 18362 136729215 83 Linux
    /dev/hdb4 18363 19929 12586927+ 83 Linux
    1 is boot, 3 is for /home, and 4 will be changed to fat32. 6.06 is installed

    and have booted the original drive which has the following partition structure:

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 3570 28675993+ 7 HPFS/NTFS
    /dev/hda2 3571 4711 9165082+ 83 Linux
    /dev/hda3 4712 4998 2305327+ 82 Linux swap / Solaris
    The NTFS partition is corrupted, so this drive needs repartitioning and reinstalling.

    After the reboot, I first tried to use the File Browser with the idea that I would simply copy the home directory from hda2 to hdb3, repart/reinstall hda with a structure more like hdb, copy /home back to the hda /home partition. However when I click on any partition, the Browser gives the message

    Unable to mount the selected volume
    with details as:

    error: device /dev/hda[2-3] (or hdb[1-4])* is not removable
    error: could not execute pmount
    *(the "hda[2-3] (or hdb[1-4])" is my way of indicating that this is true for both drives and all linux partitions, although it will show the filesystem and home directories in hda2)

    This newbie has suddenly jumped in over his head. I imagine that I need to figure out how to mount the hdb drive, but why is it giving the same message for hda?

    Or am I not seeing a larger problem? Any guidance will be appreciated.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    did you try mounting partitions manually?







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215
    Am going to work on that this morning, but can't understand the error message with respect to hda2 since I can browse and open files. Could the unmounted second drive be "contaminating" the browser somehow?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by Odyssey
    Am going to work on that this morning, but can't understand the error message with respect to hda2 since I can browse and open files. Could the unmounted second drive be "contaminating" the browser somehow?
    this is because pmount is being used by the system instead of mount. pmount is used because it can be executed by normal users. however pmount is designed for removable media and only if the user has the permission to mount removable devices.
    non-removable devices can also be mounted if they are listed in the pmount.allow file. so edit the file and add the device name in the file.
    Code:
    sudo gedit /etc/pmount.allow
    add this
    Code:
    /dev/hdb2
    try to mount the partition using the browser again.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215
    Thanks and several questions:

    Tried the new code, but no change. (hdb2 is the swap part. on the second drive-did you mean hda2?)

    gedit window popped up and I made the change without noticing then the additional info that came up in the terminal window under the above command. It is:

    "ALSA lib confmisc.c:672snd_func_card_driver) cannot find card '0'
    ALSA lib conf.c:3493_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:392snd_func_concat) error evaluating strings
    ALSA lib conf.c:3493_snd_config_evaluate) function snd_func_concat returned error: No such device
    (there are four more lines which will be posted immediately following)
    Does this help clarify what is going on (or wrong in this case)? (please see next post before replying)

  6. #6
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215
    Here are the additional four lines:

    ALSA lib confmisc.c:1072snd_func_refer) error evaluating name
    ALSA lib conf.c:3493_snd_config_evaluate) function snd_func_refer returned error: No such device
    ALSA lib conf.c:3962snd_config_expand) Evaluate error: No such device
    ALSA lib pcm.c:2102snd_pcm_open_noupdate) Unknown PCM default"
    Forum restrictions apparently restrict the number of this type of quotes that can be made, so I broke into two posts.

    Thanks.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    "ALSA lib confmisc.c:672snd_func_card_driver) cannot find card '0'
    ALSA lib conf.c:3493_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:392snd_func_concat) error evaluating strings
    ALSA lib conf.c:3493_snd_config_evaluate) function snd_func_concat returned error: No such device
    (there are four more lines which will be posted immediately following)
    problem is in ALSA, sound card module. did you get those errors on executing 'gedit' command? those errors has nothing to do with partition mounting or gedit.
    i mistakenly wrote 'hdb2'.
    in /etc/pmount.allow file, add an entry of partition that you are not able to mount through browser.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215
    Changed the code to

    Code:
    /dev/hda2
    and saved the change, but still unable to mount. Is it necessary to reboot after file changes such as this?

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    No ! you dont need to reboot.
    did you try to mount /dev/hda2 manually? create mount point and mount that partition manually.
    Code:
    sudo mkdir /media/hda2
    mount -t ext3 /dev/hda2  /media/hda2
    check /media/hda2 folder. if mount command mounts this partition, then we have to find some other way to enable pmount.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    215
    DC,

    Bit embarassing, but have just realized that the 29GB is the corrupted Windows part. not the linux root.

    Anyway that was more curiosity rather than need, so now trying to mount the second drive. Had made a mount point at /mnt/drive2, then:

    Code:
    mount /dev/hdb /mnt/drive2
    but got an error message:

    mount: /dev/hdb already mounted or /mnt/drive2 busy
    been googling up a storm, but can't figure out what is going on. Or is what you thought might result when you mention:

    If mount command mounts this partition, then we have to find some other way to enable pmount.
    ie, is this the desired result? If not why will it not mount? Thanks.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...