Linux - NewbieThis 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
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.
Hi!
I made mistake and now one of my logical disk with personal datas (/dev/sdb5 - ntfs - on the picture) is within extended disc (/dev/sdb4). I must move /dev/sdb5 upper and rename it to /dev/sdb4. And other space 39.35 Gib will be unallocated to install LinuxMint and swap area.
Please help to fix my mistake. Sorry for my English.
if you can, I'd start over, make 3 of your partitions primary and #4 partition your extended then add to that one, it keeps your numbering in order.
If you delete in the middle then add again it messing up the sequencing of your numbering.
Code:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
/dev/sda2 1028160 204902463 203874304 97.2G 7 HPFS/NTFS/exFAT
/dev/sda3 204906496 205828095 921600 450M 27 Hidden NTFS WinRE
/dev/sda4 205828096 488397167 282569072 134.8G 5 Extended
/dev/sda5 205830144 258258943 52428800 25G 83 Linux
/dev/sda6 258260992 301230079 42969088 20.5G 83 Linux
/dev/sda7 301232128 488397167 187165040 89.3G 83 Linux
or no you're doing it ok.
Quote:
I must move /dev/sdb5 upper and rename it to /dev/sdb4. And other space 39.35 Gib will be unallocated to install LinuxMint and swap area.
Leave sda4 alone, delete your sda5 and just start over to get your sizes you want. which is the faster way if you do not have any data on them.
if you want to add more size your last NTFS then delete sda5 and sda4 then redo sda3 by giving it more room first by using that slide on the GUI to add more space to it, then add your extended to sda4 then go from there.
you will want to allocated your space you intend to use for a linux install, and format it too. just set your sizes (swap) root /home for your partitions then format then install your Linux OS onto them by setting your mount points in the partitions during your setup/install process.
if it ask to format your partitions during the install process it will not hurt to say yes if they are blank ( no data )
I don't know why you thing you need to change/rename partitions. What are your intentions? If it is simply to install Mint then use the unallocated space within the Extended partitions (sdb4) and do it. These partitions (the filesystem and swap) will be sdb6 and sdb7 and will appear before sdb5 but that should not create a problem. The only way to get sdb5 to be sdb4 on the older MBR systems is to make it a primary but not Extended partition and in that case, you will not have anywhere to install Mint. Might read up a little on Extended/Logical partitioning.
how did you get yourself into this predicament? If I remember correctly if you wipe out your extended partition sda4 you're going to lose everything.
extend your partition on the left side to take up that space, make that space ntfs add it to sda5,
then resize it on the right side to shrink it down to give yourself room to make partitions for your Linux then use that right side for the rest of your partitions for Linux.
with data on that partition it is going to take a bit, cross fingers, and hang tongue out on left side or mouth while doing this if you do not have it backed up.
I have important datas in /dev/sdb5 (on the picture) and can not delete it.
Is there a way to resize /dev/sdb3 by adding space from unallocated area from extended disc?
You could always try shrinking the extended partition inward from the left and then expanding /dev/sdb3 outwards from the right. However, you would run the risk of destroying the data in /dev/sdb5 if something goes wrong (although I assume and hope that you have all that important data backed up somewhere else anyway).
I agree with Yancek though. Why don't you just install Linux into the unallocated portion of the extended partition? What is it exactly that you have against this plan of attack?
Thanks, I will do, as you advised - just install Linux in an unallocated area. First, create a swap, then a partition for Linux, then a partition for the data.
you got 39 gb to play with, you're going to prob end up having to move stuff around if you want more room for Linux. just saying....
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
not saying it is NOT enough room for linux, just saying if one wants MORE room for Linux. as in ext4 for data in /home etc... as ntfs too will still work... just something to keep in mind for the future use to try and elevate the headache of having to try and re-position partitions with data on them on a later date.
39GB
1GB swap 5 to 10 for / (root) the rest for /home.
or
1GB swap the rest for / (root w/ home added into root)
or
slice it dice it anyway one wants...
I keep my swap on a 16GB SD Card ( laptop) because I don't use swap, it is a just in case thing.
I would disagree with this. 39GB is more than adequate for Linux, especially if the OP already has a great deal of data already stored on the NTFS data partition which presumably they will mount in Linux and use there too).
I plan to create a swap of 8 GB, 20 GB for Linux and the rest for the data. Part of the data can be stored in a disk with ntfs, right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.