LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-24-2012, 05:25 PM   #1
stiabhan
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
How to identify and delete correct partitions in a linux/linux dual boot


Hello, linux newbie here. I have a dual boot of Ubuntu 10.04 LTS and Mepis 11.0 (I think?). Not going to be using that laptop anymore and want to put the drive into an external usb shell. Want to keep the Ubuntu, but delete the Mepis partitions to make room for use as a backup storage external drive. In gparted or any of the other partitioning programs, how do I figure out which partitions belong to which OS, so on and so forth. I don't want to guess and delete the wrong partition, naturally. Thanks for the help in advance.
 
Old 03-24-2012, 05:50 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lightbulb



The naming convention starts at the motherboard. The port it is connected to determines the letter ( Port 1 -> A , Port 2 --> B and so on.)

The partitions then work outward from there. /dev/sda1 (First Drive , First Partition) /dev/sda2 ( first drive , second partition ) /dev/sdb1 ( Second Drive , first partition )


With that said it sounds like all is on one physical disk. So your next step would be to go to the terminal and -->

Code:
 findmnt -k
TARGET              SOURCE           FSTYPE   OPTIONS
/                   /dev/sda3        ext4     rw,relatime,user_xattr,acl,barrier
├─/proc             proc             proc     rw,nosuid,nodev,noexec,relatime
├─/sys              /sys             sysfs    rw,nosuid,nodev,noexec,relatime
├─/dev              /dev             devtmpfs rw,nosuid,relatime,size=1024272k,n
│ ├─/dev/pts        devpts           devpts   rw,nosuid,noexec,relatime,gid=5,mo
│ └─/dev/shm        shm              tmpfs    rw,nosuid,nodev,relatime
├─/run              /run             tmpfs    rw,nosuid,nodev,relatime,mode=755
├─/tmp              tmpfs            tmpfs    rw,nosuid,nodev,relatime
├─/home             /dev/sda4        ext4     rw,relatime,user_xattr,acl,barrier
│ └─/home/amy/.gvfs gvfs-fuse-daemon fuse.gvf rw,nosuid,nodev,relatime,user_id=1
└─/boot             /dev/sda1        ext2     rw,relatime,user_xattr,acl,barrier

Take note of the mount points and FSTYPE. The OS drives are probably on EXT4 and mount point is / . The source column tells you the drive which you can manipulate with gparted or whatever program you decide to use. You may also see a Boot drive and a swap drive. You want to leave those alone.

Hope this helps.
 
Old 03-24-2012, 09:18 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,690
Blog Entries: 12

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Here's another way, in case your distro does not have findmnt (I looked for it and my Debian box does not include it and it doesn't seem to be in the repos):

When you boot into Ubuntu, run cat /etc/mtab. That will tell you what partitions are mounted.

Unless you have configured your Ubuntu /etc/fstab to mount the Mepis parititions, they are likely by default not mounted.

This could give you a hint identifying which partitions are which.

To be thorough, you could boot into Mepis and repeat the test and compare the results.
 
Old 03-24-2012, 10:46 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
The bootinfoscript does a pretty good job of identifying installs - get it here if you don't have it already.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to dual boot 2 linux partitions? wootletootle Slackware 5 04-25-2011 04:59 AM
i want to boot windows xp from grub loader and want to delete all linux partitions pankajd Linux - Software 1 05-30-2009 09:23 AM
Solved: Dual boot, deleted /boot and all linux partitions, system boots to grub> cuco76 Linux - Software 0 01-06-2009 06:27 PM
Delete Linux Partition on dual boot gtjr92 Linux - Newbie 3 11-02-2006 07:48 AM
I need a boot floppy that can delete linux partitions. Royle Linux - General 1 01-15-2005 10:31 PM


All times are GMT -5. The time now is 12:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration