Results 1 to 6 of 6
hi,
i am using Ubuntu 11.04 within windows 7 as a virtual environment using vmWare.
I have following questions
1) if i want to know about the primary hard disc, ...
- 06-19-2011 #1Just Joined!
- Join Date
- Jun 2011
- Location
- dallas ,texas
- Posts
- 18
mounting usb hard disc
hi,
i am using Ubuntu 11.04 within windows 7 as a virtual environment using vmWare.
I have following questions
1) if i want to know about the primary hard disc, i can use
and i can see the properties under /dev/sda.Code:$ ls -l /dev
For the virtual environment, is the hard disc actually mounted? the reason i ask is that i wanted to mount external hard disc without using predefined Ubuntu GUI utility. I issued the following commands
assuming that /dev/sdb refers to external HDD. but it gives errorCode:$ sudo mkdir /mnt/my_HDD $ sudo mount /dev/sdb /mnt/my_HDD
2)If I cannot do this if this is virtual environment, it should not be possible with Ubuntu GUI utility too. however, as soon as i select Virtual machine->removable devices>seagate>connectCode:special device /dev/sdb does not exist.
it is mounted and i can see the details in /media.
if it is mounted, how do i find the device specs for this in /dev?
- 06-19-2011 #2
You are trying to mount Hard disk instead of its partitions. You have to specify partition number along with device name assigned to Hard disk. If your hard disk has more than one partition, how would mount utility will know which partition it should mount.
Check the output of fdisk -l command and mount partitions.
Code:sudo mount /dev/sdb1 /mnt/my_HDD
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-19-2011 #3Just Joined!
- Join Date
- Jun 2011
- Location
- dallas ,texas
- Posts
- 18
Hi, thanks. i tried that but it still gives same error. the reason is, sdb or sdb1 do not show up in /dev
when I disable ubuntu mounting the hard disc automatically.
when it does so, then, sdb and sdb1 are visible. but in such case,
ubuntu has already mounted the drive, so, remounting to a different location than /media gives error.
so, basically, how do i get the sdb or sdb1 entry for the external Hdd in /dev w/o GUI mount?
- 06-19-2011 #4
First of all, post the output of sudo fdisk -l and df -h commands here.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 06-19-2011 #5Just Joined!
- Join Date
- Jun 2011
- Location
- dallas ,texas
- Posts
- 18
hi,
will reply asap as do not hv acess to my machine.
thanks
- 06-22-2011 #6Just Joined!
- Join Date
- Jun 2011
- Location
- dallas ,texas
- Posts
- 18
hi devils,
following is the result of the commands.
as you can see, there is no external HDD or its partition, as right now, it is connected to host(Windows), and if i connect it to Ubuntu, then, it automatically connects it rather than through the bash command.Code:sxm078100@ubuntu:/mnt$ sxm078100@ubuntu:/mnt$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 6.0G 12G 34% / none 239M 624K 238M 1% /dev none 247M 260K 246M 1% /dev/shm none 247M 92K 246M 1% /var/run none 247M 0 247M 0% /var/lock sxm078100@ubuntu:/mnt$ sudo fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000afcfe Device Boot Start End Blocks Id System /dev/sda1 * 1 2497 20051968 83 Linux /dev/sda2 2497 2611 916481 5 Extended /dev/sda5 2497 2611 916480 82 Linux swap / Solaris
sid


Reply With Quote