LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-09-2012, 11:45 AM   #1
1314
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Question drives not detected properly


Hi!
I am a biologist and till now i am using windows. I want to learn Linux so I thought of starting with Bio-Linux 6 (based on ubuntu), as I have been told its easy with bio s/ws pre-installed.

Now I have Windows 7 -32 bit installed on my laptop.

My hard disk partitions are

C:/ - 50 GB (free 23-25 GB)windows installed
D:/ - 50 GB
E:/ - 25 GB
H:/ - 26 GB formatted with no data

Now when I boot bio-linux 6 from USB live and go to computer or Gparted or fdisk -1 (command i got from this site) all of them detects drives as below.

System Reserved (not able to see in windows except in disk management)
C:/ - Free 100MB ONLY ;
D:/ - it is detected correctly;
E:/ - 100 GB

I may have not noticed this if i had not prepared my H:/ drive by formatting to install Bio-Linux

I have an option to transfer data from other visible drive and use it but, as I want to learn, I want to know why this is happening.

Please help me.

Last edited by 1314; 12-09-2012 at 11:48 AM.
 
Old 12-09-2012, 01:13 PM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 285

Rep: Reputation: 70
Could you post the complete output from the fdisk -l command. (that is with lowercase L, not the number one)
 
1 members found this post helpful.
Old 12-09-2012, 01:40 PM   #3
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,666

Rep: Reputation: 730Reputation: 730Reputation: 730Reputation: 730Reputation: 730Reputation: 730Reputation: 730
To clarify, you need to prefix the command above with "sudo" (w/o quotes) if your system is an Ubuntu derivative and it needs to be run from your Linux Live CD.
 
2 members found this post helpful.
Old 12-10-2012, 02:28 AM   #4
1314
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
The output i got from command: sudo fdisk -l is as attached in screenshot:

This is too technical for me to understand.

System has been booted from USB live.

I hope i provided the required info.
Attached Images
File Type: jpg Screenshot.jpg (84.6 KB, 14 views)

Last edited by 1314; 12-10-2012 at 02:34 AM.
 
Old 12-10-2012, 02:29 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,208

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
My hard disk partitions are
C:/ - 50 GB (free 23-25 GB)windows installed
D:/ - 50 GB
E:/ - 25 GB
H:/ - 26 GB formatted with no data
So this is what it is according to Windows 7.

Quote:
Now when I boot bio-linux 6 from USB live and go to computer or Gparted or fdisk -1 (command i got from this site) all of them detects drives as below.
System Reserved (not able to see in windows except in disk management)
C:/ - Free 100MB ONLY ;
D:/ - it is detected correctly;
E:/ - 100 GB
I don't believe that this is according to Gparted or fdisk -l, both of these latter Gnu/linux tools DO NOT SPEAK IN THAT LANGUAGE as C:/, D:/ or E:/, these lingos came from Redmond, so it is a bad report coming from the mouth of M$Windows7 again. Gparted and fdisk have nothing to do with it.


Quote:
I may have not noticed this if i had not prepared my H:/ drive by formatting to install Bio-Linux
H:/ drive for Bio-Linux? Definitely impossible: Bio-linux is Ubuntu based and it doesn't think that a partition is "H:/" whatever.

Download bio-linux image and burn to a dvd --it is easier to troubleshoot from the dvd drive side and many helpers here are ready to think it over for you. Boot from it and while at Livedvd use Gparted to take a look at the geometry or terrain of your hard drive, write down each partition, size and label, and counter check your notes with " ~# fdisk -l " command. Then go back to Gparted again to prepare or format a linux file system for the bio-linux.

You can also use Parted Magic or Rescue disk to prepare the drive before you install. Go to www.distrowatch.com and choose the disk preparation tool you like.

Come back for further helps if needed.

CAUTION: DO NOT FORMAT OR CHANGE ANYTHING YET UNTIL YOU UNDERSTAND WHAT IS GOING ON IN ORDER TO AVOID LOSING YOUR WINDOWS DATA --BACK UP FIRST IMPORTANT DATA/FILE TO AN EXTERNAL DRIVE. While using Gparted LiveCD you will see clearly everything and you shall be ready to post us the necessary information for us to guide you.

Good luck.

Last edited by malekmustaq; 12-10-2012 at 02:33 AM.
 
Old 12-10-2012, 02:46 AM   #6
1314
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
At malekmustaq

Srry for the inconvenience. As I have just start to learn Linux (past 2-3 days) its difficult to directly switch from windows terminology to Linux terminology.

The issue is, the drives as partitioned according to win 7 is not exactly seen with linux.
 
Old 12-10-2012, 03:08 AM   #7
1314
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
The drives or partitions seen according to Gparted is as in attached schreenshot.

Now if i format and resize sda4 partition with Gparted will it affect my win7 working?
Attached Images
File Type: png Screenshot-1.png (62.7 KB, 14 views)

Last edited by 1314; 12-10-2012 at 03:09 AM.
 
Old 12-10-2012, 03:31 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,222

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Unfortunately your Win7 system is structured to use what Microsoft calls "Dynamic Disks" - managed by the Logical Disk Manager (LDM). The Microsoft and Wikipedia sites have articles that describe this in detail.
There was an attempt to support this under Linux, but I'm not sure what happened to it. It's not something I've looked into, nor would I subject a new Linux user to the gory details of converting a partition back to basic mode and shrinking it to create some space for a Linux install.
You might be bes to persist with a liveCD until more comfortable with Linux - and how to manhandle Win7 LDM sometime in the future.

Edit: our posts crossed. Looks like Parted has the LDM dm support. I can't answer what will happen if you mess with the partitions - as I said, I've never tested it, althogh it was on my "to-do" list years ago ...

Last edited by syg00; 12-10-2012 at 03:34 AM.
 
1 members found this post helpful.
Old 12-10-2012, 11:46 AM   #9
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,208

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
The drives or partitions seen according to Gparted is as in attached schreenshot.
Now if i format and resize sda4 partition with Gparted will it affect my win7 working?
No. It will not affect the contents of sda1,2 & 3. At least as far as my experience. But it is always sound to back up everything first before doing any partitioning action.

However, the empty space freed after reduction of sda4 becomes unusable. Since sda4 is currently declared as a stand alone Primary partition you wouldn't be able to create sda5 or another primary next to it; you have need first to declare to Create a Logical partition WITHIN 4th Primary partition. Technically sda4 (4th partition) declares the volume of the Extended partition which shall house the logical partitions; e.g. one disk sliced into 8 partitions consecutively shall default to labels sda1, sda2, sda3, sda5, sda6, sda7, sda8 (number 4 is hidden) but contains partitions 5,6,7,8.

Suggested solution:

1. Data content in sda4 is only 17.15 Gib, you should back this up into an external disk or burned into 4-5 pieces of 4.7Gib DVD, you should take no action against sda4 until this backup concern is well addressed to.

2. After backup is done and confirmed launch Gparted again. Right click sda4 partition choose Create Logical Partition, formatted to Linux Swap, size=1.5Gib (or at your choice -/+ ) click Apply (NOTE: this will now destroy all existing data on sda4, but since you have already backed up fully there is nothing to worry --you may restore the contents at your time.) It should appear as sda5.

3. Repeat No. 2 procedure to the remaining space, formatted to ext4, size = 20 Gib, click Apply, this should be sda6;

4. Repeat same procedure to the rest of space formatted to ext3 or ext4, you will need these to restore your backed up data.

5. Partition sda6 (size 20 Gib) above, should be enough for any distro to install on fully.

BTW, while at Gparted LiveCD get a terminal and back up your MBR into a usb or by mounting your win7 partition and writing a copy of mbr on it; the back up file is only a very small file of 512 Bytes which can be kept even into a floppy if you have:

Code:
~# mkdir /mnt/winspace
~# mount -t vfat /dev/sda3 /mnt/winspace
~# cd /mnt/winspace
Now being there, /dev/sda3 <you have no plans of altering anything on it> , do the MBR back up:
Code:
~# dd if=/dev/sda of=myold.mbr bs=512 count=1
Check if back up is ok:
Code:
~# file myold.mbr 
<should return something like this...>
myold.mbr: x86 boot sector, LInux i386 boot LOader; 
partition 1: ID=0x83, starthead 32, startsector 2048, 
52746240 sectors; partition 2: ID=0x83, starthead 254, 
startsector 52748288, 40960000 sectors; partition 3: 
ID=0x83, starthead 254, startsector 93708288, 40960000
 sectors; partition 4: ID=0x5, starthead 254, 
startsector 134668288, 842104832 sectors, code offset 0x63

~# exit
If need to restore the MBR arises just write it back by going into the folder where 'myold.mbr is located and issue command:

Quote:
~# dd if=myold.mbr of=/dev/sda
If you have further questions feel free to ask.

Hope that helps.

Good luck.

Last edited by malekmustaq; 12-10-2012 at 12:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
few drives are detected but others not detected in fedora 10 deb1bhu Linux - Hardware 5 07-18-2009 10:22 AM
Additional memory not detected properly michaelsr Linux - Hardware 16 06-24-2008 03:59 AM
USB hard drive not detected properly zytsef Linux - Hardware 4 06-03-2007 06:10 PM
Nvidia chipset not detected properly The_paladin Linux - Hardware 2 02-20-2006 02:24 AM
cdrom not detected properly shezwhitey Linux - Laptop and Netbook 2 04-14-2004 11:08 AM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration