LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-17-2018, 03:58 PM   #16
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212

Why the concern with the /dev/sda disk? It's fine -- just a pointless warning from fdisk about something that is absolutely not a problem.
 
Old 02-17-2018, 04:02 PM   #17
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by DenisD View Post
Brains,
I guess I read carefully your first post and I realize I was missing one step :

family@Computer ~ $ sudo parted -s /dev/sda print
Model: ATA KINGSTON SUV400S (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 112GB 112GB primary ext4 boot
2 112GB 120GB 7724MB extended
5 112GB 120GB 7724MB logical linux-swap(v1)

What is the command with parted to delete the partition ?
Thank you
I don't use parted or any Open source partition software, so I cannot recommend. I don't know which distribution you are using either as I don't recall you mentioning it and it's not in your profile, but many distributions have parted or Gparted (Gnome desktop) graphical front-end that makes it easy. I mention this because from what I'm seeing so far, I feel you are more efficient at wrecking your system than fixing it, because you are running potentially disabling commands without following instructions thoroughly. Therefor I recommend using the graphical front end of open source partitioning software.

My instructions in short recommend:
1: Turn off swap which may unmount the partition aslo
2: Unmount it, it don't matter if I says it's not mounted, it is an entry in /etc/fstab therefor has been mounted.
3: Delete the swap and extended partitions (dev/sda5 & /dev/sda2) with parted or Gparted graphical utility.
4: Create new primary partition in the now free space with parted or Gparted graphical utility. This will now be a new /dev/sda2
5: Format it to swap/solaris file system with parted or Gparted or with mkswap command as instructed in my first post.
6: Find the UUID of the new swap partition and replace the number in the /etc/fstab swap entry with the new UUID
7: Mount the new swap with mount -a command
8: Check with graphical system information utility, or reboot to see if you were successful, an error may show up during boot up if you did something wrong



For a better understanding, read this article.
 
Old 02-17-2018, 04:17 PM   #18
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
You can also get Gparted live CD here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition 3 does not start on physical sector boundary. gruncleJim Linux - Hardware 25 08-28-2021 10:02 PM
Partition does not start on physical sector boundary bogeyman2007 Linux - Hardware 9 07-06-2015 07:13 PM
Partition 2 does not start on the physical sector boundary icebamm Linux - Newbie 1 06-03-2015 04:01 AM
Partition 1 does not start on physical sector boundary. mshlinux Fedora 9 11-16-2013 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration