problem with adding space

General support questions
s_bd
Posts: 7
Joined: 2021/08/28 09:36:05
Location: IND

Re: problem with adding space

Post by s_bd » 2021/08/30 05:19:40

operations i did to add space are as below:

Code: Select all

fdisk /dev/sda3
#then i opted 'p' to see the details
Disk /dev/sda3: 19.0 GB, 19011731456 bytes, 37132288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x11f95c36

     Device Boot      Start         End      Blocks   Id  System

Code: Select all

     
#then i opted 'n' to create a partition and chose default size and again opted 'p' to print details:

     Device Boot      Start         End      Blocks   Id  System
/dev/sda3p3            2048    37132287    18565120   83  Linux
I'm now feeling i've done something wrong here. Not able to pin point where i went wrong. Could you please suggest.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: problem with adding space

Post by jlehtone » 2021/08/30 08:36:30

You have created new partition table inside a partition.
The operation has overwritten (tiny) part of the filesystem that is in that partition.
I can't say how severe the corruption is.

You should have modified the partition table that already exists in /dev/sda

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: problem with adding space

Post by tunk » 2021/08/30 13:03:12

Never created a partition table within a partition, so I may
be wrong:
If it's still running, make a backup of all important data.
Reboot, and if it doesn't come up again, try to boot from
some live CD/DVD with suitable tools and see if they can
repair your file system. Even if it boots or if the tools
fixes it, would you trust it to be ok? - remember, /dev/sda3
is your OS. You may be better off with a complete reinstall.

s_bd
Posts: 7
Joined: 2021/08/28 09:36:05
Location: IND

Re: problem with adding space

Post by s_bd » 2021/09/24 12:29:31

Thank you @tunk. yes, i've removed that VM and doing fresh installation. But one more thing i noticed is that i did not get option to choose how much space for / , /home, /opt , etc while installing. some how that part got automatically skipped. i'll see if it happens this time too, will not use existing .iso file. But i did download CentOS 7 from Cent website itself. don't know why that .iso did not let me to do that selection while installation.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: problem with adding space

Post by jlehtone » 2021/09/24 12:59:48

Figure 8.17 in https://access.redhat.com/documentation ... -setup-x86
* "Automatically configure partitioning" is selected by default
* You have to select "I will configure partitioning". Then "Done" will take you to "Manual partitioning" (Figure 8.22)

Post Reply