Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am new to Linux and I want to Enlarge my Linux partition and decrease my windows partition. I cant boot from windows because of a series of unfortunate events although I can access my files through Linux if this makes any difference please tell me. I am confused of how to do the partitioning.
I believe you have named two separate areas of concern:
1)The damage to your boot menu. In other words "not being able to start the microsoft windows system."
2)If all you wish to do is to increase your Linux partition file area:
You should obtain a boot CD based on this tool: Gparted,(http://gparted.sourceforge.net/livecd.php) and boot from this.
--
Later, if 1)eventually you wish to correct a GRUB based boot menu Try http://supergrubdisk.org/ . I found this utility quite helpful.
Okay so I burnt the ISO to the disk. I then booted from the disk but instead of seeing two separate partitions I see one partition that was named Unallocated and it was 149.4 GB what should I do?
Download and burn a copy of PartedMagic or GPartedLiveCD, both live partitioning CDs. Boot one of these, open GParted and look at your partitions without changing anything.
Then open a terminal(ROXTerminal in PartedMagic) and type the command "fdisk -l". This will read your partition table.
Don't keep bumping your own thread!! There are at least 2 magic words here: "Please" and "Patience".
If I read you correctly, you viewed the disk with GParted and saw nothing but "unallocated". If that's true, then the partition table is corrupted or missing.
If you have anything on the disk you need to recover, then the first thing to do is get it mounted into another system. One way to do this is simply boot up from a "Live CD" version of Linux. As already mentioned, "fdisk -l" give you a dump all drives and partitions visible to the OS. If you confirm that the partitions are not visible, then do some searches on "partition recovery".
If you don't have anything you need to recover, then just proceed with partitioning using GParted.
This is a mess...
2.6 G FAT32 (Active)
10.2 G NTFS
137 G NTFS (Active)
9.2 G extended, containing:
2.6 G unknown
6.2 G Linux
0.3 G Linux swap
Problems:
2 active partitions. Linux doesn't care, but Windows might
Space for Linux is marginal
Linux swap is marginal
I'm wondering how things got this way, but in the end it does not matter. I would simply start over and use this disk very differently**.
In GParted, are you sure you have the right disk selected? I can't run it at the moment, but I seem to recall a dialog to select which disk is being viewed. Regardless, what do you want to do next?
** I like to have partitions for the OSes, and then 1 or 2 big partitions for shared data. Ideally, the data is all on a separate physical drive. With one 160G drive, I would set up roughly as follows:
NTFS (Windows): ~15-20 G, first partition, marked active
Linux: 10-15 G
Linux swap: 2 G, at the end of the drive
Extended: Fill the rest of the drive
Logical partition: ~80-100 G, FAT32 or ext3* for shared data
The balance of the extended partition left emtpy (unallocated) for future additions
*FAT32 is easily accessed by both Linux and Windows, but I prefer to have all data on ext3. From Windows, this can be accessed using the ext2fsd driver.
This is a mess...
2.6 G FAT32 (Active)
10.2 G NTFS
137 G NTFS (Active)
M$ will care about the two active(s).
delete all the other partitions, including the extended one.
shrink back the 137Gb by at least 37Gb & create a extended partition in the newly vacant area.
create a /swap of 1Gb & /home in the rest of the space.
hide the 2.6 Gb as thats supposed to be the hidden backup partition, for drive C: - the 10.2Gb.
the <now> 100Gb is the D: drive.
be sure that the c: drive is the active partition
install your new linux O/S into the new /home & it should also detect the M$ O/S.
Thanks for the feedback, but I'm confused how to do anything with the partitions since GParted only shows the one unallocated partition. There is a dialog but when clicked on all it shows is one option which is already selected which is /dev/sda.
I'm not sure what you mean by "unallocated partition". I think it is just saying that there are no partitions---i.e unallocated space. If you are sure that GParted is looking at the right thing, then it is evidence of something being amiss in the partition table.
As I said, I would recommend starting over. Since GParted says there are no partitions, then you can probably simply create new ones from there.
By unallocated partition what I mean is that when I open Gparted all it shows is one partition named Unallocated but anyway here are the results for dd if=/dev/sda bs=1 skip=446 count=64 | hexdump -C.
-------------------------------------------------------------------------------------------------------------------------------
00000000 80 00 c1 ff 0c fe ff ff 00 a0 51 12 00 f0 4f 00 |..........Q...O.|
00000010 00 19 15 05 07 fe ff ff 00 40 01 00 00 80 38 01 |.........@....8.|
00000020 80 fe ff ff 07 fe ff ff 00 c0 39 01 4d 1d 50 10 |..........9.M.P.|
00000030 00 fe ff ff 0f fe ff ff 8a 17 8a 11 76 78 17 01 |............vx..|
00000040
64+0 records in
64+0 records out
64 bytes (64 B) copied, 0.00206849 s, 30.9 kB/s
You can find stuff on the web about how to decode this table (eg search on CHS and LBA addresses).
I would still just start over......
Quote:
when I open Gparted all it shows is one partition named Unallocated
I'm pretty sure it is showing unallocated space---not a partition. If it were a partition, it would have a number, size, etc.
Another option---there are partition recovery tools around--I've never used them, but---as a minimum--they might give you some confirmation of what you have.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.