You are not logged in.

#1 2013-08-11 13:04:59

grenzfrequence
Member
Registered: 2013-08-11
Posts: 4

mkswap and mkfs not working

with fdisk i created partition /dev/sdb6
now i want to create swap partition with mkswap -L swap /dev/sdb6

i get error message dev/sdb6: Device or resource busy

but there is nothing, because i just created this partition.

what is the problem here?

the same with mkfs.ext4

Last edited by grenzfrequence (2013-08-11 13:06:10)

Offline

#2 2013-08-11 13:24:58

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: mkswap and mkfs not working

is it mounted ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2013-08-14 10:09:24

spyrocete
Member
Registered: 2013-08-14
Posts: 4

Re: mkswap and mkfs not working

You can always try to reboot and then try to issue the mkswap /dev/sda6 command.

Offline

#4 2013-08-14 11:00:34

grenzfrequence
Member
Registered: 2013-08-11
Posts: 4

Re: mkswap and mkfs not working

Reboot doesn't solve the problem. Mounting is not possible.

Offline

#5 2013-08-14 23:24:14

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,156

Re: mkswap and mkfs not working

Post fdisk -l. Please use code tags when you do so.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB