Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Don't want to partition my disks, but installation insists

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
tessio
Posts: 36
Joined: 2010-10-21 19:23

Don't want to partition my disks, but installation insists

#1 Post by tessio »

Hi,
I'm creating a new debian virtual machine. As virtual disks are free, I want to use tree for my new machine. The scheme will be like this:
sda -> /boot
sdb -> /root
sdc -> swap
Because I can have how many disks I want, partitions are not needed. More than that, partitions are not desired, because without partitions I can grow the disk size easily with only one xfs_growfs. If the disk is partitioned, growing is much more difficult.

The problem is that the debian wheeze installer don't let me select a disk without partitioning it. Why the installer has to be so disruptive?

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Don't want to partition my disks, but installation insis

#2 Post by Bulkley »

If I recall correctly the only partitions necessary are /swap and / and I'm not sure /swap is needed. Don't get sidetracked into the section the sets up an array of partitions if you don't want them.

User avatar
roseway
Posts: 1528
Joined: 2007-12-31 22:50
Location: Kent, UK
Has thanked: 3 times
Been thanked: 4 times

Re: Don't want to partition my disks, but installation insis

#3 Post by roseway »

Even if you want to use whole disks you still have to partition them. In this case, each disk should have a single primary partition filling the entire disk.

Secondly, the scheme described above won't work, because there is no / partition. Presumably that's what sdb is meant to be, not /root which is root's home directory.
Eric

User avatar
saulgoode
Posts: 1445
Joined: 2007-10-22 11:34
Been thanked: 4 times

Re: Don't want to partition my disks, but installation insis

#4 Post by saulgoode »

roseway wrote:Even if you want to use whole disks you still have to partition them. In this case, each disk should have a single primary partition filling the entire disk.
To be clear, under Linux it is permissible to create a filesystem directly on a block device (i.e., no partitions on the disk); however, such a filesystem is generally not bootable (e.g., don't put / on it).
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian Kernighan

tessio
Posts: 36
Joined: 2010-10-21 19:23

Re: Don't want to partition my disks, but installation insis

#5 Post by tessio »

roseway wrote:Even if you want to use whole disks you still have to partition them. In this case, each disk should have a single primary partition filling the entire disk.

Secondly, the scheme described above won't work, because there is no / partition. Presumably that's what sdb is meant to be, not /root which is root's home directory.

sdb is /, the "root" partition. That was a mistake.

tessio
Posts: 36
Joined: 2010-10-21 19:23

Re: Don't want to partition my disks, but installation insis

#6 Post by tessio »

saulgoode wrote:
roseway wrote:Even if you want to use whole disks you still have to partition them. In this case, each disk should have a single primary partition filling the entire disk.
To be clear, under Linux it is permissible to create a filesystem directly on a block device (i.e., no partitions on the disk); however, such a filesystem is generally not bootable (e.g., don't put / on it).
Because of that, the correct layout I was looking for was:
sda1 -> ext2 -> /boot
sdb -> xfs -> /
sdc -> swap
But I think it is not possible with the current debian installer. I will have to use xfs_copy to copy the file-system from a partitioned disk (sdx1) to a new non partitioned one (sdy).

tessio
Posts: 36
Joined: 2010-10-21 19:23

Re: Don't want to partition my disks, but installation insis

#7 Post by tessio »

wizard10000 wrote:
tessio wrote:...But I think it is not possible with the current debian installer. I will have to use xfs_copy to copy the file-system from a partitioned disk (sdx1) to a new non partitioned one (sdy).
I guess I don't understand the advantage. You could partition the disk manually to use the entire disk if you wanted, create any size filesystem you wanted inside the partition and grow it any time you like.

You can't do it with Debian's installer, but there's nothing at all stopping someone from creating a 1GB filesystem inside a 1TB partition if they wanted to.

Because if a create a 1tb partition, some day may come that I will need 1.2tb. Without partitions I can grow the virtual disk and file-system without messing with fdisk stuff.

Mute Ant
Posts: 9
Joined: 2014-08-10 12:39

Re: Don't want to partition my disks, but installation insis

#8 Post by Mute Ant »

I too prefer the super-floppy format, but with real disks. The LMDE installer allows you to mount your drives under /target/ and proceeds to fill them, so what you want is out there, somewhere. If you don't mind a bit of manual configuration after the event, you can skip the installer completely and clone a Live-Session...

Code: Select all

mkdir /... ; mount /dev/sda /... ; rsync -a /* /.../ 
...then reboot the Live-Session with root=/dev/sda as a kernel argument. It's different, but it always works.

Post Reply