Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
hello everyone, I joined this forum because I'm very new to linux and learing from a book i bought at the library. I do it like that because i like ...
  1. #1
    RJ.
    RJ. is offline
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11

    linux wo(uld)nt mount disk in virtual pc

    hello everyone,


    I joined this forum because I'm very new to linux and learing from a book i bought at the library.
    I do it like that because i like my data to be as structured as possible.

    Im using CentOS at the moment, but any linux will do.

    All was going well for a while untill I got into trouble when I got to a chapte about mounting media.
    the book says it should be done like this.

    mount /what /where

    For 2 days it didnt work , BUT now all of a sudden it does.
    I have no idea what I was doing wrong :S.

    I've already told my computer I hate him, any other suggestions?

    I think i was working with the wrong device,

    Anyway, its nice to be here, and I hope to learn a lot.

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    Quote Originally Posted by RJ.
    I've already told my computer I hate him
    Well that's a good start but without more information I don't think we can suggest anything.

    If you post the output of
    Code:
    fdisk -l
    that's a small L after the dash and you may need to run it as root. That will give us a list of hard disks. If you can also post the mount command you use(d) we can have a look for you.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    RJ.
    RJ. is offline
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Quote Originally Posted by elija View Post
    If you post the output of
    Code:
    fdisk -l
    that's a small L after the dash and you may need to run it as root. That will give us a list of hard disks.
    Thank you, that command makes everything much clearer.
    The book does mention fdisk, only a few chapters further.
    It just assumes the first mount will succeed.

    but I dont know how to coppy the text from my virtual machine.

    Quote Originally Posted by elija View Post
    If you can also post the mount command you use(d) we can have a look for you.

    that would be Mount /dev/sdb1 /mnt for my usb stick (works)
    and Mount /dev/sda1 /media for a new virtual hard disk (doesn"t work)

    gives: unable to find HFS+ superblock, need to enter filesystem (or something like that , its in dutch for me)

    I tryed entering many different ones , dut it doesnt seem to work.

  4. #4
    Just Joined!
    Join Date
    Jul 2011
    Posts
    7
    but I dont know how to coppy the text from my virtual machine.
    If you have an X server running the the VM, (if you have a mouse cursur) then highlight and right click should work. Or....

    Code:
     cd ~
    sudo fdisk -l > fdisk.log
    That will create a file with the output. Just open that file, and copy paste like usual.


    gives: unable to find HFS+ superblock, need to enter filesystem (or something like that , its in dutch for me)
    Odd that it thinks the file system is HFS+, but you can play its game.

    Depending on the Distro, you can try

    Code:
    sudo modprobe hfsplus
    sudo modprobe hfs
    sudo fdisk -l
    to make sure it didnt change the location.

    You may want to make its own directory to mount in:
    Code:
    sudo mkdir /media/hd
    And try mounting it again.
    Code:
    sudo mount /dev/sda1 /media/hd

  5. #5
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    If sda1 is your primary hard disk (the one you put / on when you installed) it will already be mounted when you boot. You can see what file systems are mounted at boot time by looking in the fstab
    Code:
    cat /etc/fstab
    and you can change what files are mounted by editing this file. To see what file systems are actually mounted just run
    Code:
    mount
    .

    Is the new virtual hard disk a second vdi file, assuming virtual box or whatever extension is used by your VM because you'll probably have to add it to the VM using the manager before you boot to have access to it.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  6. #6
    RJ.
    RJ. is offline
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    thanks for your answers.

    If sda1 is your primary hard disk (the one you put / on when you installed) it will already be mounted when you boot
    it isn't.

    I already tryed fstab and it gives me the same "cant find superblock" error message.
    I also used the mount command, and my new disk isnt in the list.

    Code:
    sudo modprobe hfsplus
    sudo modprobe hfs
    sudo fdisk -l
    I'm not sure what this is supposed to do but when I type "sudo modprobe hfsplus" or "sudo modprobe hfs" nothing happens.

    I did find something on the web.

    Code:
    mkfs -t ext3 /dev/sdb1
    this worked on whole disks, but not on partitions.
    When I use it on partitions it starts to complain about the HFS+ superblock again.

  7. #7
    Just Joined!
    Join Date
    Jul 2011
    Posts
    7
    I'm not sure what [modprobe hfsplus] is supposed to do but when I type "sudo modprobe hfsplus" or "sudo modprobe hfs" nothing happens.
    The modprobe command inject modules into the kernel to be able to run certain things without restarting. modprobe hfsplus would basically load any drivers the system had related to HFS+ to enable HFS/HFS+ support.

    After thinking about it, I have no idea why it would say there is a problem with HFS superblock. There shouldn't be a HFS file system there at all. (its the apple FS)

    Post the exact output of
    Code:
    fdisk -l
    I think that would help all of us right now.

  8. #8
    RJ.
    RJ. is offline
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    Quote Originally Posted by CMXIV View Post
    Post the exact output of Code:fdisk -l. I think that would help all of us right now.
    Okay, but how do I copy-paste from my vmware machine to my real pc?

    like I said, I'm toatly new to linux. I have no idea how it works in VMWare as well. should I install geust additions?

  9. #9
    Just Joined!
    Join Date
    Jul 2011
    Posts
    7
    Copying should be the same.. It should move it over. If not, open a browser in the VM? Create a text file? Memorize it? lol

  10. #10
    RJ.
    RJ. is offline
    Just Joined!
    Join Date
    Jan 2012
    Posts
    11
    okay i got it.

    Code:
    Schijf /dev/sda: 21.5 GB, 21474836480 bytes
    255 koppen, 63 sectoren/spoor, 2610 cilinders
    Eenheid = cilinders van 16065 * 512 = 8225280 bytes
    
    Sector size (logical/physical):
     512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Schijf-ID: 0x0001549f
    
     
    
    Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
    
    /dev/sda1   *         1              64      512000       83    Linux       Partitie 1 eindigt niet op een cilindergrens.
    /dev/sda2             64           2611    20458496     8e    Linux LVM
    
    Schijf 
    
    /dev/sdb: 1073 MB, 1073741824 bytes
    255 koppen, 63 sectoren/spoor, 130 cilinders
    
    Eenheid = cilinders van 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Schijf-ID: 0x3747f1ff
    
    
    
    Apparaat Opstart   Begin       Einde     Blokken   ID  
    
    Systeem
    /dev/sdb1               1         130     1044193+   5  Uitgebreid
    /dev/sdb5               1         130     1044162   83  Linux
    
    Schijf 
    
    /dev/mapper/vg_test-lv_root: 18.8 GB, 18832424960 bytes
    255 koppen, 63 sectoren/spoor, 2289 cilinders
    Eenheid = cilinders van 16065 * 512 = 8225280 bytes
    
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Schijf-ID: 0x00000000
    
    
    Schijf 
    /dev/mapper/vg_test-lv_swap: 2113 MB, 2113929216 bytes
    255 koppen, 63 sectoren/spoor, 257 cilinders
    Eenheid = cilinders van 16065 * 512 = 8225280 bytes
    
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Schijf-ID: 0x00000000
    
    
    Schijf 
    
    /dev/sdc: 4008 MB, 4008706048 bytes
    118 koppen, 54 sectoren/spoor, 1228 cilinders
    Eenheid = cilinders van 6372 * 512 = 3262464 bytes
    
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Schijf-ID: 0xc3072e18
    
    
    
    Apparaat Opstart   Begin       Einde    Blokken   ID  Systeem
    
    /dev/sdc1  *          2        1229     3910720    b  W95 FAT32
    sdc1 is my usb that used to transport the file out of my vm.
    sdb5 is a partition of another virtual disk. I cant mount it because it gives:
    unknown filesystem sort 'LVM2_member'.
    and if I mount sdb1 it tells me i have to specify a filesystem.

    any ideas?
    Last edited by RJ.; 01-26-2012 at 07:55 PM.

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
  •  
...