LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2015, 04:05 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
weird partition on netbook


hi i have a asus eee and i see this partition. anyone kow what it is or how to view the files on it:
Code:
[liveuser@localhost ~]$ sudo fdisk -l /dev/sda

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 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
Disklabel type: dos
Disk identifier: 0x08fbdfc3

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *           63 167782859 167782797   80G  7 HPFS/NTFS/exFAT
/dev/sda2       167782860 298134269 130351410 62.2G  7 HPFS/NTFS/exFAT
/dev/sda3       298134270 312480314  14346045  6.9G 1c Hidden W95 FAT32 (LBA)
/dev/sda4       312480315 312581807    101493 49.6M ef EFI (FAT-12/16/32)

[liveuser@localhost ~]$ sudo mount /dev/sda4 sd-tmp
mount: /dev/sda4 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
i am trying to make room for another partition for a fedora install but i am not sure which partitions to delete. did m$ and a$u$ collude to make it difficult to dual-boot (whats the point of 4 oem partitions) ?
 
Old 01-04-2015, 04:14 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
It's an EFI system partition, used to boot up your system in EFI-mode.
https://en.wikipedia.org/wiki/EFI_System_partition

Your system may be using it to boot up so don't remove it.

Try booting up an Arch live .iso and check if your system is even capable of booting up in EFI-mode by running:
Code:
# efivar -l
This will return a long list of EFI variables if your system has this capability.

If it returns nothing, you should be OK to delete it.
 
1 members found this post helpful.
Old 01-04-2015, 04:25 PM   #3
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
you can't boot your current system without sda4.
sda3 seems a factory restoration partition.
Neither sda3 nor sda4 will give you enough free space for fedora, so I wouldn't delete them.
I'd resize sda1 if it has enough free space to get some unallocated space for new partition (15-20Gb) if your drive has GPT partition table. If it is DOS-like partition table, you can't add new partition without repartitioning it totally.
 
Old 01-04-2015, 04:31 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ so what is /dev/sda2 (seems to be some backup utility ?)

i think fedora will run happily in about 5 gb.
 
Old 01-04-2015, 04:31 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by Teufel View Post
if your drive has GPT partition table. If it is DOS-like partition table, you can't add new partition without repartitioning it totally.
The drive is an MBR type ("dos") and you can add extended partitions to that.
http://en.wikipedia.org/wiki/Master_boot_record
http://en.wikipedia.org/wiki/Extended_boot_record
 
Old 01-04-2015, 04:38 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Head_on_a_Stick View Post
Try booting up an Arch live .iso and check if your system is even capable of booting up in EFI-mode by running:
Code:
# efivar -l
i ran this from fedora live usb:
Code:
[liveuser@localhost ~]$ sudo efivar -l
efivar: error listing variables: Function not implemented
 
