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 ...
- 01-23-2012 #1Just 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.
- 01-23-2012 #2Well that's a good start
Originally Posted by RJ.
but without more information I don't think we can suggest anything.
If you post the output ofthat'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.Code:fdisk -l
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.
- 01-24-2012 #3Just Joined!
- Join Date
- Jan 2012
- Posts
- 11
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.
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.
- 01-24-2012 #4Just Joined!
- Join Date
- Jul 2011
- Posts
- 7
If you have an X server running the the VM, (if you have a mouse cursur) then highlight and right click should work. Or....but I dont know how to coppy the text from my virtual machine.
That will create a file with the output. Just open that file, and copy paste like usual.Code:cd ~ sudo fdisk -l > fdisk.log
Odd that it thinks the file system is HFS+, but you can play its game.gives: unable to find HFS+ superblock, need to enter filesystem (or something like that , its in dutch for me)
Depending on the Distro, you can try
to make sure it didnt change the location.Code:sudo modprobe hfsplus sudo modprobe hfs sudo fdisk -l
You may want to make its own directory to mount in:
And try mounting it again.Code:sudo mkdir /media/hd
Code:sudo mount /dev/sda1 /media/hd
- 01-25-2012 #5
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
and you can change what files are mounted by editing this file. To see what file systems are actually mounted just runCode:cat /etc/fstab
.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.
- 01-25-2012 #6Just Joined!
- Join Date
- Jan 2012
- Posts
- 11
thanks for your answers.
it isn't.If sda1 is your primary hard disk (the one you put / on when you installed) it will already be mounted when you boot
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.
I'm not sure what this is supposed to do but when I type "sudo modprobe hfsplus" or "sudo modprobe hfs" nothing happens.Code:sudo modprobe hfsplus sudo modprobe hfs sudo fdisk -l
I did find something on the web.
this worked on whole disks, but not on partitions.Code:mkfs -t ext3 /dev/sdb1
When I use it on partitions it starts to complain about the HFS+ superblock again.
- 01-25-2012 #7Just Joined!
- Join Date
- Jul 2011
- Posts
- 7
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.I'm not sure what [modprobe hfsplus] is supposed to do but when I type "sudo modprobe hfsplus" or "sudo modprobe hfs" nothing happens.
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
I think that would help all of us right now.Code:fdisk -l
- 01-25-2012 #8Just Joined!
- Join Date
- Jan 2012
- Posts
- 11
- 01-26-2012 #9Just 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
- 01-26-2012 #10Just Joined!
- Join Date
- Jan 2012
- Posts
- 11
okay i got it.
sdc1 is my usb that used to transport the file out of my vm.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
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.



