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.
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299
Rep:
Renaming disk partitions - possible ?
Hi,
I run the "fdisk -l" command as root on my Ubuntu 7.04 server box the results I get make interesting reading.
There is no /dev/hda1 and Ubuntu is installed on /dev/hda2. There is also an extended partition ( with a logical partition contained within that). When I do a "find" at the grub prompt I get a message that grub is found in (hd0,1). What would be the best way of renaming /dev/hda2 to /dev/hda1. Would the renaming effect my extended / logical partition ?
I'm wondering how you got in this situation---the disk is fully partitioned. But, no matter...
First, it is not really necessary to change this--you can simply change the grub config file to point where you want.
If I am not mistaken, the label is tied only to which entry in the partition table is used. 1-4 are used for primary or extended, and the first logical is always 5. This means that #1 is empty. The only way I know to correct this would be to use dd to move the data. I've never done this, so I can't promise it would work.
Note that your swap space is a bit small--People say things like 2X RAM size, but I always just use 1GB. For this reason alone, I would simply re-partition the drive. you could also re-size #2 and then make a new #1.
If you want to confirm the partition table directly, do this:
dd if=/dev/hda skip=446 bs=1 count=64|hexdump -C
The first and fourth rows should be all zeros, 2 and 3 will have similar entries.
My "booting" link below has more info, including links to the structure of a partition table
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299
Original Poster
Rep:
Thanks Pixellany.
The Ubuntu box seems to be working fine, so I may go with the philosophy that "if it ain't broke don't fix it." It was just that having /dev/hda2 and no /dev/hda1 does not look aesthetically correct.
Thanks Pixellany.
The Ubuntu box seems to be working fine, so I may go with the philosophy that "if it ain't broke don't fix it." It was just that having /dev/hda2 and no /dev/hda1 does not look aesthetically correct.
Regards,
Uncle
That's a good philosophy--I wish I were smart enough to practice it...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.