PDA

View Full Version : [ubuntu] partition trouble



iconzero36
April 3rd, 2009, 05:47 AM
I recently bought an Asus eee pc 1000, linux version. The installed OS was xandros... of course i had to get rid of it. I am actually a windows user that has taken a huge interest in linux. I installed linux fine, but im having partition issues.

Out of the box 40 gig ssd was partitioned into 2 parts: 8g and 32g etc. I thought when i installed ubuntu i used the whole drive for install. i guess i didnt. it was installed on the 8g partition.

1. im unsure if im able to choose to save to the other partition.
or
2. is there a way to consolidate both partitions?

logos34
April 3rd, 2009, 06:31 AM
You want to delete the larger partition and then grow the smaller to reclaim the unallocated space (if /swap is between the two you'll have to delete it and recreate a new one at the end of the disk. Don't forget to edit /etc/fstab). Since / cannot be mounted during resize, you'll have to boot a live USB of Gparted or a rescue/utility iso like Parted Magic (my fav):

http://partedmagic.com/documentation/116-creating-the-media.html
http://gparted.sourceforge.net/livecd.php

(or maybe you installed using a ext. usb cdrom, in which case use gparted on ubuntu live cd)

iconzero36
April 3rd, 2009, 06:44 AM
thanks man i really appreciate it. i will definitely dl gpart and try to do exactly what u said. theoretically i understand you but mind you im new to linux! :)

Mark Phelps
April 3rd, 2009, 02:21 PM
If your machine doesn't boot after you remove and resize partitions, it's most likely because some of the lines in your menu.lst file are incorrect. If you look in there, you will see lines containing "UUID=". These probably refer to your first partition. The UUID of the second partition is different.

Use the "blkid" command to get a list of UUIDs.

You will then have to go to console mode, edit the menu.lst file, and substitute the new UUIDs for the old UUIDs.

iconzero36
April 3rd, 2009, 04:27 PM
ok i dl used the gparted...

new problem: maybe i dont understand what an ssd drive i have. out of the box it had to "partitions" or "drives". the 8g and 32g. now im thinking they were actual drives because in gparted i was able to select both "drives"? the top left was a drop down menu:/dev/sda and dev/sdb.

does that mean to drives or partitions

iconzero36
April 3rd, 2009, 07:07 PM
... (Move up to top of thread) :)

logos34
April 3rd, 2009, 07:10 PM
these two commands should give us some info on your storage:

sudo fdisk -l

sudo lshw -C disk

Mark Phelps
April 3rd, 2009, 09:29 PM
If you do an "fdisk -lu" and get a result like:
/dev/sda1 ...
/dev/sda2 ...

They are partitions on one drive.

If you get a result like:
/dev/sda1
/dev/sdb2

They are drives.

With partitions, the trailing number changes; with drives, the letters change.

iconzero36
April 4th, 2009, 07:47 PM
okay so they are definitely drives.

how do i save to the other drive? like how in windows, when i choose to save to the other drive, it is indicated by a drive letter. am i able to do that in ubuntu?

iconzero36
April 5th, 2009, 04:32 AM
...

logos34
April 5th, 2009, 04:42 AM
okay so they are definitely drives.

how do i save to the other drive? like how in windows, when i choose to save to the other drive, it is indicated by a drive letter. am i able to do that in ubuntu?

As long as it's mounted, with the correct permissions and ownership, you should be able to drag and drop in Nautilus file browser (or konqueror, whatever).

what filesystem type is the larger partition (ext2/3? reiserfs?)

fdisk will show

Mark Phelps
April 6th, 2009, 02:22 PM
okay so they are definitely drives.

how do i save to the other drive? like how in windows, when i choose to save to the other drive, it is indicated by a drive letter. am i able to do that in ubuntu?

Ubuntu doesn't use drive letters. To write to a drive, you first have to create a mount point in your filesystem, and then you have to mount the drive.

To provide a list of drives and partitions, do "fdisk -lu" (that's a lower-case L, not a one) in a terminal and post the results.