Old 01-04-2015, 04:42 PM   #7
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by schneidz View Post
i ran this from fedora live usb:
Code:
[liveuser@localhost ~]$ sudo efivar -l
efivar: error listing variables: Function not implemented
Looks like it may not be EFI capable then (I could be sure if it was from Arch 'cos I know that loads gummiboot automatically in an EFI system).

It is unusual to see an EFI system running off an MBR disk but it is possible.

I would say it's probably safe to remove but I think I would probably leave it (just in caseŠ), shrink one of the Windows partitions and make an extended partition for Fedora.
 
Old 01-04-2015, 04:43 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
thanks, i will probably delete sda2 and sda3 since they seem like wasted unused space... still not sure why all 4 partitions are necessary to be used up by the oem ?

Last edited by schneidz; 01-04-2015 at 04:45 PM.
 
Old 01-04-2015, 04:52 PM   #9
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Head_on_a_Stick View Post
The drive is an MBR type ("dos") and you can add extended partitions to that.
http://en.wikipedia.org/wiki/Master_boot_record
http://en.wikipedia.org/wiki/Extended_boot_record
You can have 4 primary partitions (like it partitioned right now) or 3 primary and one extended that may contain few logical partitions.
Since 4 partitions exists already, you can't add the fifth partition, whether it extended or primary.
To add new one you have to delete one of the existing.
 
Old 01-04-2015, 05:01 PM   #10
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by schneidz View Post
still not sure why all 4 partitions are necessary to be used up by the oem ?
sda1 and sda4 neccessary to boot a system. sda2 seems data storage partition and sda3 is recovery partition.
So only two of them really neccessary.
 
Old 01-04-2015, 05:06 PM   #11
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
Originally Posted by Teufel View Post
You can have 4 primary partitions (like it partitioned right now) or 3 primary and one extended that may contain few logical partitions.
Since 4 partitions exists already, you can't add the fifth partition, whether it extended or primary.
To add new one you have to delete one of the existing.
Wrong/mistaken. I renamed a primary partition to Extended/Logical. Then resized it. Then added Linux.
Still have the Compaq partition layout that came with the drive. Nothing deleted.

http://postmyimage.com/img2/211_gparted.png

Edit: Google will be your friend for finding a free live partioner iso that can rename existing Windows primary partitions.

http://www.linuxquestions.org/questi...-a-4175508686/

Last edited by rokytnji; 01-04-2015 at 05:11 PM.
 
Old 01-04-2015, 09:32 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Linux install quite nicely to an extended partition. The "install to primary partition" is a DOS/Windows thing.

My personal belief is that Windows uses all the primary partitions because it can so as to cause confusion to its enemies, not because it needs them.
 
Old 01-04-2015, 09:48 PM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Are these the partitions that were there when you got the computer?
Do you have windows 8 installed? If so, was it pre-installed?
If it has windows 8 and was pre-installed it is quite likely that it was installed using UEFI and your sda4 indicates an EFI partition. If that's the case, it will using GPT and you don't have the 4 partition limit. I think you can have up to 128 partitions but don't use it so am not really sure. Definitely more than 4 in any case but you would still need to shrink something as it appears these partitions are using the entire disk. It seems unusual to have the EFI partition as sda4 as it usually is the first partition although sometimes sda2. I would expect that sda3 is a Recovery partition and sda1 or sda2 would be the windows system, don't know what the other would be.
 
Old 01-05-2015, 12:03 AM   #14
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
^ it had windows-7 oem. i havent touched it since i bought it. i just finished installing fc-21.

sda1 is the windows drive c:
sda2 seems to be some incremental restore point ?
sda3 seems to be factory restore (redundant)
sda4 is for boot partition.

@roky: didnt know you could change a primary partition to an extended without data loss.
 
Old 01-05-2015, 02:58 AM   #15
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by rokytnji View Post
Wrong/mistaken. I renamed a primary partition to Extended/Logical. Then resized it. Then added Linux.
Still have the Compaq partition layout that came with the drive. Nothing deleted.

http://postmyimage.com/img2/211_gparted.png
Well, I have my drive divided into 4 primary partitions:
Code:
# partition table of /dev/sdc
unit: sectors
/dev/sdc1 : start=     2048, size=  3704832, Id=83
/dev/sdc2 : start=  3706880, size=  3201024, Id=83
/dev/sdc3 : start=  6907904, size=  3999744, Id=83
/dev/sdc4 : start= 10907648, size=  4657152, Id=83
At third partition I created a file named "foo".
Could you be so kind to instruct me, how do I rename sdc3 from primary to extended and create inside it a couple of logical partitions without losing my "foo" file?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] help: error: no such partition, grub rescue, on a netbook Stengah123 Linux - Software 2 03-20-2012 09:09 PM
[SOLVED] Backup netbook's restore partition bonixavier Linux - Laptop and Netbook 3 05-07-2011 09:41 AM
Grub 1.5 Error 22 - Partition Deleted on Netbook. lszanto Linux - General 1 04-30-2010 02:44 AM
Weird partition blindness xmeson Slackware 2 02-20-2005 11:47 PM
Weird partition issue GhostDog Linux - General 1 10-06-2002 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:28 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