Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fdisk - created partition on /dev/sda/ not sda1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MrMe01
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2013
Posts: 86

PostPosted: Wed Nov 11, 2015 11:10 pm    Post subject: Fdisk - created partition on /dev/sda/ not sda1 Reply with quote

Running under Virtualbox

I've somehow managed to create a partition that I can read and write to while in a chrooted environment (I didn't notice until I tried to install grub) on /dev/sda.

I've run the boot repair iso, that spat this out http://paste.ubuntu.com/13232478/

What can I do to either get Grub 0.97 to boot this partition or move the partition into the correct place? I'm contemplating creating another virtual disk and copying the system on to that.

Ideas are most welcome :)
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Nov 12, 2015 7:12 am    Post subject: Re: Fdisk - created partition on /dev/sda/ not sda1 Reply with quote

MrMe01 wrote:
I've run the boot repair iso,
Where did you get that funny stuff no being able to find the partition table?
Suggest you'd better use parted from http://www.sysresccd.org
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Thu Nov 12, 2015 11:12 am    Post subject: Re: Fdisk - created partition on /dev/sda/ not sda1 Reply with quote

charles17 wrote:
Where did you get that funny stuff no being able to find the partition table?

Because he might didn't create any.

You can have a whole disk without partition table.
And instead of fdisk /dev/sda / partitions / mkfs /dev/sda1... you just mkfs /dev/sda
That should only be use for data disks only, and may disturb programs not aware you could do that.

user might have wrongly use /dev/sda with mkfs instead of /dev/sda1
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Nov 12, 2015 1:01 pm    Post subject: Reply with quote

It is OK to use hard drives without partitioning, can't boot such a drive, though.
Back to top
View user's profile Send private message
MrMe01
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2013
Posts: 86

PostPosted: Thu Nov 12, 2015 4:51 pm    Post subject: Re: Fdisk - created partition on /dev/sda/ not sda1 Reply with quote

krinn wrote:
charles17 wrote:
Where did you get that funny stuff no being able to find the partition table?

Because he might didn't create any.

You can have a whole disk without partition table.
And instead of fdisk /dev/sda / partitions / mkfs /dev/sda1... you just mkfs /dev/sda
That should only be use for data disks only, and may disturb programs not aware you could do that.

user might have wrongly use /dev/sda with mkfs instead of /dev/sda1


That's what I think I've done.

Recommended course of action? I'm thinking about copying the data off, creating /dev/sda1/ and then copying it back on. Is that recommended?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Thu Nov 12, 2015 7:07 pm    Post subject: Reply with quote

MrMe01,

That's safe.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum