Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17837

Help using parted - am I about to do this right?

$
0
0

A client failed to contact me once one of their raid(5) drives failed. Last week, another drive failed. They had a tech come out and replace the failed drives. He loaded Ubuntu 8.04 and I gave him instruction on how I wanted him to partition the drive and what user to create.

He not only failed to create the user I specified, he also screwed up the partitioning. I didn't notice that until today.

Here is what the drive looks like:

$ sudo parted /dev/sda print

 Disk /dev/sda: 220GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 10.0GB 10.0GB primary ext3 boot 2 10.0GB 220GB 210GB extended 6 10.0GB 16.6GB 6597MB logical ext3 5 216GB 220GB 3997MB logical linux-swap 

Here is what it should be (notice partition 6 End and Size):

 Number Start End Size Type File system Flags 1 32.3kB 10.0GB 10.0GB primary ext3 boot 2 10.0GB 220GB 210GB extended 6 10.0GB 216GB 206GB logical ext3 5 216GB 220GB 3997MB logical linux-swap 

I think all I need to do is:

  • Do a backup of all data
  • sudo parted /dev/sda resize 6 10GB 216GB

Does that sound about right? Any other things I need to check or other commands that should be run after?

submitted by ThreeHolePunch
[link] [6 comments]

Viewing all articles
Browse latest Browse all 17837

Trending Articles