No partition detect at Ubuntu

Asked by adi hartono

Need Help, (now i run Ubuntu as my main platform).

I installed Ubuntu 8.04 Desktop Edition LTS from Windows Vista on drive D partition same hard disk .After installation finished i found two bootable platform Windows Vista and Ubuntu.
I enter the Ubuntu platform, and i check at Places---Computer. I found drive C partition still there, but where is my drive d partition ?
I wanna access my drive d partition too,all data was in there.

How can i access to my drive d partition ? Any solution ?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Is this D: partition existent if you boot from Windows...?

Thank you

Revision history for this message
adi hartono (rodnick-2008) said :
#2

Yes, While i boot from Windows my drive d is ok, it exist. But while i boot from Ubuntu my drive d missing or not mounted.

Any solution bro, to mount this drive automaticly ? So anytime i click at Places can find all my drive partition.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

You need to add a row under your /etc/fstab file.

Please open a Terminal from the menu Applications->Accessories->Terminal and copy and paste here the result of:

sudo fdisk -l

The param "-l" is the lower of -L

give your user password when requested, you don't see nothing when you type it, then press enter.

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4
Revision history for this message
adi hartono (rodnick-2008) said :
#5

Thanks marcobra, i followed the instruction.
I type at the terminal like this :

adi@adi-desktop:~$ sudo fdisk -l
[sudo] password for adi:

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9376a6ff

   Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 27 Unknown
/dev/sda2 * 1275 20111 151303168 7 HPFS/NTFS
/dev/sda3 20111 38149 144888828 7 HPFS/NTFS
/dev/sda4 38149 38914 6144000 f W95 Ext'd (LBA)
/dev/sda5 38149 38914 6142976 7 HPFS/NTFS
adi@adi-desktop:~$

After that I click Places,open Computer, but there still no detect my drive d partition.

Is anything wrong with it ? I still can't find my drive d partition.

Revision history for this message
Nicola S. (strambinico) said :
#6

Hi, you need to tell the system to mount your partition D, I think it's better to make it mount automatically at boot time, if it doesn't see it, so you don't have to do the mount procedure every time you turn up Ubuntu:
you can find the guide at https://help.ubuntu.com/community/AutomaticallyMountPartitions

anyway, I'll report here the important points so you can better understand:

1) GET PARTITION NAME:
To read the layout of the physical disks in the system, the 'fdisk' command is used. fdisk will be used with only non-destructive options. Specifically, it will be used with 'l' (lower-case 'L', not '1'), which lists the partition table of the specified disk. (As I see your drives are NTFS, this is the command:)

"sudo fdisk -l | grep NTFS" , anyway also the simple "sudo fdisk -l" was ok

fdisk will print the partition tables of your disks. The output from this command will look something like what you wrote above:

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9376a6ff

   Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 27 Unknown
/dev/sda2 * 1275 20111 151303168 7 HPFS/NTFS
/dev/sda3 20111 38149 144888828 7 HPFS/NTFS
/dev/sda4 38149 38914 6144000 f W95 Ext'd (LBA)
/dev/sda5 38149 38914 6142976 7 HPFS/NTFS

If the system has multiple hard disk drives, multiple lists will be displayed.

ONE OF THESE DEVs IS YOUR D PARTITION, IF YOU DON'T KNOW WHICH ONE IT IS, YOU CAN TURN ON GPARTED AND SEE ALL INFORMATIONS ABOUT YOUR PARTITIONS, EVEN IF THEY ARE NOT SEEN BY THE SYSTEM. WRITE DOWN THE NAME e.g. /dev/sda3

2) CREATE MOUNT POINT

THEN YOU NEED TO CREATE A FOLDER, OR TWO FOLDERS IF YOU WANT TO AUTOMATICALLY MOUNT ALSO C, ANYWAY ONE FOLDER FOR EACH PARTITION. THAT'LL BE THE MOUNT POINT.
THEY USUALLY GO IN /media, SO ASSUMING YOU CALL THEM 'WIN' AND 'DATA', YOU'LL NEED TO TYPE IN TERMINAL:

'sudo mkdir /media/win' & 'sudo mkdir /media/data'

3) MODIFY /etc/fstab

THEN YOU NEED TO EDIT YOUR fstab FILE TO ADD INFORMATIONS ABOUT AUTOMOUNT, SO OPEN IT WITH:

sudo gedit /etc/fstab

THEN ADD A LINE FOR EACH PARTITION YOU WANT TO MOUNT AT BOOT EXACTLY LIKE THIS:

/dev/PARTITION_NAME /media/MOUNT_POINT ntfs umask=0222 0 0

fOR EXAMPLE:

/dev/sda3 /media/data ntfs umask=0222 0 0

ATTENTION! IF YOU HAVE A FAT32 PARTITION IT'LL BE:

/dev/PARTITION_NAME /media/MOUNT_POINT vfat iocharset=utf8,umask=000 0 0

4) APPLYING CHANGES

To apply these changes open a terminal and typr the following command:

sudo mount -a

If nothing happens and you didi everything right, maybe is because the partition is already mounted somehow, so type:

sudo umount -a
sudo mount -a

THEN YOUR PARTITION SHOULD BE MOUNTED, AND THEN IT'LL ALSO BE MOUNTED EACH TIME YOU BOOT WITH UBUNTU

hope you solve it, cheers!

Revision history for this message
adi hartono (rodnick-2008) said :
#7

Nicola, thanks for the reply.

But i still couldn't mount my hard drive partition d

I followed as you instruction, and at the last i type :

sudo mount -a

nothing happen

then i type : sudo umount -a
its appear this message:
adi@adi-desktop:~$ sudo umount -a
umount: /dev/shm: device is busy
umount: /dev: device is busy
umount: /var/run: device is busy
umount: /: device is busy
adi@adi-desktop:~$

then i open places, computer. And still no partition of the NTFS mounted.

Need help thanks

Revision history for this message
Nicola S. (strambinico) said :
#8

Did you wait some time after mount coomand to see if it's mounted?
Anyway, if the partition won't unmount, maybe you have a file relating to that partition still open, or a read/write cycle is still ongoing. if you are sure this is not the case, you could to try to force umount by apending -f after the mount command, though bear in mind you may lose data if the partition is still being used.
___However, did you try to restart your pc to see if, starting up, your D is mounted automatically?___

Revision history for this message
adi hartono (rodnick-2008) said :
#9

Thanks Nicola for the answer,

But let me inform again, i installed Ubuntu 8.04 Desktop Edition from Ubuntu CD Desktop Edition 64Bit LTS at Windows Vista platform.

While Ubuntu setup try to confirm me where i need to relocate the space for Ubuntu (i choose drive d:)

Thats why i don't have the Linux partition appear ? Coz my partition info as below :

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9376a6ff

   Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 27 Unknown
/dev/sda2 * 1275 20111 151303168 7 HPFS/NTFS
/dev/sda3 20111 38149 144888828 7 HPFS/NTFS
/dev/sda4 38149 38914 6144000 f W95 Ext'd (LBA)
/dev/sda5 38149 38914 6142976 7 HPFS/NTF

Where is my Ubuntu position ? is it at dev/sda2 ?

If i try to force with -f parameter, my Ubuntu will lost ? or my data will lost too ?

Thanks for reply

Revision history for this message
Nicola S. (strambinico) said :
#10

if you use the -f parameter, you'll loose something only if it is an open file that you didn't save, but you won't loose any existing data.

anyway, I got a little confused myself, please can you tell me if my guess is right:
you have windows on C drive, and you had your data on D drive, then you installed ubuntu on D and resized it, is this correct? or did you have more partitions before installing ubuntu?
what do you mean you don't have the Linux partition appear?
anyway it could help if you took a look into the partition editor in system > administration. you don't need to chenge anything, you'll just see more detailed informations about partitions. try it and tell me if it was useful.

Revision history for this message
adi hartono (rodnick-2008) said :
#11

:) Thanks Nicola, you rite !

I have windows on C and data on D drive, and installed Ubuntu on
D and resized. Installed successfull and have dual boot.
When i check at terminal and type: sudo fdisk - l , i found this dialog :

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9376a6ff

   Device Boot Start End Blocks Id System
/dev/sda1 1 1274 10233373+ 27 Unknown
/dev/sda2 * 1275 20111 151303168 7 HPFS/NTFS
/dev/sda3 20111 38149 144888828 7 HPFS/NTFS
/dev/sda4 38149 38914 6144000 f W95 Ext'd (LBA)
/dev/sda5 38149 38914 6142976 7 HPFS/NTF

So, where is my Linux partition ? All i see only NTFS.

And there is no partition editor on my Ubuntu 8.04, is there a way to install this partition editor ? Or we need to use package installer ?

Need Help , thanks bro .

Revision history for this message
Nicola S. (strambinico) said :
#12

Try typing from terminal: sudo gparted
it asks for password, then it should open the partition manager, if it is installed somewhere on your ubuntu. If not you can install it using package installer: search for gparted and install. then it should be available in system > administration.

anyway as you can use your Ubuntu, the ubuntu partition is not your problem, but the other part of your D partition that you resized. So this part, in which you have all the data is still a NTFS partition, but I cannot guess which one it could be. Clearly /dev/sda2 is your C partition with Windows, so D could be /dev/sda3 or also /dev/sda5.

I think linux partition could be /dev/sda4.
One more question: when you did the procedure to automatically mount partitions, which ones did you try to mount?

anyway i'd try to get gparted and gather more informations, and then see what can be done:)

Revision history for this message
adi hartono (rodnick-2008) said :
#13

Thanks Nico, my Gparted installed. While i run the service it appears 5 sda.

/dev/sda1 File system NTFS
status : Not mounted with warning : unable to read the contents of this file system because of this some operations maybe unavailable.

/dev/sda2 File system NTFS
status : Not mounted with warning : unable to read the contents of this file system because of this some operations maybe unavailable.

/dev/sda3 File system NTFS
mounted
mount point : boot , host

/dev/sda4 Files system Extended
status : Busy (at least one logical partition mounted)

/dev/sda5 File system NTFS
mounted

:) My question

1. Where is my linux and d: partition ?

2. How can i mount to d: partition ?

3. How can make that partition mount automaticaly ?

Thanks, bro

Revision history for this message
Nicola S. (strambinico) said :
#14

So...your linux partition is most likely /dev/sda4 'cause it's an ext partition.
To detect your D partition you could see in windows the size of each partition (C, D) and compare it with the sizes you find in gparted for each partition...then if with this you managet to know which one id D you can try the procedure I wrote above, which you tried before, to automount.
Anyway, if it says "unable to read the contents of this file system", I'd also try, from windows, to run defragmentation and ScanDisk for each partition - especially D as it's the one you want to see. with windows tools, or a specific program which I think works better than windows built-in tools, anyway...
let me know;)

Can you help with this problem?

Provide an answer of your own, or ask adi hartono for more information if necessary.

To post a message you must log in.