PDA

View Full Version : [gnome] [SOLVED] Partitioning Question



Unanimated
July 31st, 2008, 06:07 AM
Okay, here's my (minor) issue.

I had ******* on one drive on my computer (not a partition, it's own physical hard drive) and Ubuntu 8.04 on the other. I decided that I despise ******* and love Ubuntu, but I still needed ******* for my Nintendo Wifi Connector. I installed VirtualBox and got everything working beautifully, even the connector. So, deciding I didn't need a whole drive being taken up by an underused OS, I opened up Partition Manager from the live CD and formatted that drive under a Linux style. Now the drive won't show up in Ubuntu. What do I need to do to make it appear again? This is my second-to-last thing I need to complete before I'm completely finished setting Ubuntu up.

Tsarj
July 31st, 2008, 06:13 AM
Does the partition show up in gparted?

rahmath
July 31st, 2008, 06:18 AM
can u run the following command and post the output here;

$ sudo fdisk -l




this will show the partition tables on your system.

Unanimated
July 31st, 2008, 06:23 AM
Disk /dev/sda: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x190e190d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3579 28748286 83 Linux
/dev/sda2 3580 3738 1277167+ 5 Extended
/dev/sda5 3580 3738 1277136 82 Linux swap / Solaris

Disk /dev/sdb: 20.5 GB, 20547841536 bytes
255 heads, 63 sectors/track, 2498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc070c070

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2497 20057121 82 Linux swap / Solaris

The 30.7 GB one is the one with Ubuntu on it.

rahmath
July 31st, 2008, 06:33 AM
From that output, your second disk is completely treated as SWAP. which will not show up as a filesystem.

So please delete the swap on the second disk, and create a usable file system. Thats all...

Unanimated
July 31st, 2008, 06:36 AM
Define "usable file system.." Like NTFS or FAT32?

rahmath
July 31st, 2008, 06:49 AM
Sorry for the confusion caused.

Please let me know how you want to partition this second disk. Based on that i will tell u?

1. How many partition do u required in this second disk?
2. Whatz the size of each?
3. What is the File System required on those partitions?

Unanimated
July 31st, 2008, 06:56 AM
Sorry for the confusion caused.

Please let me know how you want to partition this second disk. Based on that i will tell u?

1. How many partition do u required in this second disk?
2. Whatz the size of each?
3. What is the File System required on those partitions?
Well, I basically just want this disk as a useless second disk that I can use for extra storage.

rahmath
July 31st, 2008, 07:05 AM
So i guess, u need only one partition. And there is only Linux installed, i again assumes the File system you might required is ext3 (if you would have answered my Q's i could avoid this guessing).

RUN WITH CAUTION.

$ sudo fdisk /dev/sdb

then you will get an fdisk prompt.

from there type "t"

then it will ask the partition number to toggle, so type "1"

then it will ask the Hex code, so type "83"

then save the partition and quit by typing "w"


Then run from the bash prompt
$ sudo partprobe /dev/sdb


then create an ext3 filesystem
$ sudo mkfs.ext3 /dev/sdb1

thats all....

now you can mount it to a location which you need to use.

example;
$ sudo mkdir /mnt/second-disk

$ sudo mount /dev/sdb1 /mnt/second-disk

Thats all...

NOTE: Sorry to define everything in CLI, bcoz i used to CLI and i dont know much in GUI.

Unanimated
July 31st, 2008, 06:43 PM
So i guess, u need only one partition. And there is only Linux installed, i again assumes the File system you might required is ext3 (if you would have answered my Q's i could avoid this guessing).

RUN WITH CAUTION.

$ sudo fdisk /dev/sdb

then you will get an fdisk prompt.

from there type "t"

then it will ask the partition number to toggle, so type "1"

then it will ask the Hex code, so type "83"

then save the partition and quit by typing "w"


Then run from the bash prompt
$ sudo partprobe /dev/sdb


then create an ext3 filesystem
$ sudo mkfs.ext3 /dev/sdb1

thats all....

now you can mount it to a location which you need to use.

example;
$ sudo mkdir /mnt/second-disk

$ sudo mount /dev/sdb1 /mnt/second-disk

Thats all...

NOTE: Sorry to define everything in CLI, bcoz i used to CLI and i dont know much in GUI.
Nothing showed up. Basically nothing happened.

vanadium
July 31st, 2008, 08:46 PM
These were pretty nice instructions to format that drive, though. It is quite unlikely that nothing happened except if your PC was powered of while you were executing the commands.

It is wiser to copy commands and output of such commands. Now, you hardly provide any information, so it is hard to have a clue of what went wrong and to provide further help.

Unanimated
July 31st, 2008, 09:40 PM
Wait, nevermind--I didn't read the part where it said reboot. Now it's available. Thanks.

rahmath
August 1st, 2008, 08:57 AM
Hope now you are able to access the additional disk.

Unanimated
August 10th, 2008, 03:47 AM
I got everything working fine, but when I open "20.5 GB Media," a lost+found folder appears, and at the bottom, it says 17.5 GB available. That shouldn't be true.

rahmath
August 10th, 2008, 06:14 AM
That is TRUE.

lost+found -->Every partition has a lost+found in its upper directory. Files that were saved during failures are here. or we can say, If any files are detached from the filesystem due to a disaster, fsck may try to reattach them there.

then regarding your size --> first of all in a 20GB hdd, u will not be able to use full 20GB. practically it will be near to somewhere around 18 GB. then once you had specified a file system, the filesystem metadata will take another few amount of space based on the type ans size of the filesystem. so finally you will end up in around 17 GB usable space.

Thats it.

If you find this answer useful, pls dont forget to say thanks by clicking "blue colored icon" in the bottom of this post.

Unanimated
August 10th, 2008, 07:15 AM
Ohhh, thanks!

ryanchang
August 11th, 2008, 03:55 AM
This is a loosely related question, but for some reason I can't start a new thread: Anyway, I just got a new HP laptop (dv6000 or something) and came with Vista Home Premium. I didn't want to mess around with partitioning so I just inserted the Hardy live CD and installed it inside of Windows. Here's my problem: I have a 200 GB hard drive, but only 9.0 gb is used for ubuntu. I'd like full, if not more, access to the rest of the hard drive. I've already used up 4.5 on music! Here's my fdisk output:



Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc151cc3f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 28884 232010698+ 7 HPFS/NTFS
/dev/sda2 28885 30401 12185302+ 7 HPFS/NTFS


Thanks!

Unanimated
August 11th, 2008, 04:24 AM
Uhm.. I'm not completely sure about this since I haven't done that for a while, but isn't there a dialog box in the installation that lets you choose the size of the OS?

ryanchang
August 11th, 2008, 04:47 AM
At the time I was under the impression that it meant how much extra room I wanted to give the installation, not how much the partition would be. I think it only went up to 30 too. Is there way I could mount the section of the HD where Vista is installed?

Unanimated
August 11th, 2008, 04:59 AM
If you go into the file browser, the folder that shows the drive that Ubuntu is installed on is called host. Double-click the folder, and all the files on the hard drive will appear.

ryanchang
August 11th, 2008, 05:03 AM
Agh! I'm retarded. Guess I should've just spent a little bit more time looking; haha. Thanks so much!!

Unanimated
August 12th, 2008, 04:33 AM
Glad I could help.

zuner2012
August 12th, 2008, 06:20 AM
try booting from a live cd. find the right hdd. format it in whatever will work for you. ext3, ext2, fat, fat 16 etc. etc